From 8dc9304a4c0d1202a7562a04afe50ebff09e0bf8 Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Sat, 13 Jan 2024 11:37:23 +0000 Subject: [PATCH] Update tts_server.py - _combined path corrected _combined on narrated without timestamp --- tts_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tts_server.py b/tts_server.py index ca69597..65d6a44 100644 --- a/tts_server.py +++ b/tts_server.py @@ -978,8 +978,8 @@ def combine(output_file_timestamp, output_file_name, audio_files): output_cache_url = f'http://{params["ip_address"]}:{params["port_number"]}/audiocache/{output_file_name}_{timestamp}_combined.wav' else: output_file_path = os.path.join(this_dir / "outputs" / f'{output_file_name}_combined.wav') - output_file_url = f'http://{params["ip_address"]}:{params["port_number"]}/audio/{output_file_name}.wav' - output_cache_url = f'http://{params["ip_address"]}:{params["port_number"]}/audiocache/{output_file_name}.wav' + output_file_url = f'http://{params["ip_address"]}:{params["port_number"]}/audio/{output_file_name}_combined.wav' + output_cache_url = f'http://{params["ip_address"]}:{params["port_number"]}/audiocache/{output_file_name}_combined.wav' try: sf.write(output_file_path, audio, samplerate=sample_rate) # Clean up unnecessary files