shukdevdatta123 commited on
Commit
9e6c87a
ยท
verified ยท
1 Parent(s): 1275d15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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