// Creates an instance of the speech config with specified endpoint
/// and subscription.
/// This method is intended only for users who use a non-standard service endpoint.
/// Note: 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 also set by
/// SetSpeechRecognitionLanguage("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.
/// Note: To use an authorization token with endoint, use FromEndpoint,
/// and then call SetAuthorizationToken() on the created SpeechConfig instance.
Creates an instance of the speech config with specified endpoint
and subscription.
This method is intended only for users who use a non-standard service endpoint.
Note: The query parameters specified in the endpoint URI are not changed, even if they are set by any other APIs.
Creates an instance of the speech config with specified endpoint and subscription . This method is intended only for users who use a non - standard service endpoint . Note : The query parameters specified in the endpoint URI are not changed even if they are set by any other APIs .
pub fn from_endpoint_with_subscription<S>(endpoint: S, subscription: S) -> Result<SpeechConfig>
    where
        S: Into<Vec<u8>>,
    {
        let c_endpoint = CString::new(endpoint)?;
        let c_subscription = CString::new(subscription)?;
        unsafe {
            let mut handle: SPXSPEECHCONFIGHANDLE = MaybeUninit::uninit().assume_init();
            let ret = speech_config_from_endpoint(
                &mut handle,
                c_endpoint.as_ptr(),
                c_subscription.as_ptr(),
            );
            convert_err(ret, "SpeechConfig::from_endpoint_with_subscription error")?;
            SpeechConfig::from_handle(handle)
        }
    }
pub fn from_endpoint_with_subscription < S > ( endpoint : S , subscription : S ) -> Result < SpeechConfig > where S : Into < Vec < u8 > > , { let c_endpoint = CString :: new ( endpoint ) ? ; let c_subscription = CString :: new ( subscription ) ? ; unsafe { let mut handle : SPXSPEECHCONFIGHANDLE = MaybeUninit :: uninit ( ) . assume_init ( ) ; let ret = speech_config_from_endpoint ( & mut handle , c_endpoint . as_ptr ( ) , c_subscription . as_ptr ( ) , ) ; convert_err ( ret , " " ) ? ; SpeechConfig :: from_handle ( handle ) } }
Creates an instance of the speech config with specified endpoint
and subscription.
Creates an instance of the speech config with specified endpoint and subscription .
endpoint
S
subscription
S