Example #1
0
        public void OnError([GeneratedEnum] SpeechRecognizerError error)
        {
            string errorMensaje = errorText.GetErrorText(error);

            if (error == SpeechRecognizerError.NoMatch)
            {
                record      = true;
                textToSpeak = "Lo siento, no le he entendido. ¿Qué quiere hacer?. ¿Enviar, leer, contactos, configuración, cerrar sesión, o no hacer nada?";
                toSpeech    = new TextToSpeech(this, this);
            }
            else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout)
            {
                record      = false;
                textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde.";
            }
        }
Example #2
0
        public void OnError([GeneratedEnum] SpeechRecognizerError error)
        {
            string errorMensaje = errorText.GetErrorText(error);

            if (error == SpeechRecognizerError.NoMatch)
            {
                record      = true;
                textToSpeak = "Lo siento, no le he entendido. ¿Cuál es su número de teléfono?";
                toSpeech    = new TextToSpeech(this, this);
            }
            else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout)
            {
                record      = false;
                textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde.";
            }
        }
Example #3
0
        public void OnError([GeneratedEnum] SpeechRecognizerError error)
        {
            string errorMensaje = errorText.GetErrorText(error);

            if (error == SpeechRecognizerError.NoMatch)
            {
                record      = true;
                count       = 0;
                textToSpeak = "Lo siento, no le he entendido. Por favor, diga el nombre del contacto a quien quiere enviar un mensaje";
                toSpeech    = new TextToSpeech(this, this);
            }
            else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout)
            {
                record      = false;
                textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde.";
            }
        }
Example #4
0
        public void OnError([GeneratedEnum] SpeechRecognizerError error)
        {
            string errorMensaje = errorText.GetErrorText(error);

            if (error == SpeechRecognizerError.NoMatch)
            {
                countSpeech = 0;
                textToSpeak = "Lo siento, no le he entendido. ¿Quiere modificar su nombre de usuario, el tipo de voz, la velocidad de lectura " +
                              "o la activación de la voz, no hacer nada o volver atrás?";
                toSpeech = new TextToSpeech(this, this);
            }
            else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout)
            {
                record      = false;
                textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde.";
            }
        }
Example #5
0
        public void OnError([GeneratedEnum] SpeechRecognizerError error)
        {
            string errorMensaje = errorText.GetErrorText(error);

            if (error == SpeechRecognizerError.NoMatch)
            {
                record      = true;
                countSpeech = 0;
                textToSpeak = "Lo siento, no le he entendido. ¿Quiere buscar un contacto, no hacer nada o volver atrás?";
                toSpeech    = new TextToSpeech(this, this);
            }
            else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout)
            {
                record      = false;
                textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde.";
            }
        }