Skip to content

Commit b4425ec

Browse files
galz10Ace Nassri
authored andcommitted
docs(samples): updated SpeakerDiarizationConfig to use min and max count (#827)
1 parent 0528729 commit b4425ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

speech/betaFeatures.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ async function speechTranscribeDiarization(fileName) {
4242
sampleRateHertz: 8000,
4343
languageCode: 'en-US',
4444
enableSpeakerDiarization: true,
45-
diarizationSpeakerCount: 2,
45+
minSpeakerCount: 2,
46+
maxSpeakerCount: 2,
4647
model: 'phone_call',
4748
};
4849

@@ -91,7 +92,8 @@ async function asyncSpeechTranscribeDiarizationGCS(gcsUri) {
9192
sampleRateHertz: 8000,
9293
languageCode: 'en-US',
9394
enableSpeakerDiarization: true,
94-
diarizationSpeakerCount: 2,
95+
minSpeakerCount: 2,
96+
maxSpeakerCount: 2,
9597
model: 'phone_call',
9698
};
9799

0 commit comments

Comments
 (0)