Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def generate(text, voice, ps=None, speed=1, reduce_noise=0.5, opening_cut=4000,
|
|
202 |
return _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu)
|
203 |
|
204 |
def _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu):
|
205 |
-
if voice not in VOICES:
|
206 |
voice = 'af'
|
207 |
ps = ps or phonemize(text, voice)
|
208 |
tokens = tokenize(ps)
|
|
|
202 |
return _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu)
|
203 |
|
204 |
def _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu):
|
205 |
+
if voice not in VOICES['cpu']:
|
206 |
voice = 'af'
|
207 |
ps = ps or phonemize(text, voice)
|
208 |
tokens = tokenize(ps)
|