autogpt 还原,开新分支编写

This commit is contained in:
w_xiaolizu
2023-05-30 16:38:01 +08:00
parent 548532e522
commit 519df19f43
65 changed files with 3352 additions and 1868 deletions

View File

@ -2,7 +2,7 @@
import abc
from threading import Lock
from autogpt.singleton import AbstractSingleton
from autogpt.config import AbstractSingleton
class VoiceBase(AbstractSingleton):
@ -37,6 +37,7 @@ class VoiceBase(AbstractSingleton):
"""
Setup the voices, API key, etc.
"""
pass
@abc.abstractmethod
def _speech(self, text: str, voice_index: int = 0) -> bool:
@ -46,3 +47,4 @@ class VoiceBase(AbstractSingleton):
Args:
text (str): The text to play.
"""
pass