Skip to content
Permalink
Browse files
fix: Remove reference to deprecated message "diarization_speaker_coun…
…t" in favor of diarization_config (#264)
  • Loading branch information
nicain committed Oct 4, 2021
1 parent 9657e96 commit c1f7f357fe8367dafcdcb3d42e04a2619de2de62
Showing 1 changed file with 7 additions and 2 deletions.
@@ -158,12 +158,17 @@ def transcribe_file_with_diarization():

audio = speech.RecognitionAudio(content=content)

diarization_config = speech.SpeakerDiarizationConfig(
enable_speaker_diarization=True,
min_speaker_count=2,
max_speaker_count=10,
)

config = speech.RecognitionConfig(
encoding=speech.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=8000,
language_code="en-US",
enable_speaker_diarization=True,
diarization_speaker_count=2,
diarization_config=diarization_config,
)

print("Waiting for operation to complete...")

0 comments on commit c1f7f35

Please sign in to comment.