Quote:
Originally Posted by minsc_tdp
Quote:
Originally Posted by Fraggulus
..Is there a possibility to get umlauts working?
|
[...]
Under Language, what is selected? Should be v8.0 German.
.What happens if you start the windows speech recognizer widget from control panel ... Which works?
|
Hi minsc,
yes, it is 8.0 German and it is working with the German commands. English commands are not recognized.
Quote:
If so your German recognizer is working fine, it could be an umlaut/unicode/script problem, but before I dive into it I'd like to hear that the above is working right.
I'm not sure how I can test that without installing German Vista,
|
finally I got it working in large part. If I run 'python hear.py' words with umlauts are recognized. I guess I 'just' have to train my speech recognition one or two more times.
But I saw another failure. If I run 'sh4speech.bat' all commands are recognized except those with umlauts. The error message is as follows:
Code:
Phrase processed. Waiting for a new phrase...
pythoncom error: Python error invoking COM method.
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\win32com\server\policy.py", line 285, in _Invoke_
return self._invoke_(dispid, lcid, wFlags, args)
File "C:\Python25\Lib\site-packages\win32com\server\policy.py", line 290, in _invoke_
return S_OK, -1, self._invokeex_(dispid, lcid, wFlags, args, None, None)
File "C:\Python25\Lib\site-packages\win32com\server\policy.py", line 588, in _invokeex_
return func(*args)
File "hear.py", line 94, in OnRecognition
print phrase
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xe4' in position 1: ordinal not in range(128)
The spoken command was 'nächste Einheit' and the used version of sh4speech was 1.51.
F.