Differences between revisions 30 and 33 (spanning 3 versions)
Revision 30 as of 2011-08-24 07:50:50
Size: 3060
Editor: 161
Comment: alsaaudio worked for me out of the box, while ossaudiodev did not
Revision 33 as of 2014-04-27 19:16:24
Size: 617
Editor: JSperry
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Audio in Python =

This page tries to provide a starting point for those who want to work with audio in combination with Python.

If you are creating a game, most of what you are looking for may already be included in the many PythonGameLibraries that are available.

If you are looking for podcasts related to Python, go to the PythonAudioMaterial page.


== Built in modules ==

The [[http://docs.python.org/lib/mmedia.html|Multimedia Services]] allow for some basic audio functionality in Python. It consists of the following modules:

|| [[http://docs.python.org/lib/module-audioop.html|audioop]] || Manipulate raw audio data. ||
|| [[http://docs.python.org/lib/module-aifc.html|aifc]] || Read and write audio files in AIFF or AIFC format. ||
|| [[http://docs.python.org/lib/module-sunau.html|sunau]] || Provide an interface to the Sun AU sound format. ||
|| [[http://docs.python.org/lib/module-wave.html|wave]] || Provide an interface to the WAV sound format. ||
|| [[http://docs.python.org/lib/module-chunk.html|chunk]] || Module to read IFF (e.g. AIFF) chunks. ||
|| [[http://docs.python.org/lib/module-sndhdr.html|sndhdr]] || Determine type of a sound file. ||
|| [[http://docs.python.org/lib/module-ossaudiodev.html|ossaudiodev]] || Access to OSS-compatible audio devices (mainly important for Linux / FreeBSD) ||
|| [[http://docs.python.org/library/winsound.html|winsound]] || Access to the basic sound-playing machinery provided by Windows platforms. ||

== Beyond the default modules ==
Alternatively, you might want to learn about audio programming in Python. There is a veritable forest of stuff out there, but here are some good starting points.

For a complete overview have a look at PythonInMusic.

=== Platform independent ===

[[http://nsound.sourceforge.net|Nsound]]
    A framework for audio synthesis.

[[http://pyaudiere.org|PyAudiere]]
   A high-level audio interface for Python.

[[http://people.csail.mit.edu/hubert/pyaudio/|pyAudio]]
   pyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library. Only for audio input and output, other operations can be done using e.g. Python's built in wave module.

[[http://www.speech.kth.se/snack/|Snack]]
   Snack has commands for basic sound handling, such as playback, recording, file and socket I/O. Snack also provides primitives for sound visualization, e.g. waveforms and spectrograms.

[[http://sourceforge.net/projects/audiotools/|Python Audio Tools]]
   Python programs for CD-ripping and conversion between audio file formats.

=== Platform dependent ===
[[http://gstreamer.freedesktop.org/modules/gst-python.html]]

[[http://pyalsaaudio.sourceforge.net/]]

=== Modules relying on closed source ===

[[http://pysonic.sourceforge.net/|pysonic]]
   A wrapper around the [[http://www.fmod.org|FMOD]]-library offering plenty of options including 3D sound and effects. FMOD is a popular closed, but free for own use, that is used in many commercial game titles.
----
CategoryDocumentation
Hi, everybody! My name is Jayson. <<BR>>
It is a little about myself: I live in United States, my city of Flint. <<BR>>
It'[[http://Www.Thefreedictionary.com/s+called|s called]] often Eastern or cultural capital of MI. I've married 4 years ago.<<BR>>
I have two children - a son (Riley) and the [[http://Www.Adobe.com/cfusion/search/index.cfm?term=&daughter&loc=en_us&siteSection=home|daughter]] (Bertie). We all like Kiteboarding.<<BR>>
<<BR>>
My blog post :: [[http://mayvanphongonline.com.vn/cat/70/may-chieu.html|Chuyên cung cấp máy chiếu chính hãng với giá cả tốt nhất thị trường]]

Hi, everybody! My name is Jayson.
It is a little about myself: I live in United States, my city of Flint.
It's called often Eastern or cultural capital of MI. I've married 4 years ago.
I have two children - a son (Riley) and the daughter (Bertie). We all like Kiteboarding.

My blog post :: Chuyên cung cấp máy chiếu chính hãng với giá cả tốt nhất thị trường

Audio (last edited 2022-02-11 15:26:49 by mytja)

Unable to edit the page? See the FrontPage for instructions.