{"id":4945,"date":"2022-09-01T08:05:02","date_gmt":"2022-09-01T06:05:02","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=4945"},"modified":"2023-06-30T11:58:53","modified_gmt":"2023-06-30T09:58:53","slug":"arduino-audio-tools-input-from-the-vs1053-module","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/","title":{"rendered":"Arduino Audio Tools &#8211; Input from the VS1053 Module"},"content":{"rendered":"<p>I added support for the <strong>VS1053 breakout boards<\/strong> to my <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\">Arduino Audio Tools<\/a> project.<br \/>\nFinally the <strong>recording of sound from the microphone or the aux input<\/strong> is working as well both for the VS1003 and VS1053 devices!<\/p>\n<h2>Arduino Sketch<\/h2>\n<p>It is working the same like any other input:<\/p>\n<pre><code>#include \"AudioTools.h\"\n#include \"AudioLibs\/VS1053Stream.h\"\n\nint channels = 1;\nVS1053Stream in; \/\/ Access VS1053\/VS1003 as stream\nCsvStream&lt;int16_t&gt; csvStream(Serial, channels);\nStreamCopy copier(csvStream, in); \/\/ copy in to csvStream\n\n\/\/ Arduino Setup\nvoid setup(void) {\n    Serial.begin(115200);\n    AudioLogger::instance().begin(Serial, AudioLogger::Warning);\n\n    auto cfg = in.defaultConfig(RX_MODE);\n    cfg.sample_rate = 16000;\n    cfg.channels = channels;\n    cfg.input_device = VS1053_MIC; \/\/ or VS1053_AUX\n    in.begin(cfg);\n\n    \/\/ make sure that we have the correct channels set up\n    csvStream.begin();\n\n}\n\n\/\/ Arduino loop - copy data\nvoid loop() {\n    copier.copy();\n}\n<\/code><\/pre>\n<p>You just request the default configuration in <strong>RX_MODE mode<\/strong> and then you can indicate the <strong>input_device in the configuration<\/strong>!<\/p>\n<p>The <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\/blob\/main\/examples\/examples-vs1053\/streams-vs1053-serial\/streams-vs1053-serial.ino\">potentially updated example<\/a> can be found on Github!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I added support for the VS1053 breakout boards to my Arduino Audio Tools project. Finally the recording of sound from the microphone or the aux input is working as well both for the VS1003 and VS1053 devices! Arduino Sketch It is working the same like any other input: #include &#8220;AudioTools.h&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4920,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[20,22],"tags":[44,36],"class_list":["post-4945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-machine-sound","tag-uno","tag-vs1053"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Arduino Audio Tools - Input from the VS1053 Module - Phil Schatzmann<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arduino Audio Tools - Input from the VS1053 Module - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"I added support for the VS1053 breakout boards to my Arduino Audio Tools project. Finally the recording of sound from the microphone or the aux input is working as well both for the VS1003 and VS1053 devices! Arduino Sketch It is working the same like any other input: #include &quot;AudioTools.h&quot; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-01T06:05:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-30T09:58:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/vs1003.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"Arduino Audio Tools &#8211; Input from the VS1053 Module\",\"datePublished\":\"2022-09-01T06:05:02+00:00\",\"dateModified\":\"2023-06-30T09:58:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/\"},\"wordCount\":87,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/vs1003.jpeg\",\"keywords\":[\"UNO\",\"VS1053\"],\"articleSection\":[\"Arduino\",\"Machine Sound\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/\",\"name\":\"Arduino Audio Tools - Input from the VS1053 Module - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/vs1003.jpeg\",\"datePublished\":\"2022-09-01T06:05:02+00:00\",\"dateModified\":\"2023-06-30T09:58:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/vs1003.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/vs1003.jpeg\",\"width\":800,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/09\\\/01\\\/arduino-audio-tools-input-from-the-vs1053-module\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arduino Audio Tools &#8211; Input from the VS1053 Module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Arduino Audio Tools - Input from the VS1053 Module - Phil Schatzmann","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/","og_locale":"en_US","og_type":"article","og_title":"Arduino Audio Tools - Input from the VS1053 Module - Phil Schatzmann","og_description":"I added support for the VS1053 breakout boards to my Arduino Audio Tools project. Finally the recording of sound from the microphone or the aux input is working as well both for the VS1003 and VS1053 devices! Arduino Sketch It is working the same like any other input: #include \"AudioTools.h\" [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/","og_site_name":"Phil Schatzmann","article_published_time":"2022-09-01T06:05:02+00:00","article_modified_time":"2023-06-30T09:58:53+00:00","og_image":[{"width":800,"height":800,"url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/vs1003.jpeg","type":"image\/jpeg"}],"author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"Arduino Audio Tools &#8211; Input from the VS1053 Module","datePublished":"2022-09-01T06:05:02+00:00","dateModified":"2023-06-30T09:58:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/"},"wordCount":87,"commentCount":0,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/vs1003.jpeg","keywords":["UNO","VS1053"],"articleSection":["Arduino","Machine Sound"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/","url":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/","name":"Arduino Audio Tools - Input from the VS1053 Module - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#primaryimage"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/vs1003.jpeg","datePublished":"2022-09-01T06:05:02+00:00","dateModified":"2023-06-30T09:58:53+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#primaryimage","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/vs1003.jpeg","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/vs1003.jpeg","width":800,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/09\/01\/arduino-audio-tools-input-from-the-vs1053-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"Arduino Audio Tools &#8211; Input from the VS1053 Module"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/4945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=4945"}],"version-history":[{"count":5,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/4945\/revisions"}],"predecessor-version":[{"id":4953,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/4945\/revisions\/4953"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media\/4920"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=4945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=4945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=4945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}