xtts-api-server icon indicating copy to clipboard operation
xtts-api-server copied to clipboard

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

Open IguteChung opened this issue 1 year ago • 2 comments

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)

IguteChung avatar Feb 16 '24 04:02 IguteChung

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

jdola avatar Feb 19 '24 14:02 jdola

Is there a fix for this?

mercuryyy avatar May 31 '24 21:05 mercuryyy