Registers a speech dictionary with a speech channel.


OSErr UseSpeechDictionary(SpeechChannel chan, CFDictionaryRef speechDictionary);



The speech channel with which the specified speech dictionary is to be registered.


A speech dictionary to be registered with the specified speech channel, represented as a CFDictionary object. See Speech Dictionary Keys for the keys you can use in the dictionary.

Return Value

A result code. See Result Codes.


The UseSpeechDictionary function is the Core Foundation-based equivalent of the UseDictionary function.

The UseSpeechDictionary function registers the CFDictionary object referenced by the speechDictionary parameter with the speech channel referenced by the chan parameter. Speech dictionaries allow your application to override a synthesizer's default pronunciations of individual words, such as names with unusual spellings. A synthesizer will use whatever elements of the dictionary it considers useful in the speech conversion process. Some speech synthesizers might ignore certain types of dictionary entries.

Multiple dictionaries can be registered with a synthesizer. If the same word appears in multiple dictionaries, the synthesizer will use the one from the dictionary with the most recent date.

Note that because a speech dictionary is a CFDictionary object, it can be loaded from an XML-based property list file. An example of such a file is shown below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
    <string>2006-12-21 11:59:25 -0800</string>

After the UseSpeechDictionary function returns, your application is free to release the CFDictionary object referenced by the speechDictionary parameter.

See Also

Installing a Pronunciation Dictionary


Installs the designated dictionary into a speech channel.