最終更新:2021-07-15 (木) 02:04:59 (1016d)
PyAudio.open
Top / PyAudio.open
Open a new stream. See constructor for PyAudio.Stream?.
パラメータ (__init__と同じ)
- https://people.csail.mit.edu/hubert/pyaudio/docs/#pyaudio.Stream.__init__
PA_manager A reference to the managing PyAudio instance rate Sampling rate channels Number of channels format Sampling size and format. See PortAudio Sample Format. input Specifies whether this is an input stream. Defaults to False. output Specifies whether this is an output stream. Defaults to False. input_device_index Index of Input Device to use. Unspecified (or None) uses default device. Ignored if input is False. output_device_index Index of Output Device to use. Unspecified (or None) uses the default device. Ignored if output is False. frames_per_buffer Specifies the number of frames per buffer. start Start the stream running immediately. Defaults to True. In general, there is no reason to set this to False. input_host_api_specific_stream_info Specifies a host API specific stream information data structure for input. output_host_api_specific_stream_info Specifies a host API specific stream information data structure for output. stream_callback Specifies a callback function for non-blocking (callback) operation. Default is None, which indicates blocking operation (i.e., Stream.read() and Stream.write()).