ideasman42 / nerd-dictation

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

Wayland (ydotool) and non Qwerty keyboard layout #97

Open Philetjosie opened 1 year ago

Philetjosie commented 1 year ago

Hello, for wayland, we need to use ydotool. However, ydotool do not manage other keyboard layout than qwerty (see documentation: https://github.com/ReimuNotMoe/ydotool). I confirm that using nerd dictation with ydotool returns wrong words due to this problem. However, I have noticed that If i use the option --output STDOUT to nerd-dictation, the output is then correct, I do not understand why. The drawback is that the text is no more displayed «in real time», but appears only after i stop nerd-dictation. It is not useful (or even usable) as I intend to use it for long texts. Does anyone have an idea to make it work correctly ? Thanks.

Philetjosie commented 1 year ago

In fact, in order to solve the problem as proposed above (using the option --output STDOUT), it will be usefull to be able to have the option to unselect the --defer-output option (implied with --output=STDOUT) in that case.

papoteur-mga commented 5 months ago

Hello, Try DOTOOL and previously define environment variable DOTOOL_XKB_LAYOUT= The code is for example fr for French layout.