Sharrnah / whispering-ui

Native UI for the Whispering Tiger project - https://github.com/Sharrnah/whispering (live transcription / translation)
https://whispering-tiger.github.io/
MIT License
187 stars 11 forks source link

Automatically press enter to input the transcribed text. #15

Closed Wuzzooy closed 6 months ago

Wuzzooy commented 6 months ago

Hello, Thank you for this massive work.

Is it possible to add an option with the keyboardTyping plugin to automatically press enter once the transcribed text from speech to text is done so we don't have to press manually enter key ?

It could be done by setting a time when there is silence or when using a key push to talk, it could be done by releasing the key.

Thank you.

Sharrnah commented 6 months ago

Thank you for the suggestion.

I just added a "in_game_chat" settings dictionary to the Keyboard typing plugin (now version 1.0.4).

This has two values. one key that is pressed before the text is typed, and one after the text is typed. its disabled by default. The post and pre typing keys are what i think are the most common hotkeys for in-game chats.

So if enabled, it presses "T" before typing, and Enter after it finished typing.

I hope thats what you where looking for.

grafik

let me know if that works.

Wuzzooy commented 6 months ago

Thank you it's even better than what i asked with the pre typing key function and yes it does work.

Sharrnah commented 6 months ago

NIce. :) Thanks for confirming it works.

WIll close this then. Feel free to open another issue for any suggestion or question.