Spaces:
Running
on
Zero
Running
on
Zero
xieli
commited on
Commit
·
91b9368
1
Parent(s):
13aed20
feat: update vad denoise prompt
Browse files
tts.py
CHANGED
|
@@ -256,9 +256,9 @@ class StepAudioTTS:
|
|
| 256 |
else:
|
| 257 |
instruct_prefix = f"Make the following audio more {edit_info} style. The text corresponding to the audio is: {audio_text}\n"
|
| 258 |
elif edit_type == "denoise":
|
| 259 |
-
instruct_prefix = f"Remove any noise from the given audio while preserving the voice content clearly. Ensure that the speech quality remains intact with minimal distortion, and eliminate all noise from the audio
|
| 260 |
elif edit_type == "vad":
|
| 261 |
-
instruct_prefix = f"Remove any silent portions from the given audio while preserving the voice content clearly. Ensure that the speech quality remains intact with minimal distortion, and eliminate all silence from the audio
|
| 262 |
elif edit_type == "paralinguistic":
|
| 263 |
instruct_prefix = f"Add some non-verbal sounds to make the audio more natural, the new text is : {text}\n The text corresponding to the audio is: {audio_text}\n"
|
| 264 |
else:
|
|
|
|
| 256 |
else:
|
| 257 |
instruct_prefix = f"Make the following audio more {edit_info} style. The text corresponding to the audio is: {audio_text}\n"
|
| 258 |
elif edit_type == "denoise":
|
| 259 |
+
instruct_prefix = f"Remove any noise from the given audio while preserving the voice content clearly. Ensure that the speech quality remains intact with minimal distortion, and eliminate all noise from the audio.\n"
|
| 260 |
elif edit_type == "vad":
|
| 261 |
+
instruct_prefix = f"Remove any silent portions from the given audio while preserving the voice content clearly. Ensure that the speech quality remains intact with minimal distortion, and eliminate all silence from the audio.\n"
|
| 262 |
elif edit_type == "paralinguistic":
|
| 263 |
instruct_prefix = f"Add some non-verbal sounds to make the audio more natural, the new text is : {text}\n The text corresponding to the audio is: {audio_text}\n"
|
| 264 |
else:
|