DotNet SpeechSynthesizer
Posted: 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.
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.