Skip to content

how to change the return audio length in streaming mode #1133

@wangdabee

Description

@wangdabee

Self Checks

  • This template is only for bug reports. For questions, please visit Discussions.
  • I have thoroughly reviewed the project documentation (installation, training, inference) but couldn't find information to solve my problem. English 中文 日本語 Portuguese (Brazil)
  • I have searched for existing issues, including closed ones. Search issues
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template and fill in all required fields.

Cloud or Self Hosted

Self Hosted (Source)

Environment Details

python 312

Steps to Reproduce

python

✔️ Expected Behavior

No response

❌ Actual Behavior

When I use the vqgan model, adjusting the chunk_length in ServeTTSRequest streams audio in different lengths. However, when I use the dac model for streaming output, no matter how I change chunk_length, it always returns the entire audio at once. How can I adjust dac so that I can freely set the length of each part of the streamed audio?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions