pub fn from_endpoint<S>(endpoint: S) -> Result<SpeechConfig>
    where
        S: Into<Vec<u8>>,
    {
        let c_endpoint = CString::new(endpoint)?;

        unsafe {
            let mut handle: SPXSPEECHCONFIGHANDLE = MaybeUninit::uninit().assume_init();
            let ret =
                speech_config_from_endpoint(&mut handle, c_endpoint.as_ptr(), std::ptr::null());
            convert_err(ret, "SpeechConfig::from_endpoint error")?;
            SpeechConfig::from_handle(handle)
        }
    }
/// Creates an instance of SpeechConfig with specified endpoint.
/// 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: If the endpoint requires a subscription key for authentication, use NewSpeechConfigFromEndpointWithSubscription
/// to pass the subscription key as parameter.
/// To use an authorization token with FromEndpoint, use this method to create a SpeechConfig instance, and then
/// call SetAuthorizationToken() on the created SpeechConfig instance.
Creates an instance of SpeechConfig with specified endpoint.
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 SpeechConfig with specified endpoint . 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<S>(endpoint: S) -> Result<SpeechConfig>
    where
        S: Into<Vec<u8>>,
    {
        let c_endpoint = CString::new(endpoint)?;
        unsafe {
            let mut handle: SPXSPEECHCONFIGHANDLE = MaybeUninit::uninit().assume_init();
            let ret =
                speech_config_from_endpoint(&mut handle, c_endpoint.as_ptr(), std::ptr::null());
            convert_err(ret, "SpeechConfig::from_endpoint error")?;
            SpeechConfig::from_handle(handle)
        }
    }
pub fn from_endpoint < S > ( endpoint : S ) -> Result < SpeechConfig > where S : Into < Vec < u8 > > , { let c_endpoint = CString :: new ( endpoint ) ? ; unsafe { let mut handle : SPXSPEECHCONFIGHANDLE = MaybeUninit :: uninit ( ) . assume_init ( ) ; let ret = speech_config_from_endpoint ( & mut handle , c_endpoint . as_ptr ( ) , std :: ptr :: null ( ) ) ; convert_err ( ret , " " ) ? ; SpeechConfig :: from_handle ( handle ) } }
Creates an instance of SpeechConfig with specified endpoint.
Creates an instance of SpeechConfig with specified endpoint .
endpoint
S
endpoint
S