Sumedh commited on
Commit
d233faa
·
1 Parent(s): aad3508

Claude: fix speaker ID EN-INDIA → EN_INDIA (underscore not hyphen)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def melo_tts_to_wav(text: str, speed: float = DEFAULT_TTS_SPEED):
130
  try:
131
  tts = _get_melo()
132
  speaker_ids = tts.hps.data.spk2id
133
- tts.tts_to_file(text, speaker_ids["EN-INDIA"], out_path, speed=speed)
134
  size = os.path.getsize(out_path) if os.path.exists(out_path) else 0
135
  if size < 200:
136
  print(f"[MeloTTS] Output too small ({size} bytes): {out_path}", flush=True)
 
130
  try:
131
  tts = _get_melo()
132
  speaker_ids = tts.hps.data.spk2id
133
+ tts.tts_to_file(text, speaker_ids["EN_INDIA"], out_path, speed=speed)
134
  size = os.path.getsize(out_path) if os.path.exists(out_path) else 0
135
  if size < 200:
136
  print(f"[MeloTTS] Output too small ({size} bytes): {out_path}", flush=True)