It looks like getUserMedia()
is now the way to go for capturing audio recordings from a user.
But that leaves out Safari and iOS Safari.
Originally I had at least planned to included iOS Safari by taking advantage of the HTML Media Capture spec. From everything I've read, this is suppose to work. But from my tests, iOS will only offer the photo/video options. I've tried the following syntaxes with no luck:
<input type="file" accept="audio/*;capture=microphone" />
<input type="file" accept="audio/*" capture="microphone">
<input type="file" accept="audio/*" />
Capturing an image works as expected, though, allowing the user to use the camera:
<input type="file" accept="image/*" />
What do I need to change in order to get iOS Safari to work with HTML Media Capture when needing access to the microphone?
And are there any other options available for both Safari and iOS Safari other than what I'm already attempting to do?