alphacep / alphacep/vosk-api

Feature request: Keyphrases with multiple words

Offen
#1,231 8 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
15.1k
Forks
1.8k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

EDIT: I now propose a more general `SetSuggestionStrength(0.123)` function instead, see my later posts.

Hello, [my program](https://numenvoice.com) lets people use a computer with their voice.
You type keys with syllables like "air", "bat" and "cap", and can transcribe a sentence after saying "scribe".
I'd like to support phrases with multiple words like "uppercase scribe" and "please caps lock".

Currently, if you specify a grammar like this:
```
["function three", "three two one go", "go forth"]
```
the groupings are only taken as hints and you can still get results like "one function go", as you say here: https://github.com/alphacep/vosk-api/issues/484

It would be great if there was something like `SetKeyphrases(1)` that would constrain the results and return them as words with `SetWords(1)`:
```
{
"result" : [{
"conf" : 1.000000,
"end" : 0.810000,
"start" : 0.120000,
"word" : "go forth"
}, {
"conf" : 1.000000,
"end" : 1.260000,
"start" : 0.840000,
"word" : "function three"
}],
"text" : "go forth function three"
}
```

I have no clue how hard this would be but I think it's a common use case.
If you don't think this will happen, I'll try to recombining the results after the fact, but I'd have to just bail if the result were invalid like "one function three", whereas I'd prefer the best valid match how it his currently when you don't put "[unk]" in the grammar.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.