Speaker Diarization
Learn how to get tags for each recognized speaker.
Introduction
NOTE: This is a beta feature. It should be considered for testing purposes only.
This feature is helpful when there is more than one speaker and there is a desire to identify each speaker.
- Review the sample code below:
client = speech_v1p1beta1.SpeechClient()
language_code = "en-US"
sample_rate_hertz = 44100
encoding = enums.RecognitionConfig.AudioEncoding.MP3
config = {
"language_code": language_code,
"sample_rate_hertz": sample_rate_hertz,
"encoding": encoding,
}
Get hands-on with 1400+ tech skills courses.