aiXander / Realtime_PyAudio_FFT

Realtime audio analysis in Python, using PyAudio and Numpy to extract and visualize FFT features from streaming audio.
MIT License
948 stars 186 forks source link

Issue on MAC OSX #30

Open bonomip opened 8 months ago

bonomip commented 8 months ago

site-packages/numpy/core/numeric.py", line 223, in ones a = empty(shape, dtype, order) TypeError: 'float' object cannot be interpreted as an index

caused by line 130 of "src/stream_reader_sounddevice.py".

solved by adding a hard cast to int.

self.data_windows_to_buffer = int(data_windows_to_buffer)

jennsun commented 2 months ago

Hi, were you able to get the audio visualizer to work on mac? I am having issues with opening the pygame visualizer with a Mac and would really appreciate some help. Thanks!