Python error message

I recently got the following message in the “Messages from Python Macros”

“Found unknown language in acoustic.ini” What does this mean, and where is the file located? What should I do if anything about it?

Allan

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Oops, NatLink looks for a

Oops, NatLink looks for a file acoustic.ini in your DNS User Directory (where your speech profile is located). Probably at

C:\ProgramData\Nuance\NaturallySpeaking10\Users\yourusername\Current

for Vista, NatSpeak 10 or at

C:\Documents and Settings\All Users\Application Data\Nuance\NaturallySpeaking9\Users\yourusername\current

for XP, NatSpeak 9.

Or somewhere else if you changed the standard location of your speech profiles.

So in this directory there should be a file acoustic.ini with settings like:

[Acoustics]
...
[Base Acoustic]
voice=UK English | BestMatch III
...

From the setting Base Acoustic, voice NatLink extracts the string UK English (in this example). From the python dictionary:

# the possible languages (for getLanguage)
languages = {"Nederlands": "nld",
             "Français": "fra",
             "Deutsch": "deu",
             "UK English": "enx",
             "US English": "enx",
             "Australian English": "enx",
             "Indian English": "enx",
             "SEAsian English": "enx",
             "Italiano": "ita"}

the correct three letter language code (like enx) is extracted.

If the file "acoustic.ini" is not found, "yyy" is returned, if not a valid language can be found "xxx" is returned.

Does it harm? No, as long as the NatLink (Unimacro) grammars do not rely on the getLanguage call of the natlinkstatus module.

Quintijn

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Syndicate content