File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
sdk/communication/Azure.Communication.CallAutomation/src Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,11 @@ private static RecognizeRequestInternal CreateRecognizeRequest(CallMediaRecogniz
455
455
SpeechOptions = speechConfigurations
456
456
} ;
457
457
458
+ if ( ! String . IsNullOrEmpty ( recognizeSpeechOptions . SpeechLanguage ) )
459
+ {
460
+ recognizeConfigurationsInternal . SpeechLanguage = recognizeSpeechOptions . SpeechLanguage ;
461
+ }
462
+
458
463
RecognizeRequestInternal request = new RecognizeRequestInternal ( recognizeSpeechOptions . InputType , recognizeConfigurationsInternal ) ;
459
464
460
465
request . PlayPrompt = TranslatePlaySourceToInternal ( recognizeSpeechOptions . Prompt ) ;
@@ -485,6 +490,11 @@ private static RecognizeRequestInternal CreateRecognizeRequest(CallMediaRecogniz
485
490
DtmfOptions = dtmfConfigurations ,
486
491
} ;
487
492
493
+ if ( ! String . IsNullOrEmpty ( recognizeSpeechOrDtmfOptions . SpeechLanguage ) )
494
+ {
495
+ recognizeConfigurationsInternal . SpeechLanguage = recognizeSpeechOrDtmfOptions . SpeechLanguage ;
496
+ }
497
+
488
498
RecognizeRequestInternal request = new RecognizeRequestInternal ( recognizeSpeechOrDtmfOptions . InputType , recognizeConfigurationsInternal ) ;
489
499
490
500
request . PlayPrompt = TranslatePlaySourceToInternal ( recognizeSpeechOrDtmfOptions . Prompt ) ;
You can’t perform that action at this time.
0 commit comments