Download Jar. Libraryless. Click here for Pure Java version (3948L/28K).
!7 p { final File wavFile = anonymousWAVEFile(); S cmd = "arecord -f S16_LE -r 44100 -d 5 " + bashQuote(wavFile); File outFile = File.createTempFile("arecord", ""); final Process p = backtickToFile_noWait(cmd, outFile); print("Recording to " + f2s(wavFile)); showButtons("Stop recording", r-thread { killProcess(p); sleepSeconds(1); print("Recorded " + fileSize(wavFile) + " bytes."); }); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014843 |
Snippet name: | Continuous recording using arecord [Linux, OK] |
Eternal ID of this version: | #1014843/5 |
Text MD5: | 2db413152067210fdea26378cb466e60 |
Transpilation MD5: | 7702dcfe67cac1b5d052dd7387f93c0e |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-07 16:21:23 |
Source code size: | 430 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 346 / 918 |
Version history: | 4 change(s) |
Referenced in: | #1018609 - anonymousWAVEFile |