RealtimeTTS icon indicating copy to clipboard operation
RealtimeTTS copied to clipboard

on_sentence_START_synthesized

Open olegchomp opened this issue 1 year ago • 1 comments
trafficstars

Thanks for great repo again ) It will be great to have something like on_sentence_START_synthesized, so sentence can be printed before the speech started.

olegchomp avatar Mar 27 '24 07:03 olegchomp

Idea is good, this is useful.

Synthesis start and speech start don't happen at the same time though. Synthesis is done in background and writes audio chunks into a queue. On fast systems synthesis will be completed way before speech ends. Audio queue must be extended to hold additional information about the sentence that gets played out, so that the stream player knows when a new sentence starts to play. Need to think about that a bit.

KoljaB avatar Mar 27 '24 11:03 KoljaB