Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,7 @@ st.sidebar.markdown("""
|
|
31 |
- ๐ฎ๐น Italian (`i`)
|
32 |
- ๐ง๐ท Brazilian Portuguese (`p`)
|
33 |
- ๐จ๐ณ Mandarin Chinese (`z`)
|
|
|
34 |
|
35 |
3. **Select Voice**:
|
36 |
- Choose the voice style for the speech. You can pick different voices based on tone and gender, such as `af_heart`, `af_joy`, etc.
|
@@ -49,7 +50,7 @@ Enjoy experimenting with the text-to-speech conversion, and feel free to try dif
|
|
49 |
|
50 |
# User input for text, language, and voice settings
|
51 |
input_text = st.text_area("Enter your text here", "The sky above the port was the color of television...")
|
52 |
-
lang_code = st.selectbox("Select Language", ['a', 'b', 'e', 'f', 'h', 'i', 'p', 'z'])
|
53 |
voice = st.selectbox("Select Voice", ['af_heart', 'af_joy', 'af_female', 'af_male']) # Change voice options as per model
|
54 |
speed = st.slider("Speed", min_value=0.5, max_value=2.0, value=1.0, step=0.1)
|
55 |
|
|
|
31 |
- ๐ฎ๐น Italian (`i`)
|
32 |
- ๐ง๐ท Brazilian Portuguese (`p`)
|
33 |
- ๐จ๐ณ Mandarin Chinese (`z`)
|
34 |
+
- ๐ฏ๐ต Japanese (`j`)
|
35 |
|
36 |
3. **Select Voice**:
|
37 |
- Choose the voice style for the speech. You can pick different voices based on tone and gender, such as `af_heart`, `af_joy`, etc.
|
|
|
50 |
|
51 |
# User input for text, language, and voice settings
|
52 |
input_text = st.text_area("Enter your text here", "The sky above the port was the color of television...")
|
53 |
+
lang_code = st.selectbox("Select Language", ['a', 'b', 'e', 'f', 'h', 'i', 'p', 'z', 'j'])
|
54 |
voice = st.selectbox("Select Voice", ['af_heart', 'af_joy', 'af_female', 'af_male']) # Change voice options as per model
|
55 |
speed = st.slider("Speed", min_value=0.5, max_value=2.0, value=1.0, step=0.1)
|
56 |
|