DotNet SpeechSynthesizer

Forums for specific tips, techniques and example code
CLD
Posts: 2
Joined: Sun Jul 11, 2021 3:25 pm
Location: Canterbury

DotNet SpeechSynthesizer

Postby CLD » Wed Jul 27, 2022 7:49 pm

My desire is obtain a list of available 'voices' using the imported dotnet SAPI package.

The VB code I am trying to emulate is:

Sub Main()
Dim synth As New SpeechSynthesizer
Dim voices = synth.GetInstalledVoices()
For Each v As InstalledVoice In voices
System.Console.WriteLine(v.VoiceInfo.Name)
synth.SelectVoice(v.VoiceInfo.Name)
synth.Speak("Hello from " & v.VoiceInfo.Name)
Next
End Sub

How do I code this in Jade?

Any assistance greatly appreciated.

Thank you.

Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 2 guests

cron