Visit Jeremy's Blog.
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,450

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 except for netbook still on Slackware 13.37 (and I have to support Ubuntu)
Posts: 8,572
Blog Entries: 30

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
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: 561

Rep: Reputation: 76
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: Slack 13
Posts: 502

Rep: Reputation: 35
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,450

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

All times are GMT -5. The time now is 07:03 PM.

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