android-developers
[Arriba] [Todas las Listas]

[android-developers] Texto a discurso

To: android-developers@xxxxxxxxxxxxxxxx
Subject: [android-developers] Texto a discurso
From: shiva pendem <pendem.shiva89@xxxxxxxxx>
Date: Sat, 10 Aug 2013 13:28:36 -0700 (PDT)
Delivery-date: Sat, 10 Aug 2013 16:29:43 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=gts5Xkq5MEveji3PhMFw+V/ted4dmmgwAgYNNO6/5I8=; b=YGo82ulrNU93OHElJO85f21fZeM5NLfv2QsfA69X/l1oC2QS51i+ckaeNBcCg0JTat kvd+knBRSC4/aAAgSoX1d2KMUzPzgt6w74Gh86lbvMftrQFOwo5pfTJuYelNkgU8ONQM /1OA35ojUHW4vprqrI9wRJZFGc73PkbqUaF0zp/II3bOYaj5UMJeiotrbF3sxrNmgYpI BqhKoI3Qka864awsKBVPivd7QK20abTgQvAyYwLcYoBPBCjkBqbwrCthbQQjnY9q5AuU 885JELKHpbloNgjzS8UzaEHp6FM3fncynhYS4uyGWsd1Of37HFMbd+YAsQ+Pyde6cM7C m31g==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=gts5Xkq5MEveji3PhMFw+V/ted4dmmgwAgYNNO6/5I8=; b=xU59iLq5HUkZUgldBiDj4JFQqY1rAw/HVxxsfhovsR+fSG/5mr6gUTlvMQDkMcF5fA MUh2dWrNxt8ENwi6Bb3Iig5HnnsvkVV5IeWwpJml8GKuZTGVffZLapYtZpi6jDe18gZ2 zM+CIuhpiGnpzM20W7VH7UMDFY/p07qjDlHhvVw+nUaYt7z9Buw/WRtEHX13UZGJepPw mxSXfocnyhuPUT0a3/n6dZen+DVtN2xe8gdcCZClHH/yByyHCkDVWi/XbDjt9oEa1dR+ SyrQWkk4wwertQGSpf94Ff20S1lQCy9CjW8P6nV5raLy0aQP8Cw+qO4X3KcMhuvccpk4 rhFg==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/android-developers>
List-help: <http://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/android-developers/subscribe>, <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
HI cada un,

*i gustaría para empezar un texto a discurso en un *incoming llamada y *i ha probado 
el siguiendo método,
clase privada *CallStateListener extiende *PhoneStateListener implementa 
*TextToSpeech.*OnInitListener
 #Nom *TextToSpeech *tts;
 @*Override
público *void *onCallStateChanged(*int estado, Cadena *incomingNumber)
#unknown{^*boolean introducido=falso;
                        *tts = nuevo *TextToSpeech(*ctx, nuevo 
*TextToSpeech.*OnInitListener()
#Nom *void *onInit(*int estado)
// #unknown{^*TODO Coche-colilla de método generado
si (estado == *TextToSpeech.ÉXITO)
#unknown{^*int resultado = *tts.*setLanguage(*Locale.EE.UU.);
si (resultado == *TextToSpeech.*LANG_PERDIENDO_resultado|| de DATO == 
*TextToSpeech.*LANG_NO_APOYADO)
#unknown{^*Log.*e("TTS", "la Lengua no es apoyada");
} más
#unknown{^*speakOut("Prueba");
}
} más
#unknown{^*Log.*e("TTS", "*Initilization Fallado");
}
}
});
cambio (estado)
#nom *TelephonyManager.ESTADO_de LLAMADA_*RINGING:
// llamado cuándo alguien es *ringing a este texto
de Cadena del teléfono="";
si(!Introducido)
#unknown{^*Log.*v("Prueba","*incomingNumber es "+*incomingNumber);
 *tts.Habla("Hola "+*getUserName()+" tienes una llamada ", 
*TextToSpeech.*QUEUE_*FLUSH, *null);
introducido=!Introducido;
}
Tostada.*makeText(*ctx,"*Incoming: "+*incomingNumber+" 
 "+texto,Tostada.LONG_de LONGITUD).Espectáculo();
rotura;
caso *TelephonyManager.ESTADO_de LLAMADA_*OFFHOOK:
si(introducido)
#verbcj=!Introducido;
}
rotura;
}
}
público *void *onInit(*int estado)
// #unknown{^*TODO Coche-colilla de método generado
si (estado == *TextToSpeech.ÉXITO)

