Return Values. Calling ISpVoice::Pause while the voice is not speaking increments the pause count and will put the voice into a paused state until ISpVoice::Resume is called the same number of times. The voice maintains a pause count, so each call to pause must be balanced with a corresponding call to ISpVoice::Resume. The default alert. 2nd Speech Center supports all the Microsoft SAPI4, SAPI5 (Speech Application Programming Interface) compatible text-to-speech voices! Ace Buddy supports all the SAPI4 voices. We have collected most of high-quality free or commercial voices from the Internet for you.
2nd Speech Center supports all the Microsoft SAPI4, SAPI5 (Speech Application Programming Interface) compatible text-to-speech voices! Ace Buddy supports all the SAPI4 voices. We have collected most of high-quality free or commercial voices from the Internet for you. They are available for FREE download or buy below.
Language | Voices Description | Download |
---|---|---|
| 3.66 MB Site1Site2 | |
| 2.14 MB Site1Site2 | |
| 1.71 MB Site1Site2 | |
| 68.7 MB Site1 |
Language | Voices Description | Download |
---|---|---|
| 7.32 MB Site 1Site 2 | |
| 2.32 MB Site 1Site 2 | |
| 1.97 MB Site 1Site 2 | |
| 0.97 MB Site 1Site 2 | |
| 2.54 MB Site 1Site 2 | |
| 2.24 MB Site 1Site 2 | |
| 2.36 MB Site 1Site 2 | |
| 2.18 MB Site 1Site 2 | |
| 1.97 MB Site 1Site 2 | |
| 2.58 MB Site 1Site 2 | |
| 2.39 MB Site 1Site 2 | |
| 3 MB Site 1Site 2 | |
| 3.03 MB Site 1Site 2 | |
| 2.85 MB Site 1Site 2 |
How to Install Text-To-Speech Voices:
After the download is complete, run the .exe/.msi file to install the new voice engine. After installing, close 2nd Speech Center and restart the program. The new voices will appear in the Voices drop-list.
Optional Pronunciation Corrections:
Sometimes you may want to change the spelling of some words, separating syllables or corrects a word's pronunciation. For example, you might pronounce '2SC' as '2nd Speech Center ', or ignore all '>>' in your documents. The Pronunciation Corrections feature is designed for this job. You may create your own pronunciation corrections list in the 2nd Speech Center>Options>Speech Control>Pronunciation Editor, or use the
Common Pronunciation Corrections for SAPI4 Voices (thank senior 2nd Speech Center user Paul Ronnert).
To install a .prn file, open the Pronunciation Editor and click the Restore button to load the file.
Note: The pronunciation corrections list affects all installed voices.
-->Common Pronunciation Corrections for SAPI4 Voices (thank senior 2nd Speech Center user Paul Ronnert).
To install a .prn file, open the Pronunciation Editor and click the Restore button to load the file.
Note: The pronunciation corrections list affects all installed voices.
ISpVoice::Speak speaks the contents of a text string or file.
<pre IsFakePre='true' xmlns='http://www.w3.org/1999/xhtml'> <strong>HRESULT Speak(</strong> <strong>LPCWSTR</strong> *<em>pwcs</em>, <strong>DWORD</strong> <em>dwFlags</em>, <strong>ULONG</strong> *<em>pulStreamNumber</em> <strong>);</strong> </pre>
Parameters
- pwcs
[in, string] Pointer to the null-terminated text string (possibly containing XML markup) to be synthesized. This value can be NULL when dwFlags is set to SPF_PURGEBEFORESPEAK indicating that any remaining data to be synthesized should be discarded. If dwFlags is set to SPF_IS_FILENAME, this value should point to a null-terminated, fully qualified path to a file. - dwFlags
[in] Flags used to control the rendering process for this call. The flag values are contained in the SPEAKFLAGS enumeration. - pulStreamNumber
[out] Pointer to a ULONG which receives the current input stream number associated with this Speak request. Each time a string is spoken, an associated stream number is returned. Events queued back to the application related to this string will contain this number. If NULL, no value is passed back.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One or more parameters are invalid. |
E_POINTER | Invalid pointer. |
E_OUTOFMEMORY | Exceeded available memory. |
SPERR_INVALID_FLAGS | Invalid flags specified for this operation. |
SPERR_DEVICE_BUSY | Timeout occurred on synchronous call. |
Remarks
Normally, pulStreamNumber will just be 1. If, however, several asynchronous Speak (or SpeakStream) calls are received and must be queued, the stream number will be incremented for each call.
If you call the Speak method with SSML markup parameters that omit the closing tag for an element that requires it, such as <prosody> or <emphasis>, the Speech Platform does not return an error code. For example, the following code snippet is missing the closing </prosody> tag, but returns S_OK.
<pre IsFakePre='true' xmlns='http://www.w3.org/1999/xhtml'> // Speak a string directly. if (SUCCEEDED(hr)) { hr = cpVoice->Speak(L'<prosody volume='x-loud' >Do it now', SPF_IS_XML, 0); } </pre>