Open emj365 opened 9 years ago
Found a Cordova plugin to do that: http://plugins.cordova.io/#/package/org.apache.cordova.media-capture http://cordova.apache.org/docs/en/2.4.0/cordova_media_capture_capture.md.html#capture.captureAudio
But that will show a native recording UI. User need starts and submits recording manually.
Others I can find but don't know how to make those work: https://github.com/voicekick/cordova-plugin-microphone https://github.com/CirrusTech/cordova-audiorecorder-plugin
http://stackoverflow.com/questions/9371479/voice-record-on-mobile-web-application
Good question but no answer.
https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-audioCapture It can use getUserMedia API through Android CrossWalk.
https://github.com/CirrusTech/cordova-audiorecorder-plugin This will work like API.
Create our own plugin as recorder:
iOS or Android >> wave >> JS >> mp3 mp3 >> WebView >> audiotag >> iOS or Android
Encode mp3 in JS, resources: https://github.com/akrennmair/libmp3lame-js https://github.com/akrennmair/speech-to-server
iOS: http://stackoverflow.com/questions/7279643/record-audio-on-iphone-with-smallest-file-size Android: http://developer.android.com/guide/appendix/media-formats.html
http://stackoverflow.com/questions/15568884/how-can-i-use-html5-audio-tag-to-play-aac-file
Tool:
Record:
WAV > MP3 > Base64 MP3 > upload
Playback in App:
download form server > Base64 MP3 > Base64 MP3 Player(flash) > play
Playback in SNS App:
download form server > MP3 > audio.js > play
Record:
AAC(in MP4) > upload > MP3
Playback:
iOS MP3 with audio tag
Android MP3 with audio tag (crosswalk)
There is discuss in ionic forum about recording: http://forum.ionicframework.com/t/record-audio-compress-convert-and-upload/4100