Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to slow down Voice Speed of Mary/Sam?

0 views
Skip to first unread message

Vikrama Sanjeeva

unread,
Dec 16, 2003, 6:53:20 AM12/16/03
to
Hi,
In Windows XP, Start-->Control Panel--->Speech--->Text To Speech,
there is an option of "Voice Speed". But how can I set "Voice Speed"
in the code? The code I am using is here:

*******************Code I am using from Sample*****************


Dim FileName As String
Dim FileStream As New SpFileStream
Dim Voice As SpVoice

'Create SAPI voice
Set Voice = New SpVoice

'Assume that ttstemp.txt exists
FileName = "c:\ttstemp.txt"

'Open the text file
FileStream.Open FileName, SSFMOpenForRead, True

'Select Microsoft Sam voice
Set Voice.Voice = Voice.GetVoices("Name=Microsoft Mary",
"Language=500").Item(0)

'Speak the file stream
Voice.SpeakStream FileStream

'Close the Stream
FileStream.Close

'Release the objects
Set FileStream = Nothing
Set Voice = Nothing
******************************************************************************

Bye,
Viki.

Russell Spence [MS]

unread,
Dec 16, 2003, 1:23:14 PM12/16/03
to
Take a look a the SpVoice.Rate property in the SAPI 5.1 documentation.

--

This posting is provided "AS IS" with no warranties, and confers no rights.

"Vikrama Sanjeeva" <vikrama...@hotmail.com> wrote in message
news:19d67fc7.03121...@posting.google.com...

0 new messages