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

Unable to accept concurrent api calls for /tts_to_audio since out.wav will be shared #59

Open
IguteChung opened this issue Feb 16, 2024 · 2 comments

Comments

@IguteChung
Copy link

In /tts_to_audio api, if USE_CACHE=False, it will use default file_name_or_path="out.wav" for XTTS.process_tts_to_file.

However it get error if concurrent api calls happen.

torchaudio.save(output_file, torch.tensor(out["wav"]).unsqueeze(0), 24000)

@jdola
Copy link

jdola commented Feb 19, 2024

I also get an error when processing 2 or more requests at the same time, I'm trying to fix it.

@mercuryyy
Copy link

Is there a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants