TransWikia.com

How can I record sound in background

Ask Ubuntu Asked on November 18, 2021

I would like to run a command to be executed in background monitoring the output to the speaker and record what’s played.

I used the following command:

parec -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | sox -t raw -b 16 -e signed -c 2 -r 44100 - test.ogg silence 1 0.1 3% 1 3.0 3%

It works, but it is running in forground listening to the device… I tried use tmux but it didn’t record the sound…. any solution?

I prefer a command line as a startup service to listen to the speaker output as long as it’s not stopped, however later I found pulseaudio as a required service isn’t run as a wide-system service and making it wide-system causes some problems in sound system….

Now this question isn’t my priority but if one knows a solution can offer.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP