31 lines
797 B
Python
31 lines
797 B
Python
"""
|
|||
|
|
自动生成的 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
|