Skip to content

Commit

Permalink
Change np.float to np.float32
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Dec 19, 2022
1 parent e0dac32 commit 836697f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AudioHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def measure_latency_loop(self, sample_rate, recording_channels, window_type):

# Read data
input_data_raw = self.recording_stream.read(self.chunk_size)
input_data = np.frombuffer(input_data_raw, dtype=np.float3232)
input_data = np.frombuffer(input_data_raw, dtype=np.float32)

# Split into channels and make mono
input_data = input_data.reshape((len(input_data) // recording_channels, recording_channels))
Expand Down

0 comments on commit 836697f

Please sign in to comment.