Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming recognition punctuation #84

Open
epigraphe opened this issue Jul 28, 2023 · 0 comments
Open

Streaming recognition punctuation #84

epigraphe opened this issue Jul 28, 2023 · 0 comments

Comments

@epigraphe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant