Differences between revisions 15 and 16
Revision 15 as of 2007-11-23 15:15:26
Size: 2470
Comment:
Revision 16 as of 2007-11-23 15:19:41
Size: 4786
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
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. 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 game libraries] that are available for Python.
Line 9: Line 9:

---- /!\ '''Edit conflict - other version:''' ----
Line 24: Line 26:
---- /!\ '''Edit conflict - your version:''' ----
[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)

---- /!\ '''End of edit conflict''' ----
Line 31: Line 51:

---- /!\ '''Edit conflict - other version:''' ----
Line 43: Line 65:
---- /!\ '''Edit conflict - your version:''' ----
[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 Audio Tools

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

---- /!\ '''End of edit conflict''' ----
Line 45: Line 82:

---- /!\ '''Edit conflict - other version:''' ----
Line 49: Line 88:

---- /!\ '''Edit conflict - your version:''' ----
[http://pysonic.sourceforge.net/index.html 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

---- /!\ '''End of edit conflict''' ----

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 game libraries] that are available for Python.

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:


/!\ Edit conflict - other version:


[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)


/!\ Edit conflict - your version:


[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)


/!\ End of edit conflict


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


/!\ Edit conflict - other version:


[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 Audio Tools

Platform dependent

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


/!\ Edit conflict - your version:


[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 Audio Tools

Platform dependent

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


/!\ End of edit conflict


Modules relying on closed source


/!\ Edit conflict - other version:


[http://pysonic.sourceforge.net/index.html 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


/!\ Edit conflict - your version:


[http://pysonic.sourceforge.net/index.html 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


/!\ End of edit conflict


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

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