replace whisperspeech api with a working one
Browse files
app.py
CHANGED
@@ -176,15 +176,13 @@ def generate_voice_with_parler(prompt_audio, voice_description):
|
|
176 |
|
177 |
def get_whisperspeech(prompt_audio_whisperspeech, audio_to_clone):
|
178 |
try:
|
179 |
-
client = Client("
|
180 |
except:
|
181 |
raise gr.Error(f"collabora/WhisperSpeech space's api might not be ready, please wait, or upload an audio instead.")
|
182 |
|
183 |
result = client.predict(
|
184 |
multilingual_text = prompt_audio_whisperspeech,
|
185 |
speaker_audio = handle_file(audio_to_clone),
|
186 |
-
speaker_url = "",
|
187 |
-
cps = 14,
|
188 |
api_name = "/whisper_speech_demo"
|
189 |
)
|
190 |
print(result)
|
|
|
176 |
|
177 |
def get_whisperspeech(prompt_audio_whisperspeech, audio_to_clone):
|
178 |
try:
|
179 |
+
client = Client("fffiloni/whisperspeech-api")
|
180 |
except:
|
181 |
raise gr.Error(f"collabora/WhisperSpeech space's api might not be ready, please wait, or upload an audio instead.")
|
182 |
|
183 |
result = client.predict(
|
184 |
multilingual_text = prompt_audio_whisperspeech,
|
185 |
speaker_audio = handle_file(audio_to_clone),
|
|
|
|
|
186 |
api_name = "/whisper_speech_demo"
|
187 |
)
|
188 |
print(result)
|