Dokumentation

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.

FieldTypeRequiredNotes
kindenumyeslive_radio · podcast_episode · sound
titlestringyes
subtitlestring | nullyes
stream_urlurlyes
artwork_urlurl | nullyesWebKnox media URL: https://webknox.com/media/v1/<host>/<path>. Treat it as opaque.
duration_sinteger | nullyesnull for live streams.
livebooleanyesNo seeking when true.
creditstring | nullyesRequired 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.

Response
{
  "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
  }
}