J Z commited on
Commit
cc68c79
·
verified ·
1 Parent(s): b8cfbc2

Update orpheus_tts.py

Browse files
Files changed (1) hide show
  1. orpheus_tts.py +2 -2
orpheus_tts.py CHANGED
@@ -20,7 +20,7 @@ TEMP_DIR = "/tmp/tts_output"
20
  VOICE_REF_DIR = "/app/assets"
21
  SAMPLE_RATE = 24000
22
 
23
- FALLBACK_VOICE = os.environ.get("ORPHEUS_VOICE", "hannah")
24
 
25
  # Special token IDs for Orpheus
26
  TOKEN_START_OF_HUMAN = 128259
@@ -476,4 +476,4 @@ def generate_audio(text: str, output_filename: str = None) -> str:
476
 
477
  except Exception as e:
478
  logger.error(f"[{_ts()}] [TTS] Error: {e}", exc_info=True)
479
- return None
 
20
  VOICE_REF_DIR = "/app/assets"
21
  SAMPLE_RATE = 24000
22
 
23
+ FALLBACK_VOICE = os.environ.get("ORPHEUS_VOICE", "leo")
24
 
25
  # Special token IDs for Orpheus
26
  TOKEN_START_OF_HUMAN = 128259
 
476
 
477
  except Exception as e:
478
  logger.error(f"[{_ts()}] [TTS] Error: {e}", exc_info=True)
479
+ return None