shukdevdatta123 commited on
Commit
de8d4a5
·
verified ·
1 Parent(s): 8f19a44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -51,7 +51,24 @@ Enjoy experimenting with the text-to-speech conversion, and feel free to try dif
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
 
57
  # Initialize the TTS pipeline with user-selected language
 
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_alloy', 'af_aoede', 'af_bella', 'af_heart', 'af_jessica', 'af_kore', 'af_nicole', 'af_nova', 'af_river', 'af_sarah', 'af_sky',
55
+ 'am_adam', 'am_echo', 'am_eric', 'am_fenrir', 'am_liam', 'am_michael', 'am_onyx', 'am_puck', 'am_santa',
56
+ 'bf_alice', 'bf_emma', 'bf_isabella', 'bf_lily',
57
+ 'bm_daniel', 'bm_fable', 'bm_george', 'bm_lewis',
58
+ 'ef_dora',
59
+ 'em_alex', 'em_santa',
60
+ 'ff_siwis',
61
+ 'hf_alpha', 'hf_beta',
62
+ 'hm_omega', 'hm_psi',
63
+ 'if_sara',
64
+ 'im_nicola',
65
+ 'jf_alpha', 'jf_gongitsune', 'jf_nezumi', 'jf_tebukuro',
66
+ 'jm_kumo',
67
+ 'pf_dora',
68
+ 'pm_alex', 'pm_santa',
69
+ 'zf_xiaobei', 'zf_xiaoni', 'zf_xiaoxiao', 'zf_xiaoyi',
70
+ 'zm_yunjian', 'zm_yunxi', 'zm_yunxia', 'zm_yunyang']
71
+ ) # Change voice options as per model
72
  speed = st.slider("Speed", min_value=0.5, max_value=2.0, value=1.0, step=0.1)
73
 
74
  # Initialize the TTS pipeline with user-selected language