-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add microphone realtime example #88
Conversation
71d86a8
to
ca99904
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding such an example!
) as stream: | ||
settings = speechmatics.models.AudioSettings( | ||
sample_rate=frame_rate, | ||
chunk_size=1024 * 4, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does this chunk size value come from? maybe add a comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it now, it was set to the default value anyway
conf = speechmatics.models.TranscriptionConfig( | ||
language="en", | ||
operating_point="enhanced", | ||
max_delay=2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this can be a user input? this can vary the performance of RT depending on the delay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes good idea, changed!
ca99904
to
4a7b2b9
Compare
4a7b2b9
to
75664cb
Compare
Quick example how microphone input can be read and transcribed with the
sound device
and speechmatics libraries