You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I get a list of male or female voices to match randomly with a set of male or female characters in my game. I'm using this code to get a list of voices. But I seem to be unable to extract the Gender (male/female) and Local (en_US) from the voiceSettings. Ideally I would like to be able to assign a voice based on male/female/other, child/adult/old person, and maybe accents? (southern, British, etc.)
// Get all voice name presets
string[] voiceNames = speaker.TTSService.GetAllPresetVoiceSettings()
.Select((voiceSetting) => voiceSetting.SettingsId).ToArray();
speaker.VoiceID = voiceNames[(int)currentTalkIndex % voiceNames.Length];
The text was updated successfully, but these errors were encountered:
How can I get a list of male or female voices to match randomly with a set of male or female characters in my game. I'm using this code to get a list of voices. But I seem to be unable to extract the Gender (male/female) and Local (en_US) from the voiceSettings. Ideally I would like to be able to assign a voice based on male/female/other, child/adult/old person, and maybe accents? (southern, British, etc.)
The text was updated successfully, but these errors were encountered: