Announcement

Collapse
No announcement yet.

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