mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-25 04:29:51 +01:00
去除无用变量
This commit is contained in:
parent
f45bc5d9c9
commit
fa3ddc2e2b
2 changed files with 1 additions and 4 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
import time
|
import time
|
||||||
import json
|
import json
|
||||||
import asyncio
|
import asyncio
|
||||||
|
from core.utils.util import audio_to_data
|
||||||
from core.handle.abortHandle import handleAbortMessage
|
from core.handle.abortHandle import handleAbortMessage
|
||||||
from core.handle.intentHandler import handle_user_intent
|
from core.handle.intentHandler import handle_user_intent
|
||||||
from core.utils.output_counter import check_device_output_limit
|
from core.utils.output_counter import check_device_output_limit
|
||||||
from core.utils.util import audio_to_data
|
|
||||||
from core.handle.sendAudioHandle import send_stt_message, SentenceType
|
from core.handle.sendAudioHandle import send_stt_message, SentenceType
|
||||||
|
|
||||||
TAG = __name__
|
TAG = __name__
|
||||||
|
|
@ -114,8 +114,6 @@ async def no_voice_close_connect(conn, have_voice):
|
||||||
|
|
||||||
|
|
||||||
async def max_out_size(conn):
|
async def max_out_size(conn):
|
||||||
# 播放字数限制回复
|
|
||||||
conn.client_abort = False
|
|
||||||
text = "不好意思,我现在有点事情要忙,明天这个时候我们再聊,约好了哦!明天不见不散,拜拜!"
|
text = "不好意思,我现在有点事情要忙,明天这个时候我们再聊,约好了哦!明天不见不散,拜拜!"
|
||||||
await send_stt_message(conn, text)
|
await send_stt_message(conn, text)
|
||||||
file_path = "config/assets/max_output_size.wav"
|
file_path = "config/assets/max_output_size.wav"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ from io import BytesIO
|
||||||
from core.utils import p3
|
from core.utils import p3
|
||||||
from pydub import AudioSegment
|
from pydub import AudioSegment
|
||||||
from typing import Callable, Any
|
from typing import Callable, Any
|
||||||
from core.providers.tts.dto.dto import SentenceType
|
|
||||||
|
|
||||||
TAG = __name__
|
TAG = __name__
|
||||||
emoji_map = {
|
emoji_map = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue