473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

audio module

Is there such a module containing audio tools? I am looking specifically
for tools to manipulate ogg-vorbis and convert other formats (mp3, wav) to
ogg.

--
Todd Stephens
ICQ# 3150790
"A witty saying proves nothing."
-Voltaire
Jul 18 '05 #1
6 2571
Todd Stephens <Hu*****@Huzzah.com> wrote:
Is there such a module containing audio tools? I am looking specifically
for tools to manipulate ogg-vorbis and convert other formats (mp3, wav) to
ogg.


You can try Snack --it doesn't support ogg :-(

http://www.speech.kth.se/snack/

--
David.
Jul 18 '05 #2
Todd Stephens <Hu*****@Huzzah.com> wrote in message news:<9b*********************@twister.tampabay.rr. com>...
Is there such a module containing audio tools? I am looking specifically
for tools to manipulate ogg-vorbis and convert other formats (mp3, wav) to
ogg.


Hi,

try tkSnack : www.speech.kth.se/snack

I think it should be able to handle ogg files, though I have not tried this.

Cheers

Michael
Jul 18 '05 #3
Todd Stephens schrieb:
Is there such a module containing audio tools? I am looking specifically
for tools to manipulate ogg-vorbis and convert other formats (mp3, wav) to
ogg.

What do you mean by "manipulation"? Edit the tag info? You can have a
try with (my) libtagedit (libtagedit.sourceforge.net), which supports
mp3 as well.

Converting mp3 into ogg with preserving the tag information consists
mostly out of building the commandline:

trans_table = {
"Artist": "--artist",
"Title": "--title",
"Track": "--tracknum",
"Genre": "--genre",
"Year": "--date",
"Album": "--album",
"Comment": "-c ="}

def mp3ToOgg(tag, outdir, quality="3,5"):
args = ["%s \"%s\"" % (trans_table[field], tag[field])
for field in trans_table.keys() if tag[field]]
args = " ".join(args)
new = os.path.join(outdir,
os.path.basename(tag.filename().replace(".mp3", ".ogg")))

os.system("lame --decode \"%s\" -|oggenc -q %s -r -o \"%s\" %s -" %
(tag.filename(), quality, new, args))
This example uses libtagedit (tag is a tageditor class). If you want
more specific information, I could mail you some scripts I wrote.

greets

Torsten

Jul 18 '05 #4
Hi!

Todd Stephens <Hu*****@Huzzah.com> wrote in
news:9b*********************@twister.tampabay.rr.c om:
I am looking
specifically for tools to manipulate ogg-vorbis and convert other
formats (mp3, wav) to ogg.


Well. I think at least for converting into ogg, the Python bindings
provided on http://www.vorbis.com/download_unix.psp should help (never
tried myself).

Bye
Tobias
Jul 18 '05 #5
Todd Stephens wrote:
Is there such a module containing audio tools? I am looking specifically
for tools to manipulate ogg-vorbis and convert other formats (mp3, wav) to
ogg.


Here are some Ogg Vorbis bindings for Python:

http://www.andrewchatham.com/pyogg/

Jul 18 '05 #6
Joe Francia wrote in article <Od**********************@news.easynews.com>:
Todd Stephens wrote:
Is there such a module containing audio tools? I am looking specifically
for tools to manipulate ogg-vorbis and convert other formats (mp3, wav)
to ogg.


Here are some Ogg Vorbis bindings for Python:

http://www.andrewchatham.com/pyogg/


Excellent. Thanks to everyone that responded. Honestly I was not sure if
there was going to be anything out there for this. I think I can work with
what I have been shown here. Thanks again.
--
Todd Stephens
ICQ# 3150790
"A witty saying proves nothing."
-Voltaire
Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kelvin Chu | last post by:
Hello, Python Wizards... I'm trying to use Python to write an aiff file. I've used the aifc module and I've set the parameters (# of channels, encoding rate, compression, etc.) What does raw...
2
by: Bruce Bon | last post by:
The class below is intended to play a Sun audio file (.au) in the background while the main thread, which is servicing a GUI, continues without impact. It doesn't work. For a sound file that...
1
by: Noah | last post by:
I need to record raw 8-bit mono audio from a generic sound card on MS-Windows. I need to do something like this: sound_device = open audio device buffer = sound_device.read ('1 second, 8 bit,...
1
by: Dawsons | last post by:
Completely random thought process im having, but this even possible or anyone know of such thing which can even act in away hich is webside? Stuart
0
by: Lasdjfk | last post by:
Anyone knows about an audio filter module for Python? Snack (http://www.speech.kth.se/snack/ ) seems to be able to do something things. However what I'm mostly interested in is to run audio...
3
by: ray well | last post by:
hi, i'm looking for an audio component to add to a .net 2005 program, that could play all or part (starting at a certain point and ending at a certain point within a audio file) of a wav, midi,...
4
by: Ultrus | last post by:
Hello Python Gurus, I picked up a book the other day on Python programming. Python rocks! I'm learning Python as I want to call upon it to handle some intensive tasks from PHP/web server. The...
3
by: Julien | last post by:
Hi, I would like to pull out the waveform of an audio file and save it into an image file, for example in GIF format. Is that achievable, and if so, how? I heard about the Snack module, but...
3
li0pxh0
by: li0pxh0 | last post by:
Does anyone know how to fix this error? ERROR error.badfetch: Trying to add audio content <prompt> to non-audio container <form> Below is my code: use CGI; use Cwd; use File::Basename;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.