Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-02-2010, 10:59 PM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,604

Rep: Reputation: 51
Use Sox to Make a File Mono

Kernel 2.6, GNU (Slackware 12.0).
sox 12.18.1

bash-3.1# file receive48.wav 
receive48.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 48000 Hz
This file, I intend to make it mono. That is, to mix both channels. I know this is a piece of cake for sox. But exactly how do I do it?
Old 12-02-2010, 11:17 PM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
More descriptive thread titles are courteous, helpful and more likely to attract expertise.
Old 12-03-2010, 12:45 AM   #3
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 678

Rep: Reputation: 105Reputation: 105
What catkin said;

Until such time: man sox

read and learn.
Old 12-03-2010, 01:48 AM   #4
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Rep: Reputation: 36
You've been a member for over 3 years now, and with more posts than I've managed since I've been here. You ought to know better, dude. To answer your question, you could probably average out the channels in the stereo. Something like:
sox receive48.wav -c 1 receive48_mono.wav avg

Last edited by corbis_demon; 12-03-2010 at 01:50 AM.
Old 12-03-2010, 04:33 AM   #5
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
some OT - don't read it if You don't like it
@corbis_demon: You should know, that # of posts doesn't show the level of the text's author
Old 12-03-2010, 10:43 PM   #6
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,604

Original Poster
Rep: Reputation: 51
Thanks for the info and thanks for the warning.


mix, mono, sox, stereo, wave

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sox convert a-law mono 8000hz wav to pcm signed 16bit mono wav saiyen2002 Linux - Software 2 02-23-2012 08:02 PM
Make fails when trying to install SoX. Libpng problems. bharat411 Linux - Software 2 10-30-2010 12:40 PM
how to playback/convert raw sound with sox captured with alsa 'write file' donnied Linux - General 0 04-16-2009 07:14 AM
SoX File Conversion Issues pikk67 Linux - General 0 10-03-2006 07:38 AM
libgdiplus make error /about mono gaddargarson Fedora 1 04-05-2005 10:29 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration