Registers and makes available a speech synthesizer or voice.
- macOS 10.6+
The file URL of the synthesizer plug-in or voice to register (note that the synthesizer plug-in or voice must be on a mounted volume to be available for registration).
A result code. See Result Codes.
Speech function registers the speech synthesizer or voice specified by
url and makes it available to the calling process. Before a synthesizer’s voices can be registered, the synthesizer must be registered (or loaded automatically by the Speech Synthesis Manager). If you call
Speech to register a voice and you receive the
incompatible result code, it’s likely that the synthesizer associated with the voice needs to be registered. If you call this function to register a synthesizer or voice that has already been registered,
Speech does nothing and returns an error.
A registered synthesizer or voice is known only to the application that registered it. For this reason, each application must call
Speech to register the synthesizer or voice it uses, even if a suite of applications work together and use the same synthesizer and voice.
An application that called
Speech to register a synthesizer or voice should do the following if the volume containing the synthesizer or voice is about to be unmounted: