Update tts_server.py - _combined path

corrected _combined on narrated without timestamp
This commit is contained in:
erew123 authored and GitHub committed 2024-01-13 11:37:23 +00:00
1 parent 5210d075c1
commit 8dc9304a4c
1 file changed
+2 -2
+2 -2
View File
@@ -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