INNER CODE UNIT · Python

init_speechify_tts_voice

bigsk1/voice-chat-ai · app/app.py:270

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':
        if not ensure_sparktts_available():
            print("Spark-TTS is not available. Please ensure it's properly installed.")
            loop = asyncio.get_running_loop()
            loop.create_task(send_message_to_clients(json.dumps({
                "action": "error",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…