Voice Methods - C#
Load a voice
You can load a voice to process the incoming audio passing as argument the name of the desired voice in this method:
1 |
VmErrorCode result = Voicemod.LoadVoice("VOICE_NAME_HERE"); |
If you pass an empty string, the engine processes the audio without applying any effect.
Get presets names
You can get a full list of all the names of the voices using this method:
1 |
List voices = Voicemod.GetPresetsList(); |
The voices variable contains the names of the voices inside the SDK.
You also can get the number of presets with the following method.
1 |
int numberOfPresets = Voicemod.GetNumberOfPresets(); |
Current voice
If you need to know which voice is being applied , you can call GetCurrentVoice method:
1 |
string currentvoice=Voicemod.GetCurrentVoice(); |
Set backgrounds enabled
You can manage the background sounds of each voice calling this API method:
1 |
Voicemod.SetBackgroundSoundsEnabled(enabled); |
The enabled boolean variable indicates is the background is enabled (true) or not (false);