Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked April 16th 2010 by Suresh Mohan
  • audio
  • compression
  • format
  • mp3
  • record
0 Comments

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

    — answered April 16th 2010 by u no
    permalink
    0 Comments
  • Any more info on this? I'm having the same problem.

    — answered September 14th 2010 by Kelly Redd
    permalink
    0 Comments
  • 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.

    — answered February 12th 2013 by Eric Dean
    permalink
    0 Comments
  • How to record audio from the linear output instead of device microphone?

    — answered February 20th 2013 by Carlos Henrique Lustosa Zinato
    permalink
    0 Comments
  • 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.

    — answered August 4th 2011 by Alexandru Budin
    permalink
    1 Comment
    • This link (http://www.codeboxed.com/2011/08/titanium-module-for-android-audio-recording/) is not working. can you please provide a working url

      — commented May 23rd 2012 by Harsh Punnoose
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.