Skip to content
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

melo/api.py: add a 'tts' iterator to greatly improve the response speed #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Mar 29, 2024

  1. melo/api.py: add a 'tts' iterator to greatly improve the response speed

    In 'tts_to_file' function, the preprocessing process will try to split
    a long sentences into texts array. Then using model to interfence with
    each sentences and combine the result into finally audio array. But if
    the sentences is very very long, wait the entire process to be finished
    will cost lots of time, it is not a great idea. Most of the time, the
    interfence speed will extremely faster than playing speed, so use a
    iterator to get each of the audio piece.
    suzakuwcx committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    79b2cfb View commit details
    Browse the repository at this point in the history