This commit is contained in:
superobk
2024-03-27 16:10:46 +08:00
parent 0549a033e1
commit 229501515a
6 changed files with 41 additions and 20 deletions

View File

@ -12,8 +12,8 @@ class BlackboxFactory:
def __init__(self) -> None:
self.tts = TTS()
#self.asr = ASR("./.env.yaml")
#self.sentiment = Sentiment()
self.asr = ASR(".env.yaml")
self.sentiment = Sentiment()
#self.sum = SUM()
#self.calculator = Calculator()
#self.audio_to_text = AudioToText()
@ -24,7 +24,6 @@ class BlackboxFactory:
return self.processing(*args, **kwargs)
def create_blackbox(self, blackbox_name: str) -> Blackbox:
return self.tts
if blackbox_name == "audio_to_text":
return self.audio_to_text
if blackbox_name == "text_to_audio":