Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// Invoke this function stop this service from listening.
/// </summary>
/// <returns>Returns true on success, false on failure.</returns>
Invoke this function stop this service from listening.
Invoke this function stop this service from listening .
public bool StopListening()
        {
            if (!m_IsListening)
                return false;
            m_IsListening = false;
            CloseListenConnector();
            if (m_KeepAliveRoutine != 0)
            {
                Runnable.Stop(m_KeepAliveRoutine);
                m_KeepAliveRoutine = 0;
            }
            m_ListenRecordings.Clear();
            m_ListenCallback = null;
            m_RecordingHZ = -1;
            return true;
        }
public bool StopListening ( ) { if ( ! m_IsListening ) return false ; m_IsListening = false ; CloseListenConnector ( ) ; if ( m_KeepAliveRoutine != 0 ) { Runnable . Stop ( m_KeepAliveRoutine ) ; m_KeepAliveRoutine = 0 ; } m_ListenRecordings . Clear ( ) ; m_ListenCallback = null ; m_RecordingHZ = - 1 ; return true ; }
Invoke this function stop this service from listening.
Invoke this function stop this service from listening .
Returns true on success, false on failure.
Returns true on success false on failure .