Shanuka01 commited on
Commit
82874d1
·
1 Parent(s): 96b28b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ pipe = pipeline("automatic-speech-recognition", model=model_id)
14
 
15
  # TTS Initialization
16
  VOICE_OPTIONS = [
17
- "indian_F_1", "indian_F_2", "indian_F_3",
18
  "indian_M_1", "indian_M_2", "indian_M_3"
19
  ]
20
  tts = TextToSpeech(kv_cache=True, use_deepspeed=True, half=True)
@@ -55,7 +55,7 @@ interface = gr.Interface(
55
  fn=convert_audio,
56
  inputs=[
57
  gr.Audio(source="upload", type="filepath"),
58
- gr.Dropdown(VOICE_OPTIONS, value="indian_F_1", label="Select voice:", type="value")
59
  ],
60
  outputs=gr.Audio(label="streaming audio:", streaming=True, autoplay=True),
61
  title="STT to TTS",
 
14
 
15
  # TTS Initialization
16
  VOICE_OPTIONS = [
17
+ "indian_f_1", "indian_F_2", "indian_F_3",
18
  "indian_M_1", "indian_M_2", "indian_M_3"
19
  ]
20
  tts = TextToSpeech(kv_cache=True, use_deepspeed=True, half=True)
 
55
  fn=convert_audio,
56
  inputs=[
57
  gr.Audio(source="upload", type="filepath"),
58
+ gr.Dropdown(VOICE_OPTIONS, value="indian_f_1", label="Select voice:", type="value")
59
  ],
60
  outputs=gr.Audio(label="streaming audio:", streaming=True, autoplay=True),
61
  title="STT to TTS",