Skip to content

Commit

Permalink
Update speech2device.js
Browse files Browse the repository at this point in the history
Fixed indentation of comment.
  • Loading branch information
neopholus committed Mar 16, 2024
1 parent b2d921e commit 46bd2d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/speech2device.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ class Speech2Device {
let count = 0;
let intervalHandler = setInterval(async () => {
count++;
// We are checking every 500 ms, expected length of playback is defined in variable duration in seconds
// Thus, we have to count to duration*2 to be able to wait long enough for the expected playback duration.
// We add two additional seconds, to cover delays before the playback starts.
// We are checking every 500 ms, expected length of playback is defined in variable duration in seconds
// Thus, we have to count to duration*2 to be able to wait long enough for the expected playback duration.
// We add two additional seconds, to cover delays before the playback starts.
if (count > (duration+2)*2) {
clearInterval(intervalHandler);
intervalHandler = null;
Expand Down

0 comments on commit 46bd2d5

Please sign in to comment.