Welcome, Guest
Username Password: Remember me

TTS, length, time
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: TTS, length, time

TTS, length, time 9 years ago #18

Hi,

I've been trying to use the TTS api through URBI: Global.tts.say("text")
However the issue is that the function call is non-blocking. How can I know when the TTS has stopped pronuncing my text? If that's not possible, how can I compute an estimate of the time it takes for the TTS to pronounce my text, so that I can do an approriate sleep (I know you use such a trick in RShowMaker)?

Re: TTS, length, time 8 years, 12 months ago #24

Hi,

tts.say calls the Loquendo TTS API in Asynchronous mode which means that if you send two tts.say() orders, the second one will wait that the first one ends before it starts.
So if you want to chain several sentence, you don't need to know duration of the sentences.
Our RShowMaker is using that functionality.

In a former version of Reeti the tts.say() was returning a duration. The html documentation still mention it but it has to be updated. It now returns 0 if tts.say() call is correct. We removed this functionality because the Loquendo callback at the end of the sentence was very unnaccurate and it was introducing some delays between sentences.

Re: TTS, length, time 8 years, 11 months ago #47

Asynchronous calls are fine if you are only chaining sentences, but if you want to mix TTS and other actions in a synchronized way it becomes necessary to actually know when the TTS engine has stopped its processing.
Basically, having a synchronous (blocking) version of tts.say would be extremely useful, as it can always be threaded later on, whereas the asynchronous version can't be made synchronous.
Right now I'm trying to reimplement basic loquendo calls, however the Loquendo header files are not provided with the Reeti distribution. These would be useful along with a simple C++ example, as they are pretty hard to find on the Web.

Re: TTS, length, time 8 years, 11 months ago #48

Loquendo header files and developper documentation are delivered with the Loquendo sdk we bought (2000 euros) and we are not allowed to give it.

We will check if we can add a synchronous call in Reeti API.

Re: TTS, length, time 8 years, 11 months ago #49

cro wrote:
Loquendo header files and developper documentation are delivered with the Loquendo sdk we bought (2000 euros) and we are not allowed to give it.


Damn.

cro wrote:
We will check if we can add a synchronous call in Reeti API.

That would be really nice.

Re: TTS, length, time 8 years, 11 months ago #50

I prepareda beta new libUTTS with :
- tts.saySynchrone call with synchrone Loquendo parameter
- UVar isSpeaking which is true when speaking

I send it to you by email for further beta test.

I will release it on reeti repo later.
If anyone else want it know, just ask.
  • Page:
  • 1
Time to create page: 0.14 seconds