Differences between revisions 20 and 21
Revision 20 as of 2008-09-20 13:36:39
Size: 2654
Editor: 104-78-17-190
Comment: Fixed pysonic url.
Revision 21 as of 2008-11-15 14:00:28
Size: 2682
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
The [http://docs.python.org/lib/mmedia.html Multimedia Services] allow for some basic audio functionality in python. It consists of the following 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:
Line 9: Line 9:
[http://docs.python.org/lib/module-audioop.html audioop] [[http://docs.python.org/lib/module-audioop.html|audioop]]
Line 11: Line 11:
[http://docs.python.org/lib/module-aifc.html aifc] [[http://docs.python.org/lib/module-aifc.html|aifc]]
Line 13: Line 13:
[http://docs.python.org/lib/module-sunau.html sunau] [[http://docs.python.org/lib/module-sunau.html|sunau]]
Line 15: Line 15:
[http://docs.python.org/lib/module-wave.html wave] [[http://docs.python.org/lib/module-wave.html|wave]]
Line 17: Line 17:
[http://docs.python.org/lib/module-chunk.html chunk] [[http://docs.python.org/lib/module-chunk.html|chunk]]
Line 19: Line 19:
[http://docs.python.org/lib/module-sndhdr.html sndhdr] [[http://docs.python.org/lib/module-sndhdr.html|sndhdr]]
Line 21: Line 21:
[http://docs.python.org/lib/module-ossaudiodev.html ossaudiodev] [[http://docs.python.org/lib/module-ossaudiodev.html|ossaudiodev]]
Line 31: Line 31:
[http://people.csail.mit.edu/hubert/pyaudio/ pyAudio] [[http://people.csail.mit.edu/hubert/pyaudio/|pyAudio]]
Line 34: Line 34:
[http://www.speech.kth.se/snack/ Snack] [[http://www.speech.kth.se/snack/|Snack]]
Line 37: Line 37:
[http://sourceforge.net/projects/audiotools/ Python Audio Tools] [[http://sourceforge.net/projects/audiotools/|Python Audio Tools]]
Line 41: Line 41:
[http://gstreamer.freedesktop.org/modules/gst-python.html] [[http://gstreamer.freedesktop.org/modules/gst-python.html]]
Line 46: Line 46:
[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.
[[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.

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 looking for podcast and such on Python you are not at the right place here, but PythonAudioMaterial is. If you are creating a game, most of what you are looking for may already be included in the many PythonGameLibraries that are available.

Built in modules

The Multimedia Services allow for some basic audio functionality in python. It consists of the following modules:

audioop

  • Manipulate raw audio data.

aifc

  • Read and write audio files in AIFF or AIFC format.

sunau

  • Provide an interface to the Sun AU sound format.

wave

  • Provide an interface to the WAV sound format.

chunk

  • Module to read IFF (e.g. AIFF) chunks.

sndhdr

  • Determine type of a sound file.

ossaudiodev

  • Access to OSS-compatible audio devices (mainly important for Linux / FreeBSD)

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

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.

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.

Python Audio Tools

  • Python programs for CD-ripping and conversion between audio file formats.

Platform dependent

http://gstreamer.freedesktop.org/modules/gst-python.html

Modules relying on closed source

pysonic

  • A wrapper around the 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

Audio (last edited 2016-03-05 22:53:01 by JoeHamilton)

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