Spaces:
Build error
Build error
Commit ·
bbb00f1
1
Parent(s): d61fab0
Use local piper for T2S
Browse files173 unmodified lines174175176177178179180173 unmodified linestext = text.encode('cp1252', 'ignore').decode('cp1252')if text.isspace() or text == "":return Noneproc = subprocess.Popen(r'piper --model en_US-amy-medium.onnx --output_file ' + ogg_name + '.wav' + ' --length_scale 1.2', #+#'; ffmpeg -i ' + ogg_name + '.wav' ' -c:a libopus '+ ogg_name,stdin=subprocess.PIPE,stdout=subprocess.PIPE,173 unmodified lines174175176177178179180173 unmodified linestext = text.encode('cp1252', 'ignore').decode('cp1252')if text.isspace() or text == "":return Noneproc = subprocess.Popen(r'piper/piper --model piper/en_US-amy-medium.onnx --output_file ' + ogg_name + '.wav' + ' --length_scale 1.2', #+#'; ffmpeg -i ' + ogg_name + '.wav' ' -c:a libopus '+ ogg_name,stdin=subprocess.PIPE,stdout=subprocess.PIPE,
app.py+1-1