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

Feat/detect voice activity #25

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Feat/detect voice activity #25

merged 2 commits into from
Oct 9, 2024

Conversation

felipem1210
Copy link
Owner

@felipem1210 felipem1210 commented Oct 8, 2024

Closes #18

  • Implemented new channels playingAudioCh, userBeginSpeakingCh and audioInterruptCh to determine when person began to speak while playing audio, and setting an interrupt flag so the audio stops playing
  • Implemented new go routine to set this interrupt channel
  • Changed the sendAudio function to read from the interrupt channel and cut the audio play. Also the sendAudio is executed as a new go routine so it does paralel the play and the audio process from asterisk.

@felipem1210 felipem1210 merged commit b587029 into main Oct 9, 2024
@felipem1210 felipem1210 deleted the feat/detect-voice-activity branch October 9, 2024 15:54
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.

Voice activity/silence detection
1 participant