# Loading the Main Dictionary (Dynamic or Static Engine)

The TextToSpeechStartup call attempts to find the entry for the DECtalk Software main pronunciation dictionary in the registry at:

REGISTRY KEY:

HKEY_LOCAL_MACHINE\SOFTWARE\DECtalk Software\DECtalk\version\lang lang

Value: MainDict

and is set to value:

[user selected dir]\system\dtalk_language_code.dic

Replace version using the format x.xx in the path designation with the current version number for the DECtalk Software, such as 4.60.

Replace lang lang with the designation for the appropriate language, such as US for United States English, FR for French, GR for German, LA for Latin American Spanish, or UK for United Kingdom English, for example, dtalk_us.dic.

If the MainDict entry as specified in the registry entry cannot be found, then the TextToSpeechStartup call returns a value of MMSYSERR_ERROR. If the registry entry is missing, then the TextToSpeechStartup call defaults to looking in the application’s default directory for DTALK_language_code.DIC to be loaded as the main pronunciation dictionary.

If the main pronunciation dictionary fails to be loaded, then the TextToSpeechStartup call returns a value of MMSYSERR_ERROR.

Related topics