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

Getting Punctuation from Google Speech-to-text #12

Open
nuttyartist opened this issue Jan 2, 2020 · 0 comments
Open

Getting Punctuation from Google Speech-to-text #12

nuttyartist opened this issue Jan 2, 2020 · 0 comments

Comments

@nuttyartist
Copy link
Owner

By default, Speech-to-Text does not include punctuation marks in the results from speech recognition. We can, however, request that Speech-to-Text detect and insert punctuation in transcription results. Speech-to-Text can recognize commas, question marks, and periods in transcription requests.

This can be enabled by setting the enableAutomaticPunctuation field to true in the RecognitionConfig parameters for the request.
https://cloud.google.com/speech-to-text/docs/automatic-punctuation#speech-enhanced-model-protocol

This is what I did in speechtotext.cpp:

recognition_config->enable_automatic_punctuation(); 

But it doesn't seem to work. I also made sure to have the latest googleapi from https://github.com/googleapis/googleapis.

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

No branches or pull requests

1 participant