Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 6.7k
Diarization#1556
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
Uh oh!
There was an error while loading. Please reload this page.
Diarization #1556
Changes from all commits
1b7f973de21a5d7479ad20a1bc79010f66c8f4a8d87c96b39cf2dc432891e7e3607c47321cc985443045c569529bdb3ed7f18b8fcFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -14,7 +14,9 @@ | ||
| import os | ||
| from beta_snippets import ( | ||
| transcribe_file_with_auto_punctuation, transcribe_file_with_enhanced_model, | ||
| transcribe_file_with_auto_punctuation, | ||
| transcribe_file_with_diarization, | ||
| transcribe_file_with_enhanced_model, | ||
| transcribe_file_with_metadata) | ||
| RESOURCES = os.path.join(os.path.dirname(__file__), 'resources') | ||
| @@ -42,3 +44,11 @@ def test_transcribe_file_with_auto_punctuation(capsys): | ||
| out, _ = capsys.readouterr() | ||
| assert 'Okay. Sure.' in out | ||
| def test_transcribe_diarization(capsys): | ||
| transcribe_file_with_diarization( | ||
| os.path.join(RESOURCES, 'Google_Gnome.wav')) | ||
| out, err = capsys.readouterr() | ||
| assert 'OK Google stream stranger things from Netflix to my TV' in out | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are there two different speakers in this audio file? if so assert something about the speaker_tags being returned correctly. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| google-cloud-speech==0.33.0 | ||
| google-cloud-speech==0.35.0 |
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.
does each
wordinalternative.wordshave other relevant information concerning diarization besidesspeaker_tag? if so print them as well, if not please ignore this comment.