Announcement

Collapse

Technology Forum Has Moved!

The FIRST Tech Challenge Technology forum has moved to a new location! Please take a look at our forum blog for links and instructions on how to access the new forum.

The official blog of the FIRST Tech Challenge - a STEM robotics programs for students grades 7-12.


Note that volunteers (except for FTA/WTA/CSA will still access their role specific forum through this site. The blog also outlines how to access the volunteer forums.
See more
See less

How to Do Long Text-to-Speech (Multithread TTS?)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Do Long Text-to-Speech (Multithread TTS?)

    Hi,

    Our team is working on a fun tech demo project (does not need to be fully compliant with FTC rules). We want to have the robot give a short speech to the audience.

    We have TTS working fine, but the safety mechanism that assumes the loop has failed if it takes more than a couple of seconds kicks in when we say more than one short sentence.

    Is there a way to spin TTS off into a second thread? Or, is there a best practice for making a robot talk for 30+ seconds with a Rev hub and the FTC Robot Controller software?

    Thanks in advance.

  • #2
    TTS is async by default, so I'm not sure why your call to speak() is blocking?

    Comment


    • #3
      Can you share a copy of your code?

      Comment

      Working...
      X