Feature request: Keyphrases with multiple words
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 15.1k
- Forks
- 1.8k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.