Skip to content

Commit f367f8b

Browse files
committed
remove standalone LID from public preview
1 parent 70bea4c commit f367f8b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: speech-service
1010
ms.topic: how-to
11-
ms.date: 01/11/2023
11+
ms.date: 01/12/2023
1212
ms.author: eur
1313
zone_pivot_groups: programming-languages-speech-services-nomore-variant
1414
---
@@ -114,7 +114,7 @@ You can choose to prioritize accuracy or latency with language identification.
114114
Prioritize `Latency` if you need a low-latency result such as during live streaming. Set the priority to `Accuracy` if the audio quality may be poor, and more latency is acceptable. For example, a voicemail could have background noise, or some silence at the beginning. Allowing the engine more time will improve language identification results.
115115
116116
* **At-start:** With at-start LID in `Latency` mode the result is returned in less than 5 seconds. With at-start LID in `Accuracy` mode the result is returned within 30 seconds. You set the priority for at-start LID with the `SpeechServiceConnection_SingleLanguageIdPriority` property.
117-
* **Continuous:** With continuous LID in `Latency` mode the results are returned every 2 seconds for the duration of the audio. You set the priority for continuous LID with the `SpeechServiceConnection_ContinuousLanguageIdPriority` property.
117+
* **Continuous:** With continuous LID in `Latency` mode the results are returned every 2 seconds for the duration of the audio. Continuous LID in `Accuracy` mode isn't supported with [speech-to-text](#speech-to-text) and [speech translation](#speech-translation) continuous recognition.
118118
119119
> [!IMPORTANT]
120120
> With [speech-to-text](#speech-to-text) and [speech translation](#speech-translation) continuous recognition, do not set `Accuracy` with the SpeechServiceConnection_ContinuousLanguageIdPriority property. The setting will be ignored without error, and the default priority of `Latency` will remain in effect.
@@ -170,6 +170,7 @@ Language identification is completed with recognition objects and operations. Yo
170170
171171
> [!NOTE]
172172
> Don't confuse recognition with identification. Recognition can be used with or without language identification.
173+
173174
Let's map these concepts to the code. You will either call the recognize once method, or the start and stop continuous recognition methods. You choose from:
174175
175176
- Recognize once with at-start LID
@@ -1057,8 +1058,8 @@ translation_config = speechsdk.translation.SpeechTranslationConfig(
10571058
target_languages=('de', 'fr'))
10581059
audio_config = speechsdk.audio.AudioConfig(filename=weatherfilename)
10591060

1060-
# Set the Priority (optional, default Latency, either Latency or Accuracy is accepted)
1061-
translation_config.set_property(property_id=speechsdk.PropertyId.SpeechServiceConnection_SingleLanguageIdPriority, value='Accuracy')
1061+
# Set the Priority (optional, default Latency)
1062+
translation_config.set_property(property_id=speechsdk.PropertyId.SpeechServiceConnection_SingleLanguageIdPriority, value='Latency')
10621063

10631064
# Specify the AutoDetectSourceLanguageConfig, which defines the number of possible languages
10641065
auto_detect_source_language_config = speechsdk.languageconfig.AutoDetectSourceLanguageConfig(languages=["en-US", "de-DE", "zh-CN"])

0 commit comments

Comments
 (0)