Spaces:
Running
Running
Initial Draft
Browse files
voice.py
CHANGED
@@ -32,7 +32,7 @@ def submit(voice_preseter, filename, input_text):
|
|
32 |
sample_rate = model.generation_config.sample_rate
|
33 |
scipy.io.wavfile.write(filename, rate=sample_rate, data=audio_array)
|
34 |
|
35 |
-
retun gr.Audio(source=[os.path.join(os.path.dirname(__file__),filename)
|
36 |
|
37 |
############################
|
38 |
###### Main Program ########
|
|
|
32 |
sample_rate = model.generation_config.sample_rate
|
33 |
scipy.io.wavfile.write(filename, rate=sample_rate, data=audio_array)
|
34 |
|
35 |
+
retun gr.Audio(source=[os.path.join(os.path.dirname(__file__),filename])
|
36 |
|
37 |
############################
|
38 |
###### Main Program ########
|