feat: 完成大部分功能开发
This commit is contained in:
@@ -374,8 +374,9 @@ async def process_tts_task(websocket, message_id: str, text: str):
|
||||
elif res.optional.event == EVENT_TTSResponse:
|
||||
audio_count += 1
|
||||
print(f"发送音频数据 [{message_id}] #{audio_count},大小: {len(res.payload)}")
|
||||
# 发送音频数据,包含消息ID
|
||||
# 发送音频数据
|
||||
await websocket.send_json({
|
||||
"id": audio_count,
|
||||
"type": "tts_audio_data",
|
||||
"messageId": message_id,
|
||||
"audioData": res.payload.hex() # 转为hex字符串
|
||||
|
||||
Reference in New Issue
Block a user