{"id":53,"date":"2023-08-11T09:20:16","date_gmt":"2023-08-11T08:20:16","guid":{"rendered":"https:\/\/integrate.blogs.glowscotland.org.uk\/ula3\/blockcheck\/?p=53"},"modified":"2026-02-11T10:39:29","modified_gmt":"2026-02-11T10:39:29","slug":"53","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/2023\/08\/11\/53\/","title":{"rendered":"Audio"},"content":{"rendered":"\n<p><a href=\"https:\/\/wordpress.org\/documentation\/article\/audio-block\/\">Audio Block \u2013 Documentation \u2013 WordPress.org<\/a><\/p>\n\n\n\n<p>Embed audio into a post. Audio can be uploaded to your media library or from an external source.<\/p>\n\n\n\n<p>An audio file will included as an enclosure in the blogs RSS feed and can be consumed as a podcast.<\/p>\n\n\n\n<figure class=\"wp-block-audio\"><audio controls src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/blocks\/uploads\/sites\/9576\/2023\/08\/26214023\/72892__benboncan__curlew-64.mp3\"><\/audio><figcaption class=\"wp-element-caption\">Curlew <a href=\"https:\/\/freesound.org\/people\/Benboncan\/\">Benboncan<\/a> CC-BY from freesound<\/figcaption><\/figure>\n\n\n\n<p>There are very few setting for the audio block: Autoplay, Loop &amp; preload, these can be set from the settings sidebar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">iOS issue<\/h2>\n\n\n\n<p>There is an issue with uploading m4a files, typically produced on iPads &amp; iPhones, to the audio block. <strong>You cannot select them from the file dialogue<\/strong>. There are a couple of workarounds.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Upload the file to the Media section of your site. You can then add it to an audio block.<\/li>\n\n\n\n<li>Add the audio to a File block. Then convert that block to an audio block.<\/li>\n\n\n\n<li>Add the audio with drag and drop.<\/li>\n<\/ol>\n\n\n\n<p> The video below shows the second and third way.<\/p>\n\n\n<figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  style=\"display: block; margin: 0px auto;\"  id=\"_ytid_87888\"  width=\"525\" height=\"295\"  data-origwidth=\"525\" data-origheight=\"295\"  data-relstop=\"1\" src=\"https:\/\/www.youtube.com\/embed\/X26fOr4GSfU?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;iv_load_policy=1&#038;loop=0&#038;fs=1&#038;playsinline=0&#038;controls=1&#038;color=red&#038;cc_lang_pref=&#038;rel=0&#038;autohide=2&#038;theme=dark&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"m4a files on iOS in Glow Blogs\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure>\n\n\n<h2 class=\"wp-block-heading\">M4a Occasional Issue<\/h2>\n\n\n\n<p>Some m4a files will give a message: <mark style=\"background-color:#ffff00\" class=\"has-inline-color has-contrast-color\">Sorry, you are not allowed to upload this file type.<\/mark> Others will work fine. If the file does not contain a <strong>clearly declared audio codec<\/strong> it will cause this error. We have only seen this error very occasionally with files downloaded from the internet. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Audio Block \u2013 Documentation \u2013 WordPress.org Embed audio into a post. Audio can be uploaded to your media library or from an external source. An audio file will included as an enclosure in the blogs RSS feed and can be consumed as a podcast. There are very few setting for the audio block: Autoplay, Loop [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-media-blocks"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":7,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":1513,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/posts\/53\/revisions\/1513"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/blocks\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}