dictation-toolbox / dragonfly

Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS), Windows Speech Recognition (WSR), Kaldi and CMU Pocket Sphinx
GNU Lesser General Public License v3.0
388 stars 75 forks source link

German numbers are required to be spoken as separate words #306

Closed drmfinlay closed 3 years ago

drmfinlay commented 4 years ago

When using Dragonfly IntegerRef "extras" with the engine language set to German, numbers can't be spoken naturally as whole words. Instead, they must be spoken separately with short pauses. For example, one would have to say "ein und dreissig" instead of "einunddreissig" to match 31.

It should be possible to change Dragonfly's German number implementation (number.py) to accept either way of pronouncing German numbers.

Thanks @tripfish for reporting this on Gitter last month. I should have opened this issue back then, sorry.

drmfinlay commented 3 years ago

I have (finally) been making some progress on this issue. I should have a pull request open in the next day or so. It was difficult to come up with a general and efficient solution.