Download Jar. Libraryless. Click here for Pure Java version (3948L/28K).
1 | !7 |
2 | |
3 | p { |
4 | final File wavFile = anonymousWAVEFile(); |
5 | S cmd = "arecord -f S16_LE -r 44100 -d 5 " + bashQuote(wavFile); |
6 | File outFile = File.createTempFile("arecord", ""); |
7 | final Process p = backtickToFile_noWait(cmd, outFile); |
8 | print("Recording to " + f2s(wavFile)); |
9 | showButtons("Stop recording", r-thread { |
10 | killProcess(p); |
11 | sleepSeconds(1); |
12 | print("Recorded " + fileSize(wavFile) + " bytes."); |
13 | }); |
14 | } |
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: | 347 / 919 |
Version history: | 4 change(s) |
Referenced in: | [show references] |