I finally managed to make some kind of dicttaion work in games (I mainly use is in socials games like Space Station 14)
I used the following steps:
You may need some preriquisite : Use discover to install zip and git if missing
Install PIP and VOSK in python In desktop run Konsole then the following commands :
python3 -m ensurepip --upgrade
python3 -m pip install --upgrade
python3 -m pip install vosk --break-system-packages
git clone https://github.com/ideasman42/nerd-dictation.git
cd nerd-dictation
wget https://alphacephei.com/kaldi/models/vosk-model-small-en-us-0.15.zip
unzip vosk-model-small-en-us-0.15.zip
mv vosk-model-small-en-us-0.15 model
You may be able to use other languages by using other models.
#Start dictation
"/home/deck/nerd-dictation/nerd-dictation begin --vosk-model-dir=/home/deck/nerd-dictation/model"
Alt + comma
#End dictation
"/home/deck/nerd-dictation/nerd-dictation end"
Alt + period
Restart the steamdeck
Test the configuration In a fresh desktop session, open a konsole and call xbindkeys. Ensure that your buttons for starting and stopping dictation work.
Adding a shortcut to game mode
Bind two button in the steam controller configuration for the games you wish to use dictation with. I use this (I personnaly use R5 to start the dictation and L5 to stop the dictation) :
To use normaly, run the bash shortcut before running a game.
Tell me if you got errors, I would be more that happy to help you solve problems
@NotDiurnambule
@lemmy.dbzer0.com