# TextToSpeechSetRate

The TextToSpeechSetRate call sets the text-to-speech speaking rate.

Syntax | MMRESULT TextToSpeechSetRate | (LPTTS_HANDLE_T phTTS, DWORD dwRate)
Parameters | LPTTS_HANDLE_T phTTS | Specifies a text-to-speech handle.
| DWORD dwRate | Sets the speaking rate. Valid values range from 75 to 600 words per minute.
Return Value | This call returns a value of type MMRESULT. The return value is zero if the call is successful. The return value is one of the following constants:
Constant | Description
MMSYSERR_NOERROR | Normal successful completion (zero).
MMSYSERR_INVALPARAM | An invalid parameter was passed.
MMSYSERR_INVALHANDLE | The text-to-speech handle was invalid.
Comments | The speaking rate change is not effective until the next phrase boundary. All the queued audio encountered before the phrase boundary is unaffected
See Also | TextToSpeechGetRate