-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is the streaming parameter of the TTS interface set to True, which actually returns all fragments instead of streaming #819
Comments
This "streaming:true" means: generating a file that can be streamed, rather than streaming the file back to you. you can transfer this file to your client in a streamed format. At least that's how I understand it. |
In that case, wouldn't it be a fake stream? If we stream the file output, the response will be greatly improved |
I don't know how to access the real stream, I split an article into several paragraphs according to punctuation, and start streaming when the first text is generated, and dynamically append the other paragraphs to the first audio after completion, so it won't wait long even if the article is very long. |
I did the same thing, splitting sentences and cloning in batches, but I am working on a low latency real-time interaction example. If I could do true streaming, the experience would be faster |
yes, there must be some way, let me know if you find it, please |
|
Sorry, according to my understanding, your approach in this paragraph is to split the sentence and gradually call TTS in batches to create a "fake stream". However, what I want is the stream on the API, which means that when I give him a sentence TTS processing, he immediately returns a high-frequency stream to me after processing the first word |
Exactly! Did you get any further? do the other parts allow this? |
Self Checks
Cloud or Self Hosted
Self Hosted (Source)
Environment Details
linux
Steps to Reproduce
Why is the streaming parameter of the TTS interface set to True, which actually returns all fragments instead of streaming
✔️ Expected Behavior
Why is the streaming parameter of the TTS interface set to True, which actually returns all fragments instead of streaming
❌ Actual Behavior
Why is the streaming parameter of the TTS interface set to True, which actually returns all fragments instead of streaming
The text was updated successfully, but these errors were encountered: