liumaolin
commited on
Commit
·
8d91cc1
1
Parent(s):
1cbd55c
Refactor imports in `main.py`: reorder modules for better readability and remove redundant `load_third_party` call.
Browse files
src/VoiceDialogue/main.py
CHANGED
|
@@ -5,13 +5,9 @@ from pathlib import Path
|
|
| 5 |
|
| 6 |
import uvicorn
|
| 7 |
|
| 8 |
-
from config.paths import load_third_party
|
| 9 |
-
|
| 10 |
-
load_third_party()
|
| 11 |
-
|
| 12 |
-
from services.audio.audio_generator.models import tts_config_registry, TTSConfigType
|
| 13 |
from services.audio.aec_audio_capture import EchoCancellingAudioCapture
|
| 14 |
from services.audio.audio_answer import TTSAudioGenerator
|
|
|
|
| 15 |
from services.audio.audio_player import AudioStreamPlayer
|
| 16 |
from services.core.constants import (
|
| 17 |
audio_frames_queue,
|
|
@@ -20,8 +16,8 @@ from services.core.constants import (
|
|
| 20 |
text_input_queue,
|
| 21 |
audio_output_queue
|
| 22 |
)
|
| 23 |
-
from services.speech.speech_monitor import SpeechStateMonitor
|
| 24 |
from services.speech.asr_service import ASRWorker
|
|
|
|
| 25 |
from services.text.text_generator import LLMResponseGenerator
|
| 26 |
|
| 27 |
HERE = Path(__file__).parent
|
|
|
|
| 5 |
|
| 6 |
import uvicorn
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
from services.audio.aec_audio_capture import EchoCancellingAudioCapture
|
| 9 |
from services.audio.audio_answer import TTSAudioGenerator
|
| 10 |
+
from services.audio.audio_generator.models import tts_config_registry, TTSConfigType
|
| 11 |
from services.audio.audio_player import AudioStreamPlayer
|
| 12 |
from services.core.constants import (
|
| 13 |
audio_frames_queue,
|
|
|
|
| 16 |
text_input_queue,
|
| 17 |
audio_output_queue
|
| 18 |
)
|
|
|
|
| 19 |
from services.speech.asr_service import ASRWorker
|
| 20 |
+
from services.speech.speech_monitor import SpeechStateMonitor
|
| 21 |
from services.text.text_generator import LLMResponseGenerator
|
| 22 |
|
| 23 |
HERE = Path(__file__).parent
|