Adding PhraseDetection mode Conversation for ConversationTranscriber

This commit is contained in:
Marko Hietala 2023-09-06 11:35:22 -04:00
Родитель a34b15714f
Коммит b4274485a4
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -49,6 +49,7 @@ export class ConversationTranscriptionServiceRecognizer extends ServiceRecognize
protected setSpeakerDiarizationJson(): void {
if (this.privEnableSpeakerId) {
const phraseDetection = this.privSpeechContext.getSection("phraseDetection") as PhraseDetection;
phraseDetection.mode = "Conversation";
const speakerDiarization: SpeakerDiarization = {};
speakerDiarization.mode = "Anonymous";
speakerDiarization.audioSessionId = this.privDiarizationSessionId;