Update script.py
This commit is contained in:
1 parent
1a37ae4ba5
commit
a9d95fc563
1 file changed
+2
-2
@@ -613,7 +613,7 @@ def output_modifier(string, state):
|
|||||||
# Generate TTS and output to a file
|
# Generate TTS and output to a file
|
||||||
output_filename = get_output_filename(state)
|
output_filename = get_output_filename(state)
|
||||||
generate_response = send_generate_request(
|
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_path = generate_response.get("data", {}).get("audio_path")
|
||||||
audio_files_all_paragraphs.append(audio_path)
|
audio_files_all_paragraphs.append(audio_path)
|
||||||
@@ -899,4 +899,4 @@ if running_in_standalone:
|
|||||||
try:
|
try:
|
||||||
time.sleep(1) # Add a small delay to avoid high CPU usage
|
time.sleep(1) # Add a small delay to avoid high CPU usage
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
break # Allow graceful exit on Ctrl+C
|
break # Allow graceful exit on Ctrl+C
|
||||||
Reference in new issue
Block a user