Skip to content

Commit 1e6a3a4

Browse files
committed
property for continuous LID
1 parent a530ce9 commit 1e6a3a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/cognitive-services/Speech-Service/language-identification.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,9 @@ endpoint_string = "wss://{}.stt.speech.microsoft.com/speech/universal/v2".format
424424
speech_config = speechsdk.SpeechConfig(subscription=speech_key, endpoint=endpoint_string)
425425
audio_config = speechsdk.audio.AudioConfig(filename=weatherfilename)
426426
427+
# Set the LanguageIdMode (Optional; Either Continuous or AtStart are accepted; Default AtStart)
428+
speech_config.set_property(property_id=speechsdk.PropertyId.SpeechServiceConnection_LanguageIdMode, value='Continuous')
429+
427430
auto_detect_source_language_config = speechsdk.languageconfig.AutoDetectSourceLanguageConfig(
428431
languages=["en-US", "de-DE", "zh-CN"])
429432

0 commit comments

Comments
 (0)