1

Using the code:

SpeechSynthesizer synth = new SpeechSynthesizer();
synth.SetOutputToDefaultAudioDevice();
synth.Rate = 0;
synth.Speak(Line);

How do I say things and make the voice sound more epic?

Revenant
  • 260
  • 1
  • 11
Sam
  • 1
  • 3
  • things such as lower voice. Great to narrate an RPG. – Sam Mar 15 '16 at 04:34
  • 1
    look at this: http://stackoverflow.com/questions/10881370/how-i-can-change-the-voice-synthesizer-gender-and-age-in-c, keep in mind that the voices are part of windows, not your program. So you can only use what is installed on the machine. – JanR Mar 15 '16 at 04:36
  • Thanks mate. Is there a way to lower the voice? – Sam Mar 15 '16 at 04:39
  • I don't think you can alter the voice, you can only use a different voice. – JanR Mar 15 '16 at 04:41
  • 1
    synth.Speak(Line + SpeechBuilder(MorganFreeman, synth.Audio); – Aizen Mar 15 '16 at 04:48

1 Answers1

0

The full documentation available here about SpeechSynthesizer Class

You can check the Installed voices and choose the appropriate ones.,

    foreach (InstalledVoice voice in synth.GetInstalledVoices())
    {
         VoiceInfo info = voice.VoiceInfo;
         Console.WriteLine(" Voice Name: " + info.Name);
    }

Setting / Changing the voice Gender and Age might help,

synthesizer.Volume = 100; // This might helps to change Voice bit lower and upper rates.
synthesizer.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Senior);

Note: Those voice enumerations must be installed in your machine.

RajeshKdev
  • 6,365
  • 6
  • 58
  • 80