mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 00:53:25 +00:00
feat: tts
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
from .tts import TTS
|
||||
from ..asr.asr import ASR
|
||||
from .audio_to_text import AudioToText
|
||||
from .blackbox import Blackbox
|
||||
@ -8,8 +9,8 @@ from .text_to_audio import TextToAudio
|
||||
class BlackboxFactory:
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.tts = TTS()
|
||||
self.asr = ASR("./.env.yaml")
|
||||
pass
|
||||
|
||||
def create_blackbox(self, blackbox_name: str, blackbox_config: dict) -> Blackbox:
|
||||
if blackbox_name == "audio_to_text":
|
||||
@ -20,4 +21,6 @@ class BlackboxFactory:
|
||||
return Calculator(blackbox_config)
|
||||
if blackbox_name == "asr":
|
||||
return self.asr
|
||||
if blackbox_name == "tts":
|
||||
return self.tts
|
||||
raise ValueError("Invalid blockbox type")
|
||||
Reference in New Issue
Block a user