Announcement

Collapse
No announcement yet.

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

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

  • Tom Eng
    replied
    Can you share a copy of your code?

    Leave a comment:


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

    Leave a comment:


  • FTC15324
    started a topic How to Do Long Text-to-Speech (Multithread TTS?)

    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.
Working...
X