/// Starts speech recognition, and returns after a single utterance is recognized.
/// The end of a single utterance is determined by listening for silence at the end or until a maximum
/// of 15 seconds of audio is processed.  The task returns the recognition text as result.
/// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
/// shot recognition like command or query.
/// For long-running multi-utterance recognition, use StartContinuousRecognitionAsync() instead.
Starts speech recognition, and returns after a single utterance is recognized.
The end of a single utterance is determined by listening for silence at the end or until a maximum
of 15 seconds of audio is processed.  The task returns the recognition text as result.
Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
shot recognition like command or query.
For long-running multi-utterance recognition, use StartContinuousRecognitionAsync() instead.
Starts speech recognition and returns after a single utterance is recognized . The end of a single utterance is determined by listening for silence at the end or until a maximum of 15 seconds of audio is processed . The task returns the recognition text as result . Note : Since RecognizeOnceAsync () returns only a single utterance it is suitable only for single shot recognition like command or query . For long - running multi - utterance recognition use StartContinuousRecognitionAsync () instead .
pub async fn recognize_once_async(&mut self) -> Result<SpeechRecognitionResult> {
        unsafe {
            let mut handle_result: SPXRESULTHANDLE = MaybeUninit::uninit().assume_init();
            let ret = recognizer_recognize_once(self.handle.inner(), &mut handle_result);
            convert_err(ret, "SpeechRecognizer.recognize_once_async error")?;
            SpeechRecognitionResult::from_handle(handle_result)
        }
    }
pub async fn recognize_once_async ( & mut self ) -> Result < SpeechRecognitionResult > { unsafe { let mut handle_result : SPXRESULTHANDLE = MaybeUninit :: uninit ( ) . assume_init ( ) ; let ret = recognizer_recognize_once ( self . handle . inner ( ) , & mut handle_result ) ; convert_err ( ret , " " ) ? ; SpeechRecognitionResult :: from_handle ( handle_result ) } }
Starts speech recognition, and returns after a single utterance is recognized.
Starts speech recognition and returns after a single utterance is recognized .
&mut self