{"id":21916,"date":"2017-12-05T20:03:56","date_gmt":"2017-12-06T04:03:56","guid":{"rendered":"https:\/\/www.techykids.com\/?p=21916"},"modified":"2017-12-05T20:03:56","modified_gmt":"2017-12-06T04:03:56","slug":"voice-recorder-thymio","status":"publish","type":"post","link":"https:\/\/techykids.com\/staging\/3266\/archives\/21916","title":{"rendered":"Voice Recorder Thymio"},"content":{"rendered":"<h3><strong>Required additional Materials:<\/strong>\u00a0 <a href=\"https:\/\/www.techykids.com\/product\/4gb-micro-sdhc-flash-card-w-adapter\/\">MicroSD Class 4 Card\u00a0<\/a><\/h3>\n<h2><span style=\"text-decoration: underline;\">Voice Recorder Thymio Project<\/span><\/h2>\n<p>This code transforms Thymio into a sound recorder.\u00a0 Watch the video to see how it works:<br \/>\n<iframe src=\"https:\/\/player.vimeo.com\/video\/246039415\" width=\"400\" height=\"480\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-21918\" src=\"https:\/\/www.techykids.com\/wp-content\/uploads\/2017\/12\/voice-recorder-picture.png\" alt=\"\" width=\"597\" height=\"245\" \/><\/p>\n<p>Thymio will be Red when recording in progress.\u00a0Thymio will be Green when Playing back a recording.<\/p>\n<pre><code>\n# This script transforms your Thymio into a sound recorder.\n# Pressing on the center button starts the recording,\n# and pressing a second time stops it.\n# Pressing on the forward button replays a recorded sound.\n# The left and right buttons select a sound bank whose\n# index is shown by the yellow light.\n\n# index of the song to record\/play\nvar song_index = 0\n# 1 if recording, 0 otherwise\nvar recording = 0\n# temporary array for top leds\nvar leds[8]\n# temporary variable for iteration\nvar i\n\n# default display: song_index == 0\ncall leds.circle(32, 0, 0, 0, 0, 0, 0, 0)\n\nsub update_display\n# for each led\nfor i in 0:7 do\n# if it corresponds to the sound index,\n# turn on, otherwise turn off\nif song_index == i then\nleds[i] = 32\nelse\nleds[i] = 0\nend\nend\n# update the display using the temporary array\ncall leds.circle(leds[0], leds[1], leds[2], leds[3], leds[4], leds[5], leds[6], leds[7])\n\nonevent button.center\n# when button is pressed\nif button.center == 1 then\nif recording == 0 then\n# if no recording is in progress,\n# turn red and start one\ncall leds.top(32, 0, 0)\ncall sound.record(song_index)\nrecording = 1\nelse\n# if recording is in progress,\n# stop it and turn off light\ncall leds.top(0, 0, 0)\ncall sound.record(-1)\nrecording = 0\nend\nend\n\nonevent button.forward\n# when button is pressed and no recording is in progress\nif button.forward == 1 and recording == 0 then\n# turn green and replay sound\ncall leds.top(0, 32, 0)\ncall sound.replay(song_index)\nend\n\nonevent button.left\n# when button is pressed\nif button.left == 1 then\n# decrement song index (in mod 8 integers)\nsong_index = (song_index + 7) % 8\ncallsub update_display\nend\n\nonevent button.right\n# when button is pressed\nif button.right == 1 then\n# increment song index (in mod 8 integers)\nsong_index = (song_index + 1) % 8\ncallsub update_display\nend\n\nonevent button.backward\nif button.backward == 1 then\ncall sound.play(-1)\nend\n\nonevent sound.finished\n# turn off the light\ncall leds.top(0, 0, 0)\n\n\n\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Required additional Materials:\u00a0 MicroSD Class 4 Card\u00a0 Voice Recorder Thymio Project This code transforms Thymio into a sound recorder.\u00a0 Watch the video to see how it works: Thymio will be Red when recording in progress.\u00a0Thymio will be Green when Playing back a recording. # This script transforms your Thymio into a sound recorder. # Pressing &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/techykids.com\/staging\/3266\/archives\/21916\"> <span class=\"screen-reader-text\">Voice Recorder Thymio<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":84067,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[17],"tags":[62],"class_list":["post-21916","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thymio-projects","tag-activity"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Voice Recorder Thymio - TechyKids.com<\/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:\/\/techykids.com\/staging\/3266\/archives\/21916\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Voice Recorder Thymio - TechyKids.com\" \/>\n<meta property=\"og:description\" content=\"Required additional Materials:\u00a0 MicroSD Class 4 Card\u00a0 Voice Recorder Thymio Project This code transforms Thymio into a sound recorder.\u00a0 Watch the video to see how it works: Thymio will be Red when recording in progress.\u00a0Thymio will be Green when Playing back a recording. # This script transforms your Thymio into a sound recorder. # Pressing &hellip; Voice Recorder Thymio Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techykids.com\/staging\/3266\/archives\/21916\" \/>\n<meta property=\"og:site_name\" content=\"TechyKids.com\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-06T04:03:56+00:00\" \/>\n<meta name=\"author\" content=\"Sharon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sharon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916#article\",\"isPartOf\":{\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916\"},\"author\":{\"name\":\"Sharon\",\"@id\":\"https:\/\/techykids.com\/#\/schema\/person\/e4d353eee11ff5668cb913fa9d9ffbe4\"},\"headline\":\"Voice Recorder Thymio\",\"datePublished\":\"2017-12-06T04:03:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916\"},\"wordCount\":47,\"publisher\":{\"@id\":\"https:\/\/techykids.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png\",\"keywords\":[\"Activity\"],\"articleSection\":[\"Thymio\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916\",\"url\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916\",\"name\":\"Voice Recorder Thymio - TechyKids.com\",\"isPartOf\":{\"@id\":\"https:\/\/techykids.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage\"},\"image\":{\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png\",\"datePublished\":\"2017-12-06T04:03:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/techykids.com\/staging\/3266\/archives\/21916\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage\",\"url\":\"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png\",\"contentUrl\":\"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png\",\"width\":444,\"height\":375},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/techykids.com\/staging\/3266\/archives\/21916#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/techykids.com\/staging\/3266\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Voice Recorder Thymio\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/techykids.com\/#website\",\"url\":\"https:\/\/techykids.com\/\",\"name\":\"TechyKids.com\",\"description\":\"Get Inspired.\",\"publisher\":{\"@id\":\"https:\/\/techykids.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/techykids.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/techykids.com\/#organization\",\"name\":\"TechyKids.com\",\"url\":\"https:\/\/techykids.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techykids.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2013\/05\/techykids1-2.png\",\"contentUrl\":\"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2013\/05\/techykids1-2.png\",\"width\":300,\"height\":104,\"caption\":\"TechyKids.com\"},\"image\":{\"@id\":\"https:\/\/techykids.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/techykids.com\/#\/schema\/person\/e4d353eee11ff5668cb913fa9d9ffbe4\",\"name\":\"Sharon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techykids.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d7fcd9f270d4b5e8e68ff1ebe130252a70cafed7163951b2805d154ba9e8ab5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d7fcd9f270d4b5e8e68ff1ebe130252a70cafed7163951b2805d154ba9e8ab5?s=96&d=mm&r=g\",\"caption\":\"Sharon\"},\"url\":\"https:\/\/techykids.com\/staging\/3266\/archives\/author\/sharontk\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Voice Recorder Thymio - TechyKids.com","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:\/\/techykids.com\/staging\/3266\/archives\/21916","og_locale":"en_US","og_type":"article","og_title":"Voice Recorder Thymio - TechyKids.com","og_description":"Required additional Materials:\u00a0 MicroSD Class 4 Card\u00a0 Voice Recorder Thymio Project This code transforms Thymio into a sound recorder.\u00a0 Watch the video to see how it works: Thymio will be Red when recording in progress.\u00a0Thymio will be Green when Playing back a recording. # This script transforms your Thymio into a sound recorder. # Pressing &hellip; Voice Recorder Thymio Read More &raquo;","og_url":"https:\/\/techykids.com\/staging\/3266\/archives\/21916","og_site_name":"TechyKids.com","article_published_time":"2017-12-06T04:03:56+00:00","author":"Sharon","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sharon","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916#article","isPartOf":{"@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916"},"author":{"name":"Sharon","@id":"https:\/\/techykids.com\/#\/schema\/person\/e4d353eee11ff5668cb913fa9d9ffbe4"},"headline":"Voice Recorder Thymio","datePublished":"2017-12-06T04:03:56+00:00","mainEntityOfPage":{"@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916"},"wordCount":47,"publisher":{"@id":"https:\/\/techykids.com\/#organization"},"image":{"@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage"},"thumbnailUrl":"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png","keywords":["Activity"],"articleSection":["Thymio"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916","url":"https:\/\/techykids.com\/staging\/3266\/archives\/21916","name":"Voice Recorder Thymio - TechyKids.com","isPartOf":{"@id":"https:\/\/techykids.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage"},"image":{"@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage"},"thumbnailUrl":"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png","datePublished":"2017-12-06T04:03:56+00:00","breadcrumb":{"@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techykids.com\/staging\/3266\/archives\/21916"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916#primaryimage","url":"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png","contentUrl":"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2017\/12\/voice-recorder-icon.png","width":444,"height":375},{"@type":"BreadcrumbList","@id":"https:\/\/techykids.com\/staging\/3266\/archives\/21916#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techykids.com\/staging\/3266\/"},{"@type":"ListItem","position":2,"name":"Voice Recorder Thymio"}]},{"@type":"WebSite","@id":"https:\/\/techykids.com\/#website","url":"https:\/\/techykids.com\/","name":"TechyKids.com","description":"Get Inspired.","publisher":{"@id":"https:\/\/techykids.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techykids.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techykids.com\/#organization","name":"TechyKids.com","url":"https:\/\/techykids.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techykids.com\/#\/schema\/logo\/image\/","url":"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2013\/05\/techykids1-2.png","contentUrl":"https:\/\/techykids.com\/staging\/3266\/wp-content\/uploads\/2013\/05\/techykids1-2.png","width":300,"height":104,"caption":"TechyKids.com"},"image":{"@id":"https:\/\/techykids.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/techykids.com\/#\/schema\/person\/e4d353eee11ff5668cb913fa9d9ffbe4","name":"Sharon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techykids.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d7fcd9f270d4b5e8e68ff1ebe130252a70cafed7163951b2805d154ba9e8ab5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d7fcd9f270d4b5e8e68ff1ebe130252a70cafed7163951b2805d154ba9e8ab5?s=96&d=mm&r=g","caption":"Sharon"},"url":"https:\/\/techykids.com\/staging\/3266\/archives\/author\/sharontk"}]}},"_links":{"self":[{"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/posts\/21916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/comments?post=21916"}],"version-history":[{"count":0,"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/posts\/21916\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/media\/84067"}],"wp:attachment":[{"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/media?parent=21916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/categories?post=21916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techykids.com\/staging\/3266\/wp-json\/wp\/v2\/tags?post=21916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}