Package audioio

Platform independent interfacing of numpy arrays with audio files and devices.

Expand source code
"""
Platform independent interfacing of numpy arrays with audio files and devices.
"""

import sys

# avoid double inclusion of audioio modules if called as modules,
# e.g. python -m audioio.audiowriter`:
if not '-m' in sys.argv:
    
    from .version import __version__
    
    __all__ = ['audiomodules',
               'audioloader',
               'audiowriter',
               'playaudio']
    
    # make all important functions available in the audioio namespace:
    from .audiomodules import list_modules, installed_modules
    from .audiomodules import available_modules, unavailable_modules
    from .audiomodules import disable_module, enable_module, select_module
    from .audiomodules import missing_modules, missing_modules_instructions
    from .audiomodules import installation_instruction
    from .audioloader import load_audio, AudioLoader, blocks, unwrap
    from .audiowriter import write_audio, available_formats, available_encodings
    from .playaudio import play, beep, PlayAudio
    from .playaudio import note2freq, fade_in, fade_out, fade

Sub-modules

audioio.audioconverter

Command line script for converting audio files …

audioio.audioloader

Loading data from audio files …

audioio.audiomodules

Query and control installation status and availability of audio modules …

audioio.audiowriter

Writing numpy arrays of floats to audio files …

audioio.playaudio

Play numpy arrays as audio …

audioio.version

Version and year of the audioio package.