Record from the microphone indefinitely
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm working with the application "arecord" (under Arch Linux). I'm want to capture sound from my microphone and save it to the disk.
This is my command:
arecord -f dat -d 2 --channels 1 -D hw:1,0 /tmp/test.wav
This captures a two seconds (-d
-> duration) file and then saves it to disk. This basically works.
What I want to do is to record an "infinite" sound track (without fixed duration) and save this track immediately to disk. Without waiting for it to finish. So, if I shut down the machine while recording (or there's a power outage), the sound track will be saved on the disk up to that moment.
Is this possible?
arch-linux audio recording
add a comment |
I'm working with the application "arecord" (under Arch Linux). I'm want to capture sound from my microphone and save it to the disk.
This is my command:
arecord -f dat -d 2 --channels 1 -D hw:1,0 /tmp/test.wav
This captures a two seconds (-d
-> duration) file and then saves it to disk. This basically works.
What I want to do is to record an "infinite" sound track (without fixed duration) and save this track immediately to disk. Without waiting for it to finish. So, if I shut down the machine while recording (or there's a power outage), the sound track will be saved on the disk up to that moment.
Is this possible?
arch-linux audio recording
How aboutarecord -f dat -d 0 --channels 1 -D hw:1,0 > /tmp/test.wav
?
– groxxda
Jul 26 '14 at 18:10
1
Can't you just omit the-d
option? I mean, isn't it the default behaviour ofarecord
to run continuously until killed?
– Celada
Jul 28 '14 at 0:39
Yes. For more info: linuxcommand.org/man_pages/arecord1.html
– No1Lives4Ever
Jul 29 '14 at 16:55
What if I want to write a MP3 file (instead of WAV) and still write it to disk as it recording?
– No1Lives4Ever
Jul 29 '14 at 16:58
add a comment |
I'm working with the application "arecord" (under Arch Linux). I'm want to capture sound from my microphone and save it to the disk.
This is my command:
arecord -f dat -d 2 --channels 1 -D hw:1,0 /tmp/test.wav
This captures a two seconds (-d
-> duration) file and then saves it to disk. This basically works.
What I want to do is to record an "infinite" sound track (without fixed duration) and save this track immediately to disk. Without waiting for it to finish. So, if I shut down the machine while recording (or there's a power outage), the sound track will be saved on the disk up to that moment.
Is this possible?
arch-linux audio recording
I'm working with the application "arecord" (under Arch Linux). I'm want to capture sound from my microphone and save it to the disk.
This is my command:
arecord -f dat -d 2 --channels 1 -D hw:1,0 /tmp/test.wav
This captures a two seconds (-d
-> duration) file and then saves it to disk. This basically works.
What I want to do is to record an "infinite" sound track (without fixed duration) and save this track immediately to disk. Without waiting for it to finish. So, if I shut down the machine while recording (or there's a power outage), the sound track will be saved on the disk up to that moment.
Is this possible?
arch-linux audio recording
arch-linux audio recording
edited Mar 14 at 8:35
Matthias Braun
2,21421424
2,21421424
asked Jul 26 '14 at 17:59
No1Lives4EverNo1Lives4Ever
1134
1134
How aboutarecord -f dat -d 0 --channels 1 -D hw:1,0 > /tmp/test.wav
?
– groxxda
Jul 26 '14 at 18:10
1
Can't you just omit the-d
option? I mean, isn't it the default behaviour ofarecord
to run continuously until killed?
– Celada
Jul 28 '14 at 0:39
Yes. For more info: linuxcommand.org/man_pages/arecord1.html
– No1Lives4Ever
Jul 29 '14 at 16:55
What if I want to write a MP3 file (instead of WAV) and still write it to disk as it recording?
– No1Lives4Ever
Jul 29 '14 at 16:58
add a comment |
How aboutarecord -f dat -d 0 --channels 1 -D hw:1,0 > /tmp/test.wav
?
– groxxda
Jul 26 '14 at 18:10
1
Can't you just omit the-d
option? I mean, isn't it the default behaviour ofarecord
to run continuously until killed?
– Celada
Jul 28 '14 at 0:39
Yes. For more info: linuxcommand.org/man_pages/arecord1.html
– No1Lives4Ever
Jul 29 '14 at 16:55
What if I want to write a MP3 file (instead of WAV) and still write it to disk as it recording?
– No1Lives4Ever
Jul 29 '14 at 16:58
How about
arecord -f dat -d 0 --channels 1 -D hw:1,0 > /tmp/test.wav
?– groxxda
Jul 26 '14 at 18:10
How about
arecord -f dat -d 0 --channels 1 -D hw:1,0 > /tmp/test.wav
?– groxxda
Jul 26 '14 at 18:10
1
1
Can't you just omit the
-d
option? I mean, isn't it the default behaviour of arecord
to run continuously until killed?– Celada
Jul 28 '14 at 0:39
Can't you just omit the
-d
option? I mean, isn't it the default behaviour of arecord
to run continuously until killed?– Celada
Jul 28 '14 at 0:39
Yes. For more info: linuxcommand.org/man_pages/arecord1.html
– No1Lives4Ever
Jul 29 '14 at 16:55
Yes. For more info: linuxcommand.org/man_pages/arecord1.html
– No1Lives4Ever
Jul 29 '14 at 16:55
What if I want to write a MP3 file (instead of WAV) and still write it to disk as it recording?
– No1Lives4Ever
Jul 29 '14 at 16:58
What if I want to write a MP3 file (instead of WAV) and still write it to disk as it recording?
– No1Lives4Ever
Jul 29 '14 at 16:58
add a comment |
1 Answer
1
active
oldest
votes
Excerpt from the arecord's man page:
-d, --duration=#
Interrupt after # seconds. A value of zero means infinity. The default is zero, so if this option is omitted then the record/play‐
back process will run until it is killed.
This is the command I used to record sound indefinitely with a Kinobo Akiro USB microphone using a sampling rate of 48 kHz:
arecord --device="hw:1,0" --format=S16_LE --rate=48 rec_$(date "+%F_%H-%M-%S").wav
See this answer on how to specify which device to use.
To convert a WAVE file into mp3, you can use ffmpeg:
ffmpeg -i rec.wav -acodec mp3 rec.mp3
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f146747%2frecord-from-the-microphone-indefinitely%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Excerpt from the arecord's man page:
-d, --duration=#
Interrupt after # seconds. A value of zero means infinity. The default is zero, so if this option is omitted then the record/play‐
back process will run until it is killed.
This is the command I used to record sound indefinitely with a Kinobo Akiro USB microphone using a sampling rate of 48 kHz:
arecord --device="hw:1,0" --format=S16_LE --rate=48 rec_$(date "+%F_%H-%M-%S").wav
See this answer on how to specify which device to use.
To convert a WAVE file into mp3, you can use ffmpeg:
ffmpeg -i rec.wav -acodec mp3 rec.mp3
add a comment |
Excerpt from the arecord's man page:
-d, --duration=#
Interrupt after # seconds. A value of zero means infinity. The default is zero, so if this option is omitted then the record/play‐
back process will run until it is killed.
This is the command I used to record sound indefinitely with a Kinobo Akiro USB microphone using a sampling rate of 48 kHz:
arecord --device="hw:1,0" --format=S16_LE --rate=48 rec_$(date "+%F_%H-%M-%S").wav
See this answer on how to specify which device to use.
To convert a WAVE file into mp3, you can use ffmpeg:
ffmpeg -i rec.wav -acodec mp3 rec.mp3
add a comment |
Excerpt from the arecord's man page:
-d, --duration=#
Interrupt after # seconds. A value of zero means infinity. The default is zero, so if this option is omitted then the record/play‐
back process will run until it is killed.
This is the command I used to record sound indefinitely with a Kinobo Akiro USB microphone using a sampling rate of 48 kHz:
arecord --device="hw:1,0" --format=S16_LE --rate=48 rec_$(date "+%F_%H-%M-%S").wav
See this answer on how to specify which device to use.
To convert a WAVE file into mp3, you can use ffmpeg:
ffmpeg -i rec.wav -acodec mp3 rec.mp3
Excerpt from the arecord's man page:
-d, --duration=#
Interrupt after # seconds. A value of zero means infinity. The default is zero, so if this option is omitted then the record/play‐
back process will run until it is killed.
This is the command I used to record sound indefinitely with a Kinobo Akiro USB microphone using a sampling rate of 48 kHz:
arecord --device="hw:1,0" --format=S16_LE --rate=48 rec_$(date "+%F_%H-%M-%S").wav
See this answer on how to specify which device to use.
To convert a WAVE file into mp3, you can use ffmpeg:
ffmpeg -i rec.wav -acodec mp3 rec.mp3
answered Mar 14 at 9:59
Matthias BraunMatthias Braun
2,21421424
2,21421424
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f146747%2frecord-from-the-microphone-indefinitely%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How about
arecord -f dat -d 0 --channels 1 -D hw:1,0 > /tmp/test.wav
?– groxxda
Jul 26 '14 at 18:10
1
Can't you just omit the
-d
option? I mean, isn't it the default behaviour ofarecord
to run continuously until killed?– Celada
Jul 28 '14 at 0:39
Yes. For more info: linuxcommand.org/man_pages/arecord1.html
– No1Lives4Ever
Jul 29 '14 at 16:55
What if I want to write a MP3 file (instead of WAV) and still write it to disk as it recording?
– No1Lives4Ever
Jul 29 '14 at 16:58