Files
encoach_backend/ielts_be/services/abc/third_parties/tts.py
Carlos-Mesquita 9bfad2d47f ENCOA-295
2024-12-26 12:31:22 +00:00

14 lines
361 B
Python

from abc import ABC, abstractmethod
from typing import Union, Optional
class ITextToSpeechService(ABC):
@abstractmethod
async def synthesize_speech(self, text: str, voice: str, engine: str, output_format: str):
pass
@abstractmethod
async def text_to_speech(self, dialog, include_final_cue = True) -> bytes:
pass