Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed muted check in mic data handler #219

Merged
merged 3 commits into from
Jun 18, 2024
Merged

removed muted check in mic data handler #219

merged 3 commits into from
Jun 18, 2024

Conversation

garrettbo
Copy link
Contributor

Turns out that setting the enabled property on the MediaStreamTrack automatically takes care of generating 0-filled frames to represent silence. We can just remove the mute check on the data handler and let it do its thing. Ref: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled

@garrettbo garrettbo requested a review from zachkrall June 18, 2024 00:47
Copy link

vercel bot commented Jun 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
empathic-voice-api-js-next-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 1:51am

@garrettbo garrettbo requested a review from yinishi June 18, 2024 00:47
@garrettbo garrettbo merged commit ab7ca34 into main Jun 18, 2024
3 checks passed
@garrettbo garrettbo deleted the send-muted-audio branch June 18, 2024 02:12
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.

2 participants