IEnumerator Start()
    {
        _cs          = GetComponent <ChatSocket> ();
        _thresh_step = (_max_done_thresh - _min_done_thresh) / (float)_max_thresh_len;
        LogSystem.InstallDefaultReactors();
        TextAsset jsonCredText = Resources.Load("stt_creds") as TextAsset;
        CredText  creds        = JsonUtility.FromJson <CredText>(jsonCredText.text);

        //  Create credential and instantiate service
        _credentials  = new Credentials(creds.username, creds.password, creds.url);
        _speechToText = new SpeechToTextService(_credentials);

        yield return(new WaitForSeconds(1));

        this.Active = true;
        StartRecording();
        Log.Debug("SpeechListener.Start()", "SpeechToText.isListening: {0}", _speechToText.IsListening);
    }
    IEnumerator Start()
    {
        yield return(voice);

        if (voice == "michaelV3")
        {
            serviceVoice = "en-US_MichaelV3Voice";
        }
        else if (voice == "michael")
        {
            serviceVoice = "en-US_MichaelVoice";
        }
        TextAsset jsonCredText = Resources.Load("tts_creds") as TextAsset;
        CredText  creds        = JsonUtility.FromJson <CredText>(jsonCredText.text);

        //  Create credential and instantiate service
        Credentials credentials = new Credentials(creds.username, creds.password, creds.url);

        _textToSpeech = new TextToSpeechService(credentials);
        //_textToSpeech.Voice = VoiceType.en_US_Michael;
        _done_loading = true;
    }