Update script.py

This commit is contained in:
erew123 authored and GitHub committed 2024-01-18 14:15:34 +00:00
1 parent 1a37ae4ba5
commit a9d95fc563
1 file changed
+2 -2
+2 -2
View File
@@ -613,7 +613,7 @@ def output_modifier(string, state):
# Generate TTS and output to a file
output_filename = get_output_filename(state)
generate_response = send_generate_request(
cleaned_part, voice_to_use, language_code, output_filename
cleaned_part, voice_to_use, language_code, temperature, repetition_penalty, output_filename
)
audio_path = generate_response.get("data", {}).get("audio_path")
audio_files_all_paragraphs.append(audio_path)
@@ -899,4 +899,4 @@ if running_in_standalone:
try:
time.sleep(1) # Add a small delay to avoid high CPU usage
except KeyboardInterrupt:
break # Allow graceful exit on Ctrl+C
break # Allow graceful exit on Ctrl+C