bruceblack
Registered User.
- Local time
- Today, 16:05
- Joined
- Jun 30, 2017
- Messages
- 119
Hi everyone!
I'm using the following code to have some text to speech in my database:
Works great!
But i would like to use a Dutch language to be spoken for Dutch text.
I have no clue how to change these or where to find the settings if possible.
What i did found was the following code for SAPI in Greek, but i dont know how to use it for my vba code above.
I'm using the following code to have some text to speech in my database:
Code:
Dim objSpeech As Object
Dim strPhrase As String
Dim intPitch As Integer
Dim intRate As Integer
Set objSpeech = CreateObject("SAPI.SpVoice")
intRate = 1
strPhrase = "Hello World"
intPitch = 1
objSpeech.Speak "<pitch middle = '" & intPitch & "'/>" & strPhrase
Set objSpeech = Nothing
Works great!
But i would like to use a Dutch language to be spoken for Dutch text.
I have no clue how to change these or where to find the settings if possible.
What i did found was the following code for SAPI in Greek, but i dont know how to use it for my vba code above.
Code:
SpVoice voice = new SpVoice();
voice.Speak(
"<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xml:lang='el-GR'>"
+ "Να ενα κειμενο"
+ "</speak>",
SpeechVoiceSpeakFlags.SVSFlagsAsync|SpeechVoiceSpeakFlags.SVSFIsXML);
voice.WaitUntilDone(30000);