INNER CODE UNIT · Python
init_typecast_tts_voice
bigsk1/voice-chat-ai · app/app.py:265
def init_typecast_tts_voice(voice_id):
global TYPECAST_TTS_VOICE
TYPECAST_TTS_VOICE = voice_id
print(f"Switched to Typecast TTS voice: {voice_id}")
def init_speechify_tts_voice(voice_id):
global SPEECHIFY_TTS_VOICE
SPEECHIFY_TTS_VOICE = voice_id
print(f"Switched to Speechify TTS voice: {voice_id}")
def init_voice_speed(speed_value):
global VOICE_SPEED
VOICE_SPEED = speed_value
print(f"Switched to global voice speed: {speed_value}")
def init_set_tts(set_tts):
global TTS_PROVIDER, sparktts_model
if set_tts == 'sparktts':