![]() To run this code, create a form with the following controls: ![]() The following Visual Basic form code demonstrates the use of the GetVoices method and the Voice property. The format of selection criteria is " Attribute = Value" and " Attribute != Value." Voice attributes include "Gender," "Age," "Name," "Language," and "Vendor." Example By default, no attribute is specified and the list returned from the speech configuration database is in the order that attributes were discovered.Īn ISpeechObjectTokens variable containing the collection of voice tokens selected. Voices which match these specifications will be returned at the front of the selection. OptionalAttributes Specifies the OptionalAttributes. By default, no attributes are required and so the list returns all the tokens discovered. If no voices match the selection, the selection returned will contain no voices. All voices selected will match these specifications. ) As ISpeechObjectTokens Parameters RequiredAttributes Specifies the RequiredAttributes. ![]() See Object Tokens and Registry Settings White Paper for a list of SAPI 5-defined attributes. ![]() If no voices match the criteria, GetVoices returns an empty selection, that is, an ISpeechObjectTokens collection with a Count of zero. In the absence of selection criteria, all voices are returned in the selection, ordered alphabetically by the voice name. Selection criteria may be applied optionally. The GetVoices method returns a selection of voices available to the voice. Previous page next page Microsoft Speech Platform
0 Comments
Leave a Reply. |