ideasman42 / nerd-dictation

Simple, hackable offline speech to text - using the VOSK-API.
GNU General Public License v3.0
1.27k stars 106 forks source link

can't find '__main__' module #119

Open ralf3u opened 6 months ago

ralf3u commented 6 months ago

In Lubuntu 23.04 nerd-dicaction worked, but in Lubuntu 23.10 nerd-dictation does not work.

In Lubuntu 23.04 this worked when installing vosk in the terminal: pip3 install vosk But in Lubuntu 23.10 it does not work, so I had to do this in the terminal:

sudo apt install pipx pipx ensurepath

close terminal reopen terminal

pipx install vosk vosk-transcriber -h

the answer was: command not found I restarted the computer and then this line worked: vosk-transcriber -h

It says that my PATH is in .local/bin/

in the terminal I did:

git clone https://github.com/ideasman42/nerd-dictation.git

then I created in nerd-dictation a new folder called model; in this model I pasted the content of vosk-model-en-us-0.42-gigaspeech

in the terminal I did: sudo apt install xdotool

in the terminal I did: python3 nerd-dictation begin

the answer is: /usr/bin/python3: can't find main module in '/home/t/nerd-dictation'

There should be just a small mistake somewhere, but I don't know where.

Thank you very much for your help in advance.

ralf3u commented 6 months ago

This works in the terminal: vosk-transcriber -i 1.ogg -o test1.txt So, vosk is working.

ralf3u commented 6 months ago

Also this works in the terminal: vosk-transcriber -m /home/t/nerd-dictation/model-en/ -i 1.ogg -o test1.txt

ralf3u commented 6 months ago

The program nerd-dictation does not work because as I mentioned in the report I couldn't install pip3 install vosk so I had to continue the installation of vosk like this: sudo apt install pipx

Is there still a possibility to run nerd-dictation even if I installed vosk with the command above?