mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-12-16 06:56:17 +00:00
feat: [#28] add base tts service
This commit is contained in:
16
src/assistant/lib/tts/services.py
Normal file
16
src/assistant/lib/tts/services.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import abc
|
||||||
|
|
||||||
|
import lib.app.settings as app_settings
|
||||||
|
import lib.tts.models as tts_models
|
||||||
|
|
||||||
|
|
||||||
|
class BaseTTSService(abc.ABC):
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
settings: app_settings.Settings,
|
||||||
|
):
|
||||||
|
self.settings = settings
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def get_tts(self, tts_request: tts_models.TTSRequestModel) -> tts_models.TTSResponseModel:
|
||||||
|
raise NotImplementedError()
|
||||||
Reference in New Issue
Block a user