SpeechTranslationConfig.FromEndpoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromEndpoint(Uri) |
Creates an instance of the speech translation config with specified endpoint. Added in 1.5.0 |
FromEndpoint(Uri, String) |
Creates an instance of the speech translation config with specified endpoint and subscription key. |
FromEndpoint(Uri)
Creates an instance of the speech translation config with specified endpoint. Added in 1.5.0
public static Microsoft.CognitiveServices.Speech.SpeechTranslationConfig FromEndpoint (Uri endpoint);
static member FromEndpoint : Uri -> Microsoft.CognitiveServices.Speech.SpeechTranslationConfig
Public Shared Function FromEndpoint (endpoint As Uri) As SpeechTranslationConfig
Parameters
- endpoint
- Uri
The service endpoint to connect to.
Returns
A SpeechTranslationConfig instance.
Remarks
* This method is only used for a non-standard resource path or parameter overrides. To change the host name with standard resource paths, use **FromHost** instead. * The query parameters specified in the endpoint URI are not changed, even if they are set by any other APIs. For example, if the recognition language is defined in URI as query parameter "language=de-DE", and the property SpeechRecognitionLanguage is set to "en-US", the language setting in URI takes precedence, and the effective language is "de-DE". Only the parameters that are not specified in the endpoint URI can be set by other APIs. * If the endpoint requires a subscription key for authentication, use FromEndpoint(System.Uri, string) to pass the subscription key as parameter. To use an authorization token with FromEndpoint, use this method to create a SpeechTranslationConfig instance, and then set the AuthorizationToken property on the created SpeechTranslationConfig instance.
Applies to
FromEndpoint(Uri, String)
Creates an instance of the speech translation config with specified endpoint and subscription key.
public static Microsoft.CognitiveServices.Speech.SpeechTranslationConfig FromEndpoint (Uri endpoint, string subscriptionKey);
static member FromEndpoint : Uri * string -> Microsoft.CognitiveServices.Speech.SpeechTranslationConfig
Public Shared Function FromEndpoint (endpoint As Uri, subscriptionKey As String) As SpeechTranslationConfig
Parameters
- endpoint
- Uri
The service endpoint to connect to.
- subscriptionKey
- String
The subscription key. To create or find your key and region, see Find keys and region.
Returns
A SpeechTranslationConfig instance.
Remarks
* This method is only used for a non-standard resource path or parameter overrides. To change the host name with standard resource paths, use **FromHost** instead. * The query parameters specified in the endpoint URI are not changed, even if they are set by any other APIs. For example, if the recognition language is defined in URI as query parameter "language=de-DE", and the property SpeechRecognitionLanguage is set to "en-US", the language setting in URI takes precedence, and the effective language is "de-DE". Only the parameters that are not specified in the endpoint URI can be set by other APIs. * If the endpoint requires a subscription key for authentication, use FromEndpoint(System.Uri, string) to pass the subscription key as parameter. To use an authorization token with FromEndpoint, use this method to create a SpeechTranslationConfig instance, and then set the AuthorizationToken property on the created SpeechTranslationConfig instance.
Applies to
Azure SDK for .NET