pub fn speech_recognizer_from_audio_cfg(audio_config: AudioConfig) -> SpeechRecognizer {
    let speech_config = SpeechConfig::from_subscription(
        env::var("MSSubscriptionKey").unwrap(),
        env::var("MSServiceRegion").unwrap(),
    )
    .unwrap();
    let speech_recognizer = SpeechRecognizer::from_config(speech_config, audio_config).unwrap();
    speech_recognizer
}
///creates speech recognizer from provided audio config and implicit speech config
/// created from MS subscription key hardcoded in sample file
creates speech recognizer from provided audio config and implicit speech config
created from MS subscription key hardcoded in sample file
creates speech recognizer from provided audio config and implicit speech config created from MS subscription key hardcoded in sample file
pub fn speech_recognizer_from_audio_cfg(audio_config: AudioConfig) -> SpeechRecognizer {
    let speech_config = SpeechConfig::from_subscription(
        env::var("MSSubscriptionKey").unwrap(),
        env::var("MSServiceRegion").unwrap(),
    )
    .unwrap();
    let speech_recognizer = SpeechRecognizer::from_config(speech_config, audio_config).unwrap();
    speech_recognizer
}
pub fn speech_recognizer_from_audio_cfg ( audio_config : AudioConfig ) -> SpeechRecognizer { let speech_config = SpeechConfig :: from_subscription ( env :: var ( " " ) . unwrap ( ) , env :: var ( " " ) . unwrap ( ) , ) . unwrap ( ) ; let speech_recognizer = SpeechRecognizer :: from_config ( speech_config , audio_config ) . unwrap ( ) ; speech_recognizer }
creates speech recognizer from provided audio config and implicit speech config
created from MS subscription key hardcoded in sample file
creates speech recognizer from provided audio config and implicit speech config created from MS subscription key hardcoded in sample file
audio_config
AudioConfig
audio_config
AudioConfig