Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
I use SDK 1.5

Original comment by [email protected] on 19 May 2009 at 10:16

from eyes-free.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
I have the same problem. Does anyone have any suggestion to fix it? 
Furthermore, is
there any way to know the length of the spoken sentence? Thanks.

Original comment by [email protected] on 26 Aug 2009 at 3:38

from eyes-free.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
I also have this problem, and it is highly disruptive.

Original comment by [email protected] on 17 Apr 2010 at 2:11

from eyes-free.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
The TTS library allows you to queue speech.  See:  
http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#spea
k(jav
a.lang.String, int, java.util.HashMap<java.lang.String, java.lang.String>)

So, instead of using calls to isSpeaking(), it would be more efficient to speak 
consecutively using something similar to the following:

myTTS.speak("This is my first sentence.", 0, null);
myTTS.speak("This will be spoken after the first sentence is complete.", 1, 
null);

Subsequent calls to speak() using 1 or TextToSpeech.QUEUE_ADD as the second 
parameter 
will continue to chain the spoken text, but as soon as speak() is called with a 
0 or 
TextToSpeeach.QUEUE_FLUSH, speech will be interrupted.

Hope this helps,
Casey Burkhardt

Original comment by [email protected] on 5 Jun 2010 at 2:38

  • Changed title: [TTS] - Generating Consecutive Speech
  • Changed state: Done
  • Added labels: Type-Other
  • Removed labels: Priority-Medium, Type-Defect

from eyes-free.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.