Created
June 21, 2023 14:10
-
-
Save lpabon/c872a2a3d835e085f68c1a455da8f431 to your computer and use it in GitHub Desktop.
adding voice actor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ai_presenter/voice_ai/base.py b/ai_presenter/voice_ai/base.py | |
index 716c9a9..d5c6db1 100644 | |
--- a/ai_presenter/voice_ai/base.py | |
+++ b/ai_presenter/voice_ai/base.py | |
@@ -3,11 +3,21 @@ from ai_presenter.config.voice import VoiceConfig | |
import logging | |
+class VoiceAIActor: | |
+ def __init__(self, config): | |
+ pass | |
+ | |
+ def says(self, message, emotion, filename): | |
+ pass | |
+ | |
class VoiceAI: | |
def __init__(self, db: Database): | |
self.actors = db.actors | |
self.scenes = db.scenes | |
self.locations = db.locations | |
+ def new_actor(self, config): | |
+ pass | |
+ | |
def generate(self, input_file, output_file, c: VoiceConfig): | |
logging.info("VoiceAI generating") | |
diff --git a/ai_presenter/voice_ai/fake.py b/ai_presenter/voice_ai/fake.py | |
index eac7de9..eed37fb 100644 | |
--- a/ai_presenter/voice_ai/fake.py | |
+++ b/ai_presenter/voice_ai/fake.py | |
@@ -4,10 +4,20 @@ from ai_presenter.config.voice import VoiceConfig | |
import logging | |
+class VoiceAIActorFake(VoiceAIActor): | |
+ def __init__(self, config): | |
+ pass | |
+ | |
+ def says(self, message, emotion, filename): | |
+ pass | |
+ | |
class VoiceAIFake(VoiceAI): | |
def __init__(self, db: Database): | |
super().__init__(db) | |
+ def new_actor(self, config): | |
+ return VoiceAiActorFake(config) | |
+ | |
# sets up config | |
# opens the file | |
# reads the file; do you need to read the file to send it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment