Spaces:
Running
Running
File size: 452 Bytes
a602e5e 3ed3b5a 2d176f4 3ed3b5a 2d176f4 3ed3b5a |
1 2 3 4 5 6 7 8 9 10 11 |
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) |