SoundGenerator.SpeechVoiceAttributeGet method |
|
Remarks
Obtains a specific attribute of the given voice.
For further details about sound generation see the SoundGenerator object and the How to generate wave tones, noises, DTMF tones and text to speech tutorial..
Syntax
[Visual Basic] control.SoundGenerator.SpeechVoiceAttributeGet ( nVoice as Long, nAttribute as enumSapiVoiceAttributes ) as String |
[C++] BSTR control.SoundGenerator.SpeechVoiceAttributeGet ( long nVoice, short nAttribute ); |
Parameter |
Description |
|||||||||||||||||||||
|
|
|||||||||||||||||||||
nVoice |
Zero-based index of the speaking voice. The total number of voices installed inside the system can be obtained through the SoundGenerator.SpeechVoicesNumGet method. |
|||||||||||||||||||||
nAttribute |
Identifier of the attribute to get. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Empty string |
The information is not available or an error occurred (see the LastError property for further error details) |
Valid string |
String containing the specific attribute |