Skip to content

Streaming recognition punctuation #84

Description

@epigraphe

Hello. Can you please tell me how to use the punctuator to process the text I get from the vosk?
Probably for my purposes there is no need to use the file playing_with_model.py every time

Recasepunc currently works like this

if 'result' in res:
        text = " ".join([w['word'] for w in res['result']])
        cased = subprocess.check_output('python3 /home/ubuntu/speech/recasepunc/recasepunc.py predict /home/ubuntu/speech/recasepunc/checkpoint', shell=True, text=True, input=text)

but it's slow enough for my purposes, so I want to try yours.
I set everything up and everything works through the playing_with_model.py file, now the question is in streaming recognition.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions