2026-04-14 09:59:51 +08:00

30 lines
639 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
"""入口:请在工程根目录 voice_drone_assistant 下运行。
bash with_system_alsa.sh python main.py
或使用包方式python -m voice_drone.main_app需先 cd 到本目录)。"""
from __future__ import annotations
import os
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
try:
os.chdir(ROOT)
except OSError:
pass
from voice_drone.core.portaudio_env import fix_ld_path_for_portaudio
fix_ld_path_for_portaudio()
if __name__ == "__main__":
from voice_drone.main_app import main
main()