errang
asked on
How to convert a 'mono' signal to a 'stereo' signal?
Hey,
I'm trying to write a program to convert a 'mono' signal to a 'stereo' signal. I was just wondering what the simplest way to get this done was.
I was hoping to do it in Python, but I would be open to doing it in an other language as well.
Could anyone point me to any tutorials or sample code that could get me started?
Appreciate any help on this!
I'm trying to write a program to convert a 'mono' signal to a 'stereo' signal. I was just wondering what the simplest way to get this done was.
I was hoping to do it in Python, but I would be open to doing it in an other language as well.
Could anyone point me to any tutorials or sample code that could get me started?
Appreciate any help on this!
You can not simply "Convert" a mono input to a stereo output. The mono signal does not contain any information to "Make" it stereo.
ASKER
Yea, I was wondering if there were any library functions that helped with it. Rather than manually converting the signal myself.
What is your exact intention and what file format are you talking about.
Do you wan to convert a file with only one audio channel into a file with two identical audio channels or do you look for a smart algorithm trying to add some stereo effect?
What file format do you talk about .mp3 / .wav raw audio format ???
On the command line sox is one of the commands allowing to convert audio file formats but there are many others.
Depening on your needs and your platform (Windows? Linux?) you can either use python to call one of these scripts or you could install a python library to perform this task.
A few more details will help us to give a better answer.
Do you wan to convert a file with only one audio channel into a file with two identical audio channels or do you look for a smart algorithm trying to add some stereo effect?
What file format do you talk about .mp3 / .wav raw audio format ???
On the command line sox is one of the commands allowing to convert audio file formats but there are many others.
Depening on your needs and your platform (Windows? Linux?) you can either use python to call one of these scripts or you could install a python library to perform this task.
A few more details will help us to give a better answer.
ASKER
>>Do you wan to convert a file with only one audio channel into a file with two identical audio >>channels or do you look for a smart algorithm trying to add some stereo effect?
>>What file format do you talk about .mp3 / .wav raw audio format ???
I'm trying to convert a .wav file. I can't attach the file here because it isn't one of the supported file types. I'm just trying to produce a file with a stereo signal, I'm guessing something that would change the frequency or changing the phase of the signal would do the trick, right?
>>Depening on your needs and your platform (Windows? Linux?) you can either use python to call one of these scripts or you could install a python library to perform this task.
I'm running this program on a Macintosh at the moment.
>>What file format do you talk about .mp3 / .wav raw audio format ???
I'm trying to convert a .wav file. I can't attach the file here because it isn't one of the supported file types. I'm just trying to produce a file with a stereo signal, I'm guessing something that would change the frequency or changing the phase of the signal would do the trick, right?
>>Depening on your needs and your platform (Windows? Linux?) you can either use python to call one of these scripts or you could install a python library to perform this task.
I'm running this program on a Macintosh at the moment.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>Use Audacity to do your audio editing. http://audacity.sourceforge.net/ Standard practice is to take the mono signal and put a copy of it on both the left and right channels.
That's not an API, is it? I need to write a program to do that.
That's not an API, is it? I need to write a program to do that.
Then here is some info about WAV file formats: http://en.wikipedia.org/wiki/WAV You have to know what bitrate and codec you need to use along with how to construct the headers. The links at the bottom of the article will have more info.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.