Register a domain and help support LQ
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, 11:59 PM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,333

Rep: Reputation: 50
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-03-2010, 12:17 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

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

Rep: Reputation: 75
What catkin said;

Until such time: man sox

read and learn.
Old 12-03-2010, 02:48 AM   #4
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

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 02:50 AM.
Old 12-03-2010, 05: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, 11:43 PM   #6
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,333

Original Poster
Rep: Reputation: 50
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 09:02 PM
Make fails when trying to install SoX. Libpng problems. bharat411 Linux - Software 2 10-30-2010 01:40 PM
how to playback/convert raw sound with sox captured with alsa 'write file' donnied Linux - General 0 04-16-2009 08:14 AM
SoX File Conversion Issues pikk67 Linux - General 0 10-03-2006 08:38 AM
libgdiplus make error /about mono gaddargarson Fedora 1 04-05-2005 11:29 AM

All times are GMT -5. The time now is 06:44 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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration