You can use
http://pymedia.org//tut/recode_audio.html
with input stream parameters extracted from WAV file which is in 99% cases is a plain PCM file+ WAVE header. So you would need to read WAVE header (via wave module) and then read PCM data and convert it into MP3.
Dmitry/

----- Original Message ----- From: "weird" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, January 15, 2006 5:03 AM
Subject: [Pymedia-users] example


Hi to all,

could I have an example code to encode a wav file to an mp3?

thx.
Nik




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users

Reply via email to