Announcements

Create a new announcement

POST
https://api.tunio.ai/v1/announcements

Create a new announcement for a stream

请求体

Announcement data

名称类型说明
background_uuidstring
BackgroundUUID optionally links a background track.
background_volumenumber
BackgroundVolume defines background volume (0..1).
end_datestring
EndDate limits the latest playback date.
has_audio_warningboolean
HasAudioWarning toggles an audible warning tone before playback.
messageRequiredstring
Message contains the announcement text or TTS script (max 500 characters).
model_idstring
Model is the UUID of the TTS model used for generation. If omitted, a default is used.
speednumber
Speed optionally customizes playback speed multiplier.
start_datestring
StartDate limits the earliest playback date.
titleRequiredstring
Title is the displayed announcement header (max 500 characters).
请求示例
01{
02 "background_uuid": "123e4567-e89b-12d3-a456-426614174001",
03 "background_volume": 0.3,
04 "end_date": "2024-12-31T23:59:59Z",
05 "has_audio_warning": false,
06 "message": "Today's weather will be sunny with temperatures reaching 25°C",
07 "model_id": "123e4567-e89b-12d3-a456-426614174000",
08 "speed": 1,
09 "start_date": "2024-01-15T14:30:00Z",
10 "title": "Daily Weather Update"
11}

响应

名称类型说明
announcement_idstring
UUID is the created announcement identifier.
successboolean
Success signals the create finished successfully.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
名称类型说明
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.