Questions tagged [amr]

The Adaptive Multi-Rate audio codec or AMR for short is a patented audio data compression scheme optimized for speech coding.

140 questions
2
votes
1 answer

Issue in FFT calculation for AMR files

I’m trying to develop an application that is capable of identifying a sound clip of an animal. What I’m doing is that I’m taking in an AMR recording and reading the byte array from it and sending those data through FFT and calculate amplitudes…
2
votes
1 answer

How to play AMR audio file on iPhone

I have tried using AVAudioPlayer , MPMoviePlayer to play AMR files but unable to play them. AVAudioPlayer play method always returns NO for AMR files and MPMoveiPlayer post MPMoviePlayerPlaybackDidFinishNotification as soon as it is played. Even…
Ansh
  • 21
  • 1
  • 1
  • 4
2
votes
1 answer

Convert pcm data to low size audio type - Java/Android

In my android app ,I need to convert raw pcm data (wav file) to different music type because the pcm file is 40mb for 4-5 min. Does anyone can recommend to what type i need to convert? mp3? amr? aac? Also, how can I convert? From what I read, there…
gilush14
  • 485
  • 1
  • 9
  • 20
2
votes
1 answer

Record AMR Files on the iPhone

I've been using AVAudioRecorder to record audios on the iPhone, but the file is too large to upload to the server on an EDGE network. I found that If I could compress the audio to AMR format, the size would be dramatically reduced compared with the…
nonamelive
  • 6,510
  • 8
  • 40
  • 47
2
votes
0 answers

How to packetize AMR data in a RTP packet

I am reading AMR payload from amr file, and then sending the same in RTP packet. In amr file, after file header, frame header + speech frames are present. The frame header portion in file looks as below. 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ …
Austin
  • 1,709
  • 20
  • 40
2
votes
3 answers

Encode/decode AMR

I need to create custom classes for PCMtoAMR and AMRtoPCM conversion.(I don't have any framework which I can use for this conversion) Does anyone know of anything already done and available as open source. The language should preferably be java…
gop
  • 2,150
  • 5
  • 26
  • 54
2
votes
0 answers

Android MediaCodec onOutputBufferAvailable - how to control callback frequency?

I'm using MediaCodec with targetSdkVersion 28 (Android 9) to convert the PCM stream from AudioRecorder into AMR for a 3GPP/GSM VoIP application. The onInputBufferAvailable() callback calls AudioRecord.read(bb, bb.limit()) to queue the PCM samples…
kbro
  • 4,754
  • 7
  • 29
  • 40
2
votes
1 answer

Playing a sound file on website media player

Hey all, i'm new to web development so i'm really dumb when it comes to tools for working on it. I have .amr files recorded from my BB application that are sent and saved on a server. I want to be able to play these files via a webplayer on a…
8vius
  • 5,786
  • 14
  • 74
  • 136
2
votes
1 answer

How to convert MP3 to AMR using ffmpeg in windows commandline

Using windows based ffmpeg to convert MP3 to AMR. For some reason it fails with error as given below. Don't know how to given the correct parameters for AMR. C:\Program Files (x86)\AMR to MP3 Converter>ffmpeg -i mfile.mp3 -ar 8000 -ab 12.2k…
Kaymatrix
  • 615
  • 2
  • 8
  • 16
2
votes
1 answer

How to convert AMR sound stream to PCM uncompressed stream in .NET

I need to convert an AMR (Adaptive Multi-Rate) audio file recorded in a phone (as a Stream object) to a PCM uncompressed wav audio Stream so it can be processed afterwards for speech recognition. The Speech Recognition doesn't like the AMR format.…
Switch Commerce
  • 109
  • 2
  • 4
2
votes
0 answers

How to read .amr files with python?

Is there a way of reading AMR (audio) files with python? Are there python modules ready for this task? Or do i have to parse the AMR as a binary file? I have been trying to search online with no successes.
yaron
  • 31
  • 2
2
votes
0 answers

How to add AMRnb codec to pjsip and sipek?

I want to add AMR nb codec to pjsip. I download pjsip project from it's site in vs2012, and I have a amrNB project in vs2012, but how to add this project to pjsip? I need amrnb with rtpmap=122. When I follow steps of this, AMR with rtpmap=105 …
2
votes
1 answer

How to convert amr files to mp3 using C#

I am using NAudio MFT to convert different audio formats to MP3. Now i want to convert amr file to MP3 using Naudio MFT. But, when i given amr file as input to MFT, it has thrown following exception "Exception from HRESULT: 0xC00D36C4". Is there any…
Champ
  • 118
  • 2
  • 6
2
votes
1 answer

Extract audio frames from AMR-NB file

I wrote an algorithm to extract each frame from an AMR file. I considered the first 6 bytes of the file to be the header and the following information is audio frames. Each audio frame is composed by frame header and audio data. Frame header tells…
Alexandru Circus
  • 5,478
  • 7
  • 52
  • 89
2
votes
2 answers

Android - get duration of AMR audio file programmatically

How do I get duration of an AMR file? mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); I want to get the duration of the file after the recording is stopped WITHOUT…
Alexandru Circus
  • 5,478
  • 7
  • 52
  • 89
1 2
3
9 10