{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "core/audio",
"title": "Audio",
"category": "media",
"description": "Embed a simple audio player.",
"keywords": [ "music", "sound", "podcast", "recording" ],
"textdomain": "default",
"attributes": {
"src": {
"type": "string",
"source": "attribute",
"selector": "audio",
"attribute": "src",
"__experimentalRole": "content"
},
"caption": {
"source": "html",
"selector": "figcaption",
"id": {
"type": "number",
"autoplay": {
"type": "boolean",
"attribute": "autoplay"
"loop": {
"attribute": "loop"
"preload": {
"attribute": "preload"
}
"supports": {
"anchor": true,
"align": true,
"spacing": {
"margin": true,
"padding": true
"editorStyle": "wp-block-audio-editor",
"style": "wp-block-audio"