You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Use a custom model for automatic language detection
117
134
118
135
In addition to language detection using Speech service models, you can specify a custom model for enhanced recognition. If a custom model isn't provided, the service will use the default language model.
Next, specify the source language of your audio with `speechRecognitionLanguage`:
171
+
In this example, the source language is provided using `SPXSourceLanguageConfiguration`. Then, the `SPXSourceLanguageConfiguration` is passed as a parameter to `SPXSpeechRecognizer` construct.
If you're using a custom model for recognition, you can specify the endpoint with `endpointId`:
180
+
In this example, the source language and custom endpoint are provided using `SPXSourceLanguageConfiguration`. Then, the `SPXSourceLanguageConfiguration` is passed as a parameter to `SPXSpeechRecognizer` construct.
180
181
181
182
```Objective-C
182
-
speechConfig.endpointId = @"The Endpoint ID for your custom model.";
> `speechRecognitionLanguage` and `endpointId` properties are deprecated from the `SPXSpeechConfiguration` class in Objective-C. The use of these properties are discouraged, and shouldn't be used when constructing a `SPXSpeechRecognizer`.
193
+
185
194
::: zone-end
186
195
187
196
## See also
@@ -190,4 +199,4 @@ speechConfig.endpointId = @"The Endpoint ID for your custom model.";
0 commit comments