{"id":252,"date":"2021-05-01T17:49:04","date_gmt":"2021-05-01T15:49:04","guid":{"rendered":"https:\/\/blog.matthias.roehser.de\/?p=252"},"modified":"2021-05-01T17:50:25","modified_gmt":"2021-05-01T15:50:25","slug":"transcoding-to-obscure-wav-output","status":"publish","type":"post","link":"https:\/\/blog.matthias.roehser.de\/?p=252","title":{"rendered":"Transcoding to obscure wav output"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I bought a nice PCB christmas tree from <a href=\"https:\/\/www.banggood.com\/Geekcreit-DIY-Creative-Remote-Control-Colorful-LED-Music-Christmas-Tree-Kit-Holiday-Decoration-Small-Gifts-p-1589474.html?cur_warehouse=CN&amp;rmmds=buy\" data-type=\"URL\" data-id=\"https:\/\/www.banggood.com\/Geekcreit-DIY-Creative-Remote-Control-Colorful-LED-Music-Christmas-Tree-Kit-Holiday-Decoration-Small-Gifts-p-1589474.html?cur_warehouse=CN&amp;rmmds=buy\">banggood<\/a>, which has a rather obscure format requirement for music files to be played.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a way to produce the required output:<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>for f in *.wav; do sox \"$f\" -c 1 -r 22050 -b 8 -e unsigned-integer ..\/\"$f\"; done<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I bought a nice PCB christmas tree from banggood, which has a rather obscure format requirement for music files to be played. Here is a way to produce the required output: for f in *.wav; do sox &#8220;$f&#8221; -c 1 -r 22050 -b 8 -e unsigned-integer ..\/&#8221;$f&#8221;; done<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":2,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":254,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions\/254"}],"wp:attachment":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}