Gets a voice specification structure for a voice by
passing an index to the
- macOS 10.0+
The index of the voice for which to obtain a voice specification structure. This number must range from
1to the total number of voices, as returned by the
A pointer to the voice specification structure whose fields are to be filled in.
A result code. See Result Codes.
returns, in the voice specification structure pointed to by the
a specification of the voice whose index is provided in the
Your application should make no assumptions about the order in which
voices are indexed.
Your application should not add, remove, or modify a voice
and then call the
with an index value other than
1. To allow the Speech Synthesis
Manager to update its information about voices, your application
should always either call the
or call the
with an index value of
1 after adding, removing, or modifying a
voice or after a time at which the user might have done so.
If you specify an index value beyond the number of available