Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1032269 // linux_recordAudioOutput

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5372L/33K).

// for device see "index" in "pacmd list-sources"
// (or full device name)
svoid linux_recordAudioOutput(File wavFile, S device, double duration) {
  backtick_verbose("parec -d " + pqO(device) + "|sox -t raw -r 44100 -e signed -c 2 -b 16 - " + pqO(wavFile) + " trim 0 " + formatDouble3(duration));
}

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: 73 / 108
Version history: 1 change(s)
Referenced in: [show references]