Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ def tts_inference(text, prompt_wav='examples/prompt_1.wav', lang='zh'):
|
|
35 |
text=text,
|
36 |
lang=lang,
|
37 |
).detach().cpu().numpy()
|
|
|
38 |
syn_audio = (syn_audio * 32768).astype(np.int16)
|
39 |
return 48000, syn_audio
|
40 |
|
|
|
35 |
text=text,
|
36 |
lang=lang,
|
37 |
).detach().cpu().numpy()
|
38 |
+
print(f'Generate waveform with the shape of {syn_audio.shape}')
|
39 |
syn_audio = (syn_audio * 32768).astype(np.int16)
|
40 |
return 48000, syn_audio
|
41 |
|