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

Fix vad return zero output when nonzero pre_trigger_time is requested #3866

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

RoyJames
Copy link
Contributor

Differential Revision: D67532573

@RoyJames RoyJames requested a review from a team as a code owner December 20, 2024 20:48
Copy link

pytorch-bot bot commented Dec 20, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/audio/3866

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67532573

…pytorch#3866)

Summary:

The `pre_trigger_time` argument is supposed to preserve a certain amount of silence no matter how much silence is detected. Before this fix, passing `pre_trigger_time>0` would still return empty audio when `has_triggered=False`, which is problematic. This fix is backward compatible and addressed this issue.

Reviewed By: zsmeditation

Differential Revision: D67532573
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67532573

@facebook-github-bot facebook-github-bot merged commit b6d4675 into pytorch:main Dec 20, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants