How can I get the characters corresponding to the current chunk in a streaming speech synthesis? #4055
Unanswered
jiayueshiliuqi
asked this question in
General Q&A
Replies: 1 comment
-
@jiayueshiliuqi, did you figure this out? If so can you please share how you've done it - I'm also looking for the same functionality |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently have the following streaming code:
@app.get("/synthesize")
async def synthesize(text: str):
chunks = model.inference_stream(
text,
"zh",
gpt_cond_latent,
speaker_embedding
)
I want to get the characters corresponding to each chunk. For example, if the input text is "在很久很久以前", the chunks might be "在很久", "很久", and "以前". Is it possible to get and return the corresponding characters for each chunk?
Beta Was this translation helpful? Give feedback.
All reactions