Spaces:
Sleeping
Sleeping
Commit
·
0cd5c8a
1
Parent(s):
5d0f451
prints
Browse files
app.py
CHANGED
@@ -11,7 +11,9 @@ token_str = os.environ['DG_TOKEN']
|
|
11 |
def tts_fn(text, prompt_audio, prompt_seconds, inference_steps, inference_temperature, pitch_steps):
|
12 |
texts = [text]
|
13 |
sr = prompt_audio[0]
|
|
|
14 |
prompt_audio = prompt_audio[1].astype(np.float32, order='C') / 32768.0
|
|
|
15 |
byte_io = io.BytesIO(bytes())
|
16 |
wavfile.write(byte_io, sr, prompt_audio)
|
17 |
prompt_audio_bytes = byte_io.read()
|
|
|
11 |
def tts_fn(text, prompt_audio, prompt_seconds, inference_steps, inference_temperature, pitch_steps):
|
12 |
texts = [text]
|
13 |
sr = prompt_audio[0]
|
14 |
+
print(sr)
|
15 |
prompt_audio = prompt_audio[1].astype(np.float32, order='C') / 32768.0
|
16 |
+
print(prompt_audio.shape)
|
17 |
byte_io = io.BytesIO(bytes())
|
18 |
wavfile.write(byte_io, sr, prompt_audio)
|
19 |
prompt_audio_bytes = byte_io.read()
|