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

support for getting data off microphone #3517

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

support for getting data off microphone #3517

wants to merge 7 commits into from

Conversation

mmoskal
Copy link
Member

@mmoskal mmoskal commented Oct 29, 2020

This adds:

  • input.onSoundData(buf => ...)
  • input.soundSamplingPeriod()
  • input.setSoundSamplingPeriod()

The first one has to be implemented in pxt-microbit, not in extension, since it plugs into microphone pipeline before the level detector.

TODO:

  • sim support

@mmoskal mmoskal requested review from pelikhan and abchatra October 29, 2020 17:08
@jaustin
Copy link
Collaborator

jaustin commented Oct 30, 2020

@finneyj has a model for an input pipeline to make sure that these things don't cause breakages with the existing blocks/features and also doesn't break the oversampling switch as we go between mic only to mic and ADC. Worth discussing I think @mmoskal

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