Spaces:
Paused
Paused
update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ from TTSInferencing import TTSInferencing
|
|
2 |
from speechbrain.inference.vocoders import HIFIGAN
|
3 |
# import torchaudio
|
4 |
import streamlit as st
|
|
|
5 |
|
6 |
|
7 |
tts_model = TTSInferencing.from_hparams(source="./",
|
@@ -15,7 +16,7 @@ hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech")
|
|
15 |
# text = ["Hello I am a girl", "How is your day going", "I hope you are doing well"]
|
16 |
|
17 |
# Input text
|
18 |
-
text =
|
19 |
|
20 |
if text:
|
21 |
mel_outputs = tts_model.encode_batch(text)
|
|
|
2 |
from speechbrain.inference.vocoders import HIFIGAN
|
3 |
# import torchaudio
|
4 |
import streamlit as st
|
5 |
+
import numpy as np
|
6 |
|
7 |
|
8 |
tts_model = TTSInferencing.from_hparams(source="./",
|
|
|
16 |
# text = ["Hello I am a girl", "How is your day going", "I hope you are doing well"]
|
17 |
|
18 |
# Input text
|
19 |
+
text = st.text_input("Enter your text here")
|
20 |
|
21 |
if text:
|
22 |
mel_outputs = tts_model.encode_batch(text)
|