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 knorth55 committed Aug 18, 2022
1 parent 0af5884 commit bbcafc3
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 @@ -410,7 +410,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 bbcafc3

Please sign in to comment.