-
Notifications
You must be signed in to change notification settings - Fork 0
API Doc
The term "App" is used to represent VOICEROID2 or A.I.VOICE.
Get all available service names - that is, your installed VOICEROID2 products.
return: Ususally, it returns VOICEROID2 (x64) VOICEROID2, sometimes with A.I.VOICE.
Call before any methods below to initialize.
serviceName: can be one of VOICEROID2 (x64) VOICEROID2 A.I.VOICE.
- Currently
VOICEROID2is not tested.
Launch App (x64 or x86, depend on serviceName you specified in Initialize).
-
A.I.VOICEcan not be launched with this method. Just launch by yourself.
Terminate App you launched with StartHost.
Connect to App instance (x64 or x86, depend on serviceName you specified in Initialize).
Disconnect. You can then Connect again.
Estimate the time for current text in Textbox.
return: estimated time (ms).
see: (Property) Text
Synthesize and play the text in Textbox.
Can not be called when Busy.
see: (Property) Status; Text
Stop play immediately.
Can not be called when Busy (Synthesizing).
see: (Property) Status
Write WAV file to the path.
The Text will also be written to a txt file if you have set output text setting.
Can not be called when Busy.
path: where to save the WAV file. The output text will be in the same position but with .txt extension.
see: (Property) Status
Reload Voice Presets. Useful if you want to set emotion parameters (manually) and call this later.
Reload Phrase Dictionary.
Reload Symbol Dictionary.
Reload Word Dictionary.
Get current App status.
return: HostStatus, can be one of NotRunning NotConnected Idle Busy.
- Many APIs are not callable when Status is
BusyNotRunningNotConnected.
Get whether you have called Initialize successfully.
return: bool
Get/Set current text in Textbox.
Get/Set caret (text cursor) position.
Get/Set text length (to be played).
example: If you set TextLength to 1 and TextPosition to 2, when you call Play, it will play from the third character, and read just that character.
Get App version.
return: version string, like 2.1.1.0
Get all voice names.
return: voice names, like 結月ゆかり
Get all voice preset names. Including voice names and your user-defined presets with custom parameters.
return: voice preset names, like 結月ゆかり, My Custom Yukari with 100% Sad
Get/Set current voice preset used.
When set, the voice is switched immediately. Can not be set when Busy.
return: current voice preset name
Used to control the Master settings, like Speed, Volume etc.
Do not try to set the properties by something like ttsControl.MasterControl.Volume = 1.1;. The correct way to do this is:
var control = ttsControl.MasterControl;
control.Volume = 1.1;
tts.MasterControl = control;return: a MasterControl object