Libraryless. Click here for Pure Java version (5372L/33K).
1 | // for device see "index" in "pacmd list-sources" |
2 | // (or full device name) |
3 | svoid linux_recordAudioOutput(File wavFile, S device, double duration) { |
4 | backtick_verbose("parec -d " + pqO(device) + "|sox -t raw -r 44100 -e signed -c 2 -b 16 - " + pqO(wavFile) + " trim 0 " + formatDouble3(duration)); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032269 |
Snippet name: | linux_recordAudioOutput |
Eternal ID of this version: | #1032269/2 |
Text MD5: | 2a1d710ac34f262c43490f862b9f69c0 |
Transpilation MD5: | 071a1bcf0afc06867b17b0b515ee1d48 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-25 01:47:41 |
Source code size: | 303 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 128 / 181 |
Version history: | 1 change(s) |
Referenced in: | [show references] |