Parametersĭesc ( dict) – Audio device descriptor returned from Psychtoolbox’s get_devicesĪudio device descriptor with properties set using desc. static createFromPTBDesc ( desc ) ¶Ĭreate an AudioDevice instance with values populated using aĭescriptor ( dict) returned from the PTB audio.get_devices API call. start () # start recording sound property audioLib ¶Īudio library used to query device information ( str). Microphone ( device = recordingDevice ) mic. getDevices () recordingDevice = recordingDevicesList # pass the descriptor to microphone to configure it mic = sound. ![]() ![]() # get the first suitable capture device found by the sound engine recordingDevicesList = sound. Properties of this descriptor (e.g., 'ptb' for Psychtoolbox). InputLatency ( tuple) – Low ( float) and high ( float) input latency in milliseconds.ĭefaultSampleRate ( int) – Default sample rate for the device in Hertz (Hz).ĪudioLib ( str) – Audio library that queried device information used to populate the InputChannels ( int) – Number of input channels. OutputLatency ( tuple) – Low ( float) and high ( float) output latency in milliseconds. OutputChannels ( int) – Number of output channels. HostAPIName ( str) – Human-readable name of the host API used for audio. This number is specific to theĭeviceName ( str) – Human-readable name of the device. This class is usually instanced only by callingĪvoid creating instances of this class themselves unless they have goodĭeviceIndex ( int) – Enumerated index of the audio device. Properties associated with this class provide information about a specificĪudio playback or recording device. AudioDeviceInfo ( deviceIndex = -1, deviceName = 'Null Device', hostAPIName = 'Null Audio Driver', outputChannels = 0, outputLatency = (0.0, 0.0), inputChannels = 0, inputLatency = (0.0, 0.0), defaultSampleRate = 48000, audioLib = '' ) ¶ĭescriptor for an audio device (playback or recording) on this system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |