teachingAssistant / utils /tts_dummy.py
Michael Hu
refator tts part
3ed3b5a
raw
history blame contribute delete
452 Bytes
def generate_speech(text: str, language: str = "zh") -> str:
"""Public interface for TTS generation
This is a legacy function maintained for backward compatibility.
New code should use the factory pattern implementation directly.
"""
from utils.tts_base import DummyTTSEngine
# Create a dummy engine and generate speech
dummy_engine = DummyTTSEngine()
return dummy_engine.generate_speech(text, "af_heart", 1.0)