pub fn speech_recognizer_from_push_stream() -> (SpeechRecognizer, PushAudioInputStream) {
    let wave_format = AudioStreamFormat::get_wave_format_pcm(16000, None, None).unwrap();
    let push_stream = PushAudioInputStream::create_push_stream_from_format(wave_format).unwrap();
    let audio_config = AudioConfig::from_stream_input(&push_stream).unwrap();
    (speech_recognizer_from_audio_cfg(audio_config), push_stream)
}
/// creates speech recognizer from push input stream and MS speech subscription key
/// returns recognizer and also push stream so that data push can be initiated
creates speech recognizer from push input stream and MS speech subscription key
returns recognizer and also push stream so that data push can be initiated
creates speech recognizer from push input stream and MS speech subscription key returns recognizer and also push stream so that data push can be initiated
pub fn speech_recognizer_from_push_stream() -> (SpeechRecognizer, PushAudioInputStream) {
    let wave_format = AudioStreamFormat::get_wave_format_pcm(16000, None, None).unwrap();
    let push_stream = PushAudioInputStream::create_push_stream_from_format(wave_format).unwrap();
    let audio_config = AudioConfig::from_stream_input(&push_stream).unwrap();
    (speech_recognizer_from_audio_cfg(audio_config), push_stream)
}
pub fn speech_recognizer_from_push_stream ( ) -> ( SpeechRecognizer , PushAudioInputStream ) { let wave_format = AudioStreamFormat :: get_wave_format_pcm ( 16000 , None , None ) . unwrap ( ) ; let push_stream = PushAudioInputStream :: create_push_stream_from_format ( wave_format ) . unwrap ( ) ; let audio_config = AudioConfig :: from_stream_input ( & push_stream ) . unwrap ( ) ; ( speech_recognizer_from_audio_cfg ( audio_config ) , push_stream ) }
creates speech recognizer from push input stream and MS speech subscription key
returns recognizer and also push stream so that data push can be initiated
creates speech recognizer from push input stream and MS speech subscription key returns recognizer and also push stream so that data push can be initiated