On Wed, 3 Feb 2021 12:14:52 -0500 Bob Goodwin <bobgoodwin@xxxxxxxxxxx> wrote: > arecord tstxx will produce a wav file and ffmpeg -i tstxx.mp3 to a > file aplay will play. > > How can I put them together in one command or if there is a simpler > and better way, how to get a compressed output file from arecord? I'm not completely clear on what you are trying to accomplish, but if you are trying to record using aplay and get an mp3 file, you should be able to do this with sox. A command like arecord tstxx | sox -t wav - tstxx.mp3 should do the trick. I haven't tested this, though. aplay can only play voc, raw, wav or au files, so will not be able to play mp3. sox can play, and record, many file types, including mp3. See the man page. _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx