Skip to content

Commit b90e9a5

Browse files
committed
feat(tts-provider): Implement TtsProvider class for text-to-speech synthesis
- Introduce TtsProvider class as an abstract base class for TTS synthesis - Add async synthesize method to handle text input and optional speech configuration
1 parent c70df90 commit b90e9a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

agentle/tts/tts_provider.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import abc
2+
3+
from agentle.tts.real_time.definitions.speech_config import SpeechConfig
4+
from agentle.tts.real_time.definitions.speech_result import SpeechResult
5+
6+
7+
class TtsProvider(abc.ABC):
8+
async def synthesize(
9+
self, text: str, config: SpeechConfig | None = None
10+
) -> SpeechResult: ...

0 commit comments

Comments
 (0)