Skip to content

[INFERENCE][BUG] Fix last audio chunk sent twice during inference#31

Merged
mgaido91 merged 9 commits intomainfrom
fix_audio_chunk_sent_twice
Mar 17, 2026
Merged

[INFERENCE][BUG] Fix last audio chunk sent twice during inference#31
mgaido91 merged 9 commits intomainfrom
fix_audio_chunk_sent_twice

Conversation

@sarapapi
Copy link
Contributor

Solves #29

@sarapapi sarapapi self-assigned this Mar 16, 2026
@sarapapi sarapapi linked an issue Mar 16, 2026 that may be closed by this pull request
@sarapapi sarapapi requested a review from mgaido91 March 16, 2026 18:19
Copy link
Contributor

@mgaido91 mgaido91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few minor comments on the UT, LGTM otherwise, thanks!

process_audio(message_processor, SAMPLE_RATE, data)

message_processor.speech_processor.process_chunk.assert_not_called()
self.assertEqual(message_processor.client_buffer, b'')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is empty? rather than equal to empty one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean? There is no assertEmpty in unittest

@mgaido91
Copy link
Contributor

lgtm

@mgaido91 mgaido91 changed the title Fix last audio chunk sent twice during inference [INFERENCE][BUG] Fix last audio chunk sent twice during inference Mar 17, 2026
@mgaido91 mgaido91 merged commit f6688fe into main Mar 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] last audio chunk is sent to processor twice.

2 participants