Die Entwicklerdokumentation ist auf Englisch.
Kartentyp
audio
Live radio, a podcast episode or a sound.
Version 1 · schema audio.v1.schema.json
Layouts
Every card type has full. Pick a layout with the element's layout attribute, render.layout, or a theme.
Fields
The fields of card.data. Values a source doesn't provide are null; new optional fields can appear within version 1.
| Field | Type | Required | Notes |
|---|---|---|---|
kind | enum | yes | live_radio · podcast_episode · sound |
title | string | yes | |
subtitle | string | null | yes | |
stream_url | url | yes | |
artwork_url | url | null | yes | WebKnox media URL: https://webknox.com/media/v1/<host>/<path>. Treat it as opaque. |
duration_s | integer | null | yes | null for live streams. |
live | boolean | yes | No seeking when true. |
credit | string | null | yes | Required attribution for the recording, if any. |
Example
A recorded answer to “Play some jazz”. Open it in the Answer Lab to see every layout and style.
{
"v": 2,
"id": "ans_rk37q8hqy1cqzpyb",
"matched": true,
"locale": "en",
"skill": "radio",
"confidence": 0.9,
"text": "Here's Classic Vinyl HD. https://icecast.walmradio.com:8443/classic",
"speech": "Here's Classic Vinyl HD.",
"card": {
"type": "audio",
"version": 1,
"data": {
"kind": "live_radio",
"title": "Classic Vinyl HD",
"subtitle": "1930 · 1940 · 1950",
"stream_url": "https://icecast.walmradio.com:8443/classic",
"artwork_url": null,
"duration_s": null,
"live": true,
"credit": null
}
},
"sources": [
{
"name": "radio-browser.info",
"url": "https://walmradio.com/classic",
"license": null
}
],
"follow_ups": [],
"actions": [],
"usage": {
"billable": true
}
}