Record MP3 using Titanium.Media.AudioRecorder
What is the proper setting for the following properties if you want to record the audio in mp3 format?
Snippet from sound_record.js in KitchenSink project.
var recording = Ti.Media.createAudioRecorder();
recording.compression = Ti.Media.AUDIO_FORMAT_ULAW;
recording.format = Ti.Media.AUDIO_FILEFORMAT_WAVE;
Tried:
recording.compression = Ti.Media.AUDIO_FORMAT_ULAW;
recording.format = Ti.Media.AUDIO_FILEFORMAT_MP3;
but the simulator did not like this. It doesn't stop recording.
Thanks in advance for your help.
~sm
5 Answers
-
don't know, but can't imagine that you're able to record mp3. Ti would need an encoder licence for that. try wav.
–u -
Any more info on this? I'm having the same problem.
-
Go to vocalrank.com. That android audio recording module picks up where Codeboxed stopped. It works with TiStudio 3.0, and targets Android SDK 10. There's a sample apk available for download and more info about the Android audio recorder module.
-
How to record audio from the linear output instead of device microphone?
-
Now recording is possible on Android, natively, without Intents.
We just released the Audio Recorder Titanium Module for Android.
You can see more details on Codeboxed Titanium Audio Recorder Module
Follow us on Twitter: @codeboxed for more updates.