Danesprite on master
Update docs with info on the XD… (compare)
Danesprite on 0.29.0
Danesprite on master
Update AUTHORS.txt Update changelog Update to version 0.29.0 Pleas… (compare)
Danesprite on master
Improve error message when X11 … Merge pull request #314 from da… (compare)
Danesprite on functions-cmd-module
Danesprite on master
Add _functions_example.py examp… Merge pull request #316 from di… (compare)
Danesprite on functions-cmd-module
Add _functions_example.py examp… (compare)
Danesprite on functions-cmd-module
Add _functions_example.py examp… (compare)
I am trying to set up https://github.com/daanzu/kaldi-active-grammar
I tried following the installation instructions in the readme.
This command was successful:pip install kaldi-active-grammar
This command was unsuccessful:pip install 'dragonfly2[kaldi]'
The output and it's error messages are here:
https://termbin.com/b6h1
I looked at the repository's open issues and did not see an issue title that looked like it was covering this issue.
I'm using a Linux system with:
Python 3.9.1
pip 20.3.3
@daanzu thank you for your work on free libre open source speech recognition.
Your suggestion worked I installed python3-devel-3.9.1
and the command pip install 'dragonfly2[kaldi]'
is now successful.
I cloned https://github.com/daanzu/kaldi-grammar-simple.
In the repository kaldi-grammar-simple
I downloaded and unziped https://github.com/daanzu/kaldi-active-grammar/releases/download/v1.8.0/kaldi_model_daanzu_20200905_1ep-biglm.zip.
This command is unsuccessful:python kaldi_module_loader_plus.py
This is the output and error message that I am getting:
https://termbin.com/0boup
I am following the instructions here https://voxhub.io/kag.
@LexiconCode thank you for your reply.
I am using Void Linux. https://voidlinux.org/
Here is information on the python 3 version I have installed.
python3-3.9.1_1 Python programming language (3.9 series)
https://github.com/void-linux/void-packages/tree/master/srcpkgs/python3
I did have to installed python3-devel and python3-pip in addition to python3.
What other python packages would use suggest I install?
@lexicon-code it does not look like I am using a virtual environment. This is based on the top answer here:
https://stackoverflow.com/questions/990754/how-to-leave-exit-deactivate-a-python-virtualenv
and that the deactivate command is not available.
deactivate: command not found
@sean-hut I would highly recommend trying to utilize a virtualized instance of Python. I've had problems with underlying packages breaking due to changed Python dependencies with distributions of Python that are included with Linux. https://realpython.com/python-virtual-environments-a-primer/
virtualization should make it easier to experiment with other Python versions and isolate packages to your projects. At one point I hope to automate this process is much as possible for new users.
python kaldi_module_loader_plus.py
@daanzu @lunixbochs thank you for your help.
I have solved the error about "Invalid sample rate".
I uninstalled pulseaudio
and pavucontrol
.
Then I changed my .asoundrc
file to:
https://termbin.com/pufz
The key settings where format S16_LE
, channels 2
and rate 16000
.
I am now getting another error message whenever I say anything.
"On Linux, the XDG_SESSION_TYPE environment variable may not be set correctly in some circumstances, in which case it can be set manually in ~/.profile."
$ echo $XDG_SESSION_TYPE
tty
What should XDG_SESSION_TYPE
be set as?
The full output is here:
https://termbin.com/ylgq
@kmdouglass thank you for releasing your Dockerfile for this as free libre open source software.
I like the idea of running the speech recognition in a container.
The README says that the application container requires a PulseAudio socket on the host machine.
It would be nice if the container host did not need pulseaudio
installed. I do not know how it would be implemented without pulseaudio
.
@LexiconCode I don't think Windows has a simple way of retrieving this information. You should be able to set an event hook to catch the MINIMIZESTART
and MINIMIZEEND
events (see Event Constants) and maintain a stack of the current minimised windows.
If you want to go that way, you could use the code in Sapi5SharedEngine._do_recognition() as a starting point.
I am using https://github.com/daanzu/kaldi-grammar-simple
I am having a problem with dictation.
What I said:
dictate the quick brown fox jumped over the lazy dog
What is printed to the terminal:
Recognized: dictate the quick brown fox jumped over the lazy dog
What is actually typed out:
kjd xfgiv nos,l ysb cfmrdh s.do kjd pa/t hsu
I am using the dvorak programmer keyboard layout.
https://www.kaufmann.no/roland/dvorak/
It is selecting the correct key for the letter on the dvorak programmer layout but it then types the qwerty key value.
t -> k
h -> j
e -> d
@sean-hut I use multiple keyboard layouts and have seen this happen only occasionally. It appears to be a long-standing issue with the program Dragonfly uses for X11 keyboard input (xdotool): jordansissel/xdotool#150
Using the setxkbmap
command to set the layout manually has worked for me in the past. You might try one of the workarounds mentioned in that issue.