Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors the JS live audio transcription sample to make streaming output cleaner and to make microphone audio ingestion more resilient to short event-loop stalls (aligning behavior more closely with the existing C# sample pattern).
Changes:
- Adjust transcription printing to skip empty partials and treat
is_finalas a marker (not a stop condition). - Increase PortAudio chunk size / queue depth to reduce callback frequency and overflow risk.
- Replace “drop-while-backpressured” audio appends with a bounded async append queue and a pump loop.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
|
@copilot resolve the merge conflicts in this pull request |
Agent-Logs-Url: https://github.com/microsoft/Foundry-Local/sessions/25aafe73-46df-4a26-a235-d2d9bfbd05b5 Co-authored-by: rui-ren <15321482+rui-ren@users.noreply.github.com>
Contributor
Author
|
@copilot resolve the merge conflicts in this pull request |
Contributor
Author
|
@copilot resolve the merge conflicts in this pull request |
…n-example/app.js Co-authored-by: rui-ren <15321482+rui-ren@users.noreply.github.com>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JS sample refactoring
Refactors the JS live audio transcription sample to make streaming output cleaner and to make microphone audio ingestion more resilient to short event-loop stalls (aligning behavior more closely with the existing C# sample pattern).
Changes:
Adjust transcription printing to skip empty partials and treat is_final as a marker (not a stop condition).
Increase PortAudio chunk size / queue depth to reduce callback frequency and overflow risk.