{"id":202,"date":"2023-02-24T07:37:16","date_gmt":"2023-02-24T06:37:16","guid":{"rendered":"https:\/\/omvs.de\/wp\/?p=202"},"modified":"2023-02-24T07:39:06","modified_gmt":"2023-02-24T06:39:06","slug":"linux-how-to-record-audio-from-microphone-in-bash","status":"publish","type":"post","link":"https:\/\/omvs.de\/wp\/archive\/202","title":{"rendered":"Linux &#8211; How to record audio from microphone in bash"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">How to record audio from microphone in bash-shell in linux? <br>That&#8217;s very easy if you know how \ud83d\ude09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First of all you have to install this little programs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install arecord lame -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">With this command you will install <strong>arecord<\/strong> that&#8217;s the recorder and <strong>lame<\/strong>. Lame is for transcoding to mp3 on the fly, because arecord only takes wav-files. This files can be very quickly very big \ud83d\ude09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And then send this command to record and transcode to mp3:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>arecord -v -f cd -t raw | lame -r - output.mp3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it! The mp3-file you can play with any music-player like vlc or mplayer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have fun \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to record audio from microphone in bash-shell in linux?<\/p>\n","protected":false},"author":1,"featured_media":19,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[79,11,13,77,78,12],"class_list":["post-202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-audio","tag-bash","tag-linux","tag-microphone","tag-record","tag-shell"],"_links":{"self":[{"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":4,"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/posts\/202\/revisions\/213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/media\/19"}],"wp:attachment":[{"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omvs.de\/wp\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}