Closed moonbeamcelery closed 11 months ago
Thanks for the contribution!
A few things:
text = text.replace("\\s".toRegex(), "")
should be called inside VoskLocal
(and VoskServer
) as it's specific to that source (it shouldn't have placed the spaces in the first place)shouldAddSpace
, it's better to return before val cs = ic.getTextBeforeCursor(1, 0)
, as it's an expensive callI can make the changes myself if you prefer
I can make those changes!
Made required changes.
While I have your attention. I'm thinking of implementing 29, but with trigger words to switch between them, like when you say "spelling mode" and pause, the app instead of committing the text, it calls this thing. What do you think?
There could be a list of phrases and the corresponding punctuation and character. I can hard-code it first and see where you want to put it.
Trying to close #16 myself. Passing locale to filter out whitespaces in languages where they are irrelevant.