#unknown{^*int resultado = *tts.*setLanguage(*Locale.EE.UU.);

si (resultado == *TextToSpeech.*LANG_PERDIENDO_resultado
|| de DATO == *TextToSpeech.*LANG_NO_APOYADO)
#unknown{^*Log.*e("TTS", "la Lengua no es apoyada");
} más
#unknown{^*speakOut("Prueba");
}

} más
#unknown{^*Log.*e("TTS", "*Initilization Fallado");
}
}
privado *void *speakOut(texto de Cadena)
#unknown{^*tts.Habla(texto, *TextToSpeech.*QUEUE_*FLUSH, *null);
}
}

he *initialized y utilizado todos los métodos pero incapaz de conseguir la producción 
requerida,

Puede cualquiera me dice cómo puede *i vencido este asunto y hacer el discurso en 
una llamada con usuario mensaje definido,

Si posible complacer consejo me el *jar que es utilizado para convertir texto a discurso 
con un método sencillo,mientras el teléfono era *ringing,

*Thanks anticipadamente,
*Shiva *Shankar

-- 
recibiste este mensaje porque eres *subscribed al *Google
Grupos "*Android *Developers" grupo.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx
A *unsubscribe de este grupo, envía *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx

Puesto que más opciones, visita este grupo en
*http://grupos.*google.*com/Grupo/*android-*developers?*hl=*en
--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*Android *Developers" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx.
Puesto que más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


HI every one,

i would like to start a text to speech on a incoming call and i have tried 
the following method,
private class CallStateListener extends PhoneStateListener implements 
TextToSpeech.OnInitListener{
 public TextToSpeech tts;
 @Override
public void onCallStateChanged(int state, String incomingNumber) {
boolean entered=false;
                        tts = new TextToSpeech(ctx, new 
TextToSpeech.OnInitListener() {
public void onInit(int status) {
// TODO Auto-generated method stub
if (status == TextToSpeech.SUCCESS) {
int result = tts.setLanguage(Locale.US);
if (result == TextToSpeech.LANG_MISSING_DATA|| result == 
TextToSpeech.LANG_NOT_SUPPORTED) {
Log.e("TTS", "Language is not supported");
} else {
speakOut("Test");
}
} else {
Log.e("TTS", "Initilization Failed");
}
}
});
switch (state) {
case TelephonyManager.CALL_STATE_RINGING:
// called when someone is ringing to this phone
String text="";
if(!entered)
{
Log.v("Test","incomingNumber is "+incomingNumber);
 tts.speak("Hello "+getUserName()+" you have a call ", 
TextToSpeech.QUEUE_FLUSH, null);
entered=!entered;
}
Toast.makeText(ctx,"Incoming: "+incomingNumber+" 
 "+text,Toast.LENGTH_LONG).show();
break;
case TelephonyManager.CALL_STATE_OFFHOOK:
if(entered)
{
entered=!entered;
}
break;
}
}
public void onInit(int status) {
// TODO Auto-generated method stub
if (status == TextToSpeech.SUCCESS) {

int result = tts.setLanguage(Locale.US);

if (result == TextToSpeech.LANG_MISSING_DATA
|| result == TextToSpeech.LANG_NOT_SUPPORTED) {
Log.e("TTS", "Language is not supported");
} else {
speakOut("Test");
}

} else {
Log.e("TTS", "Initilization Failed");
}
}
private void speakOut(String text) {
tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
}
}

I have initialized and used all the methods but unable to get the required 
output,

Can any one tell me how can i overcome this issue and make the speech on a 
call with user defined message,

If possible please advice me the jar that are used to convert text into 
speech with a simple method,while the phone was ringing,

Thanks in advance,
Shiva Shankar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>