Assets/SpeechToText/Scripts/SpeechToTextWidgets/SpeechToTextServiceWidget.cs
/// <summary>
/// Starts waiting for the last text result and tells the speech-to-text service to stop recording.
/// If a streaming speech-to-text service stops recording and the last result sent by it was not already final,
/// the service is guaranteed to send a final result or error after or before some defined amount of time has passed.
/// </summary>
/// <param name="comparisonPhrase">Optional text to compare the speech-to-text result against</param>
Starts waiting for the last text result and tells the speech-to-text service to stop recording.
If a streaming speech-to-text service stops recording and the last result sent by it was not already final,
the service is guaranteed to send a final result or error after or before some defined amount of time has passed.
Starts waiting for the last text result and tells the speech - to - text service to stop recording . If a streaming speech - to - text service stops recording and the last result sent by it was not already final the service is guaranteed to send a final result or error after or before some defined amount of time has passed .
public void StopRecording(string comparisonPhrase = null)
        {
            m_ComparisonPhrase = comparisonPhrase;
            if (m_LastResultWasFinal)
            {
                ProcessEndResults();
            }
            else
            {
                m_WaitingForLastFinalResultOfSession = true;
            }
            m_SpeechToTextService.StopRecording();
        }
public void StopRecording ( string comparisonPhrase = null ) { m_ComparisonPhrase = comparisonPhrase ; if ( m_LastResultWasFinal ) { ProcessEndResults ( ) ; } else { m_WaitingForLastFinalResultOfSession = true ; } m_SpeechToTextService . StopRecording ( ) ; }
Starts waiting for the last text result and tells the speech-to-text service to stop recording.
Starts waiting for the last text result and tells the speech - to - text service to stop recording .
comparisonPhrase
string
Optional text to compare the speech-to-text result against
Optional text to compare the speech - to - text result against