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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기