最終更新:2021-04-05 (月) 13:04:27 (1115d)  

PyAudio/コールバック
Top / PyAudio / コールバック

https://people.csail.mit.edu/hubert/pyaudio/docs/#id4

関数

  • callback(<input_data>, <frame_count>, <time_info>, <status_flag>)

return

  • must return a tuple containing frame_count frames of audio data and a flag signifying whether there are more frames to play/record.

マイク

スピーカー

  • data:再生するデータ
    return (data, pyaudio.paContinue)