API Documentation
Play and Record Sound with Python.
- API overview:
Convenience functions to play and record NumPy arrays:
play(),rec(),playrec()and the related functionswait(),stop(),get_status(),get_stream()Functions to get information about the available hardware:
query_devices(),query_hostapis(),check_input_settings(),check_output_settings()Module-wide default settings:
defaultPlatform-specific settings:
AsioSettings,CoreAudioSettings,WasapiSettingsPortAudio streams, using NumPy arrays:
Stream,InputStream,OutputStreamPortAudio streams, using Python buffer objects (NumPy not needed):
RawStream,RawInputStream,RawOutputStreamMiscellaneous functions and classes:
sleep(),get_portaudio_version(),CallbackFlags,CallbackStop,CallbackAbort
- Online documentation:
- Convenience Functions using NumPy Arrays
- Checking Available Hardware
- Module-wide Default Settings
- Platform-specific Settings
- Streams using NumPy Arrays
StreamStream.abort()Stream.activeStream.blocksizeStream.channelsStream.close()Stream.closedStream.cpu_loadStream.deviceStream.dtypeStream.latencyStream.read()Stream.read_availableStream.samplerateStream.samplesizeStream.start()Stream.stop()Stream.stoppedStream.timeStream.write()Stream.write_available
InputStreamOutputStream
- Raw Streams
- Miscellaneous
- Expert Mode