Skip to content

Commit

Permalink
[respeaker_ros] Fixed bytes calculation 'self.n_channe - 2' -> '(self…
Browse files Browse the repository at this point in the history
….n_channel - 2)'
  • Loading branch information
iory authored and tkmtnt7000 committed Dec 22, 2023
1 parent a364602 commit 324ec87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion respeaker_ros/scripts/respeaker_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self):
self.pub_speech_audio_raw = rospy.Publisher(
"speech_audio_raw", AudioData, queue_size=10)
self.speech_raw_prefetch_bytes = int(
self.n_channel - 2
(self.n_channel - 2)
* self.speech_prefetch
* self.respeaker_audio.rate
* self.respeaker_audio.bitdepth / 8.0)
Expand Down

0 comments on commit 324ec87

Please sign in to comment.