参考:https://blog.csdn.net/weixin_42357472/article/details/137020794
asr:funasr-SenseVoiceSmall 离线
llm:deepseek 在线api
tts:edge-tts 在线api
import pyaudio
import wave
import threading
import numpy as np
import time
from queue import Queue
import webrtcvad
import os
import threading
import requests
import json
from funasr import AutoModel
import pygame
import edge_tts
import asyncio
from time import sleep
import langid
from langdetect import detect
import re
from pypinyin import pinyin, Style
from modelscope.pipelines import pipeline
from openai import OpenAI# --