2

I use SpeechSynthesizer.SpeakSsml(String).

However not able to build an SSML containing pitch.

So far I could not find any working example online.

S Nash
  • 2,363
  • 3
  • 34
  • 64

1 Answers1

3

MS's Speech Synthesizer isn't built to do singing synthesis, but you can change the pitch characteristics using the <prosody> element:

SpeechSynthesizer.SpeakSsml("<speak version=\"1.0\" xml:lang=\"en\"><prosody pitch=\"x-low\">Hello World</prosody>.<prosody pitch=\"x-high\">Hello World</prosody></speak>");
Luke
  • 919
  • 5
  • 8