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

Use AudioWorklet to record microphone input #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrBearman64
Copy link

Replace old dependency using ScriptNode Processor with AudioWorklet to record microphone input. This is a solution for Issue #141.

  • recorder.js contains the AudioWorklet and sends audio packets via postMessage
  • voice.js loads AudioWorklet, receives audio packets of recorder.js and forwards them to the voice pipeline
  • voice.js also discards voice packets that needed too long between the postMessage of recorder.js and the recorderNode.port.onMessage in voice.js. This delay is hard-coded.
  • package.json contains new dep to load AudioWorklet
  • webpack.config.js includes AudioWorklet into the build process

@MrBearman64 MrBearman64 force-pushed the audioworklet-microphone branch from 2659dd2 to 8da4553 Compare June 14, 2021 15: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.

1 participant