How to record audio in web page using Windows Phone's microphone?
Short explanation
Recording audio from web app using just mobile IE is not possible. You could make a separate audio recorder app and use it with browser's file API, but it would require users to first download a audio recorder before using the web app. This would be supported only in IE11.
Longer explanation
With web techs you would have following options:
- Get audio from server
- Record audio using Flash/Silverlight
- Record audio using HTML5 APIs
- Use IEs own custom API for audio record(as far as I know, there is no such API)
1. Option
It would be possible to provide a file picker where user can upload their audio file to server.
IE 9 and 10 versios do not support file api. IE 11 supports file api. This was tested using simple file API demo. Also see http://viljamis.com/blog/2012/file-upload-support-on-mobile/ and http://caniuse.com/fileapi
To seamlessly integrate audio recording to web app running on IE 11, you would need to have native audio recorder app which would appear in the file upload's "Choose an app" - app picker. This option wouldn't be so user friendly. Also it should be noted that mobile IEs do not support audio API which can be used to manipulate audio source
2. Option
Flash is not supported or developed for mobile devices anymore: http://blogs.adobe.com/conversations/2011/11/flash-focus.html
Quote from the source:
Our future work with Flash on mobile devices will be focused on enabling Flash developers to package native apps with Adobe AIR for all the major app stores. We will no longer continue to develop Flash Player in the browser to work with new mobile device configurations (chipset, browser, OS version, etc.) following the upcoming release of Flash Player 11.1 for Android and BlackBerry PlayBook. We will of course continue to provide critical bug fixes and security updates for existing device configurations. We will also allow our source code licensees to continue working on and release their own implementations.
Silverlight plugin for IE is not apparently* available for any mobile IE. It is possible to create Windows Phone apps with Silverlight, but it is a separate from Silverlight browser plugin, which would be needed to record audio in web browser.
Apparently means that I didn't find any references of Silverlight plugin for mobile IE. Some useful links:
- Silverlight website on mobile phone
- Q&A about silverlight support
- Integrating Silverlight with a Web Page
- Silverlight.js (deprecated)
3. Option
IEs do not support getUserMedia API which is needed for capturing audio/video. I also confirmed this by testing mobile IE10 and IE11 using these demo-pages: demo1 and demo2. These demo pages worked with mobile Chrome. See also How to record audio on webpage (iOS, Android, PC/Mac) - no flash
Conclusion
Recording audio from web app using just mobile IE is not possible. You could make a separate audio recorder app and use it with browser's file API, but it would require users to first download a audio recorder before using the web app. This would be supported only in IE11.
Record Audio on Website that works on all browsers and iOS
I found a technique that finally worked on Chrome, Firefox, and iOS Safari. There is an issue with getUserMedia in Safari though but I'm looking into that now.
https://github.com/GersonRosales/Record-Audios-and-Videos-with-getUserMedia
Record audio from the microphone in the default mobile browser on iOS and Android
You can use the getUserMedia() api.
A nice introduction is available here.
Not all browsers support it yet, though, so make sure it works for your desired application.
Related Topics
How to Get Canonical Id from Gcm
Input Field Hidden When Soft Keyboard Appears in Phonegap
Android - Correct Use of Invalidateoptionsmenu()
Insufficent_Storage_Memory Message While Install 50 Mb APK in Emulator
How to Add Network_Security_Config.Xml to Manifest in Expo App Without Ejecting
Fragment View in Viewpager Is Not Restored When Resuming
Android - Expandable Textview with Animation
Gstreamer Examples in Android Studio
Using Katzer Local Notification in Ibm Worklight
What Are The Default Color Values for The Holo Theme on Android 4.0
Call Recorder Not Working in Android 10 (Q)
Add Support Library to Android Studio Project