Add microphone realtime example#88
Merged
Merged
Conversation
71d86a8 to
ca99904
Compare
aaronng91
approved these changes
Feb 29, 2024
Contributor
aaronng91
left a comment
There was a problem hiding this comment.
thanks for adding such an example!
| ) as stream: | ||
| settings = speechmatics.models.AudioSettings( | ||
| sample_rate=frame_rate, | ||
| chunk_size=1024 * 4, |
Contributor
There was a problem hiding this comment.
where does this chunk size value come from? maybe add a comment?
Contributor
Author
There was a problem hiding this comment.
I removed it now, it was set to the default value anyway
| conf = speechmatics.models.TranscriptionConfig( | ||
| language="en", | ||
| operating_point="enhanced", | ||
| max_delay=2, |
Contributor
There was a problem hiding this comment.
maybe this can be a user input? this can vary the performance of RT depending on the delay
Contributor
Author
There was a problem hiding this comment.
yes good idea, changed!
ca99904 to
4a7b2b9
Compare
4a7b2b9 to
75664cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quick example how microphone input can be read and transcribed with the
sound deviceand speechmatics libraries