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.

  1. 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 1200+ tech skills courses.