Skip to content

Input and output streaming for coqui #3

Answered by KoljaB
arubittu asked this question in Q&A
Discussion options

You must be logged in to vote

I see what you mean. RealtimeTTS is based on stream2sentence library and I don't think there are enough use cases for this to extend this library beyond what it was meant for.

So my suggestion: Fork this library and exchange the stream2sentence generator used in RealtimeTTS with your own.

Here is how you can do it:

Find this line in text_to_stream.py:

generate_sentences = s2s.generate_sentences(self.thread_safe_char_iter, minimum_sentence_length=minimum_sentence_length, minimum_first_fragment_length=minimum_first_fragment_length, quick_yield_single_sentence_fragment=fast_sentence_fragment, cleanup_text_links=True, cleanup_text_emojis=True, log_characters=self.log_characters)

and exchange …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@arubittu
Comment options

@KoljaB
Comment options

@arubittu
Comment options

@KoljaB
Comment options

Answer selected by arubittu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants