liumaolin
commited on
Commit
·
8630353
1
Parent(s):
664d767
Refactor imports for consistency in `kokoro.py` and `processor.py`. Use absolute paths for better readability and maintainability.
Browse files
src/voice_dialogue/services/audio/generators/runtime/kokoro.py
CHANGED
|
@@ -3,9 +3,9 @@ from typing import Tuple, Optional
|
|
| 3 |
import numpy as np
|
| 4 |
from kokoro_onnx import Kokoro
|
| 5 |
|
| 6 |
-
from .
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
|
| 10 |
|
| 11 |
@tts_tables.register("tts_classes", "kokoro")
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
from kokoro_onnx import Kokoro
|
| 5 |
|
| 6 |
+
from voice_dialogue.services.audio.generators.configs.kokoro import KokoroTTSConfig
|
| 7 |
+
from voice_dialogue.services.audio.generators.manager import tts_tables
|
| 8 |
+
from voice_dialogue.services.audio.generators.runtime.interface import TTSInterface
|
| 9 |
|
| 10 |
|
| 11 |
@tts_tables.register("tts_classes", "kokoro")
|
src/voice_dialogue/services/text/processor.py
CHANGED
|
@@ -9,7 +9,9 @@ from langchain_core.prompts import (
|
|
| 9 |
)
|
| 10 |
from langchain_core.runnables import RunnableWithMessageHistory
|
| 11 |
|
| 12 |
-
from utils.strings import
|
|
|
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
def create_langchain_chat_llamacpp_instance(
|
|
|
|
| 9 |
)
|
| 10 |
from langchain_core.runnables import RunnableWithMessageHistory
|
| 11 |
|
| 12 |
+
from voice_dialogue.utils.strings import (
|
| 13 |
+
remove_emojis, convert_comma_separated_numbers, convert_uppercase_words_to_lowercase
|
| 14 |
+
)
|
| 15 |
|
| 16 |
|
| 17 |
def create_langchain_chat_llamacpp_instance(
|