modify: ip音柱插件

This commit is contained in:
2026-09-04 14:51:12 +08:00
parent 5ab68d6002
commit 5ec90a5575
12 changed files with 256 additions and 6 deletions
+30
View File
@@ -0,0 +1,30 @@
"""
自动生成的 Pydantic 模型 — ip_sound_column
来源: config/workers/ip_sound_column/
"""
from __future__ import annotations
from pydantic import BaseModel, Field
class TtsPostRequest(BaseModel):
"""ip 音柱 tts 播放 — 请求体"""
command: str = Field(...)
volume: int = Field(...)
play_count: int = Field(...)
queue: bool = Field(...)
sync_response: bool = Field(...)
play_interval: int = Field(...)
tts_pitch: int = Field(...)
tts_speed: int = Field(...)
tts_voice_name: str = Field(...)
tts_text: str = Field(...)
class TtsPostResponse(BaseModel):
"""ip 音柱 tts 播放 — 响应体"""
command: str = Field(...)
result: int = Field(...)
# 所有响应模型的联合类型
IpSoundColumnResponse = TtsPostResponse