In VBA, I have a buttom, when I click on it, it should give me de spoken text in Dutch of the textbox.
In windows/control panel/speech recognition/text to speach I have two languages (Bart-Dutch / Zira-English), however in VBA I have the following code (for testing), and I only get one language, Zira, the English one. How can I make Bart talking?
Result: 1 available voices: 0 - Microsoft Zira Desktop - English (United States)
In windows/control panel/speech recognition/text to speach I have two languages (Bart-Dutch / Zira-English), however in VBA I have the following code (for testing), and I only get one language, Zira, the English one. How can I make Bart talking?
Dim i As Long
Dim voc As SpeechLib.SpVoice
Set voc = New SpVoice
Debug.Print voc.GetVoices.Count & " available voices:"
For i = 0 To voc.GetVoices.Count - 1
Set voc.Voice = voc.GetVoices.Item(i)
Debug.Print " " & i & " - " & voc.Voice.GetDescription
voc.Speak "test audio"
Next i
Result: 1 available voices: 0 - Microsoft Zira Desktop - English (United States)