Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Record audio from microphone #13

Closed
3 tasks done
brianchirls opened this issue Feb 27, 2017 · 6 comments
Closed
3 tasks done

Record audio from microphone #13

brianchirls opened this issue Feb 27, 2017 · 6 comments
Assignees

Comments

@brianchirls
Copy link
Member

brianchirls commented Feb 27, 2017

  • Open mic with getUserMedia (new MediaDevices API)
  • Record to memory (when record button Record puppet show #4 is pressed until recording stops)
  • Upload to server as .wav

@cvan do you know if we can save these to the Firebase account? Or do we need another server we can upload to?

@cvan Do you know if there's a server somewhere that can re-encode these files to AAC, vorbis and/or Opus? I'm not sure if we can reliably do that on the client without messing with a massive emscripten module.

@cvan
Copy link
Collaborator

cvan commented Feb 27, 2017

@cvan yep, we can save static files to Firebase too :)

@brianchirls I'd use https://github.com/mido22/recordOpus or https://github.com/muaz-khan/RecordRTC/

@cvan
Copy link
Collaborator

cvan commented Feb 27, 2017

@brianchirls
Copy link
Member Author

@cvan FYI opus playback doesn't work in Safari or (I think?) Edge/IE. And it's broken in Chrome until at least mid-march release of v57. https://bugs.chromium.org/p/chromium/issues/detail?id=482934

@cvan
Copy link
Collaborator

cvan commented Mar 1, 2017

I actually didn't know that Opus isn't supported in Safari. It seems Edge is supported.

Hmm, what exactly in https://bugs.chromium.org/p/chromium/issues/detail?id=482934 affects Opus playback? I've seen Opus work in Chromium; do you have examples that don't work?

@brianchirls
Copy link
Member Author

@cvan The problem with Chrome is that you can't play Opus using Web Audio API - only in an <audio> element

@cvan
Copy link
Collaborator

cvan commented Mar 1, 2017

Yikes, that's quite a big bug, especially considering that Chromium doesn't support a whole bunch of proprietary codecs.

brianchirls added a commit that referenced this issue Mar 3, 2017
- Set up module for recording audio and all events
- Set up microphone
- Record to memory
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants