this post was submitted on 03 Feb 2024
18 points (95.0% liked)

Steam Deck

14869 readers
375 users here now

A place to discuss and support all things Steam Deck.

Replacement for r/steamdeck_linux.

As Lemmy doesn't have flairs yet, you can use these prefixes to indicate what type of post you have made, eg:
[Flair] My post title

The following is a list of suggested flairs:
[Discussion] - General discussion.
[Help] - A request for help or support.
[News] - News about the deck.
[PSA] - Sharing important information.
[Game] - News / info about a game on the deck.
[Update] - An update to a previous post.
[Meta] - Discussion about this community.

Some more Steam Deck specific flairs:
[Boot Screen] - Custom boot screens/videos.
[Selling] - If you are selling your deck.

These are not enforced, but they are encouraged.

Rules:

Link to our Matrix Space

founded 3 years ago
MODERATORS
 

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
  • Install NerdDIctation
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.

  • Configure xbindkeys With Nano edit the file /home/deck/.xbindkeysrc to add
#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

    • The decky way : Install the plugin Bash Shortcut configure a new shortcut - Name : Dictation - Command : konsole --noclose -e xbindkeys
    • The old way : Add konsole as a non-steam game (no arguments needed, or at least -e didn't work for me) Restart In game mode, open konsole and run xbindkeys
  • 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) :

    • L5 as "Alt key" with ". key" as a sub key
    • R5 as "Alt key" with ", key" as a sub key
  • 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

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here