update:智控台开启唤醒词加速

This commit is contained in:
hrz
2025-06-08 11:50:09 +08:00
parent 6074431364
commit ac1e254eed
8 changed files with 21 additions and 8 deletions
@@ -34,6 +34,7 @@ emoji_map = {
async def sendAudioMessage(conn, sentenceType, audios, text):
# 发送句子开始消息
conn.logger.bind(tag=TAG).info(f"发送音频消息: {sentenceType}, {text}")
if text is not None:
emotion = analyze_emotion(text)
emoji = emoji_map.get(emotion, "🙂") # 默认使用笑脸