amr

cordova-plugin-media: Parse “.amr” Audio File on nodejs server

我是研究僧i 提交于 2019-12-06 01:47:08
问题 I'm using the cordova-plugin-media plugin to record audio-files from android and ios devices. However, android only allows to record the file in ".amr" ending, iOS on the otherside only supports ".wav". Playing the ".wav" from the iOS device on Android works, however, iOS doesn't support ".amr" files. That's why I have to convert them somehow. Since I couldn't find any cordova-plugin converting the ".amr" file on the clientside besides this one (which is based on an external API and

Stream as html5 audio or convert .amr to .ogg

别等时光非礼了梦想. 提交于 2019-12-04 11:04:10
I want to stream .amr audio files on my server. After spending a couple hours of research, it's clear to me that this is not feasible under the current state of html5 audio. Following this disappointing finding, I spent several additional hours looking for a simple way to convert .amr files to .ogg, with similarly disappointing results. I'm shocked that after well over 10 years of use, there is no simple way to play/convert files encoded under this standard, but can someone please help me to find a usable solution? The closest viable options seem to be sox and ffmpeg . I'm ideally looking for

getting error while converting wav to amr using ffmpeg

假如想象 提交于 2019-12-03 13:09:59
问题 I am using ffmpeg to convert amr to wav and wav to amr.Its successfully converting amr to wav but not viceversa. As ffmpeg is supporting amr encoder decoder, its giving error. ffmpeg -i testwav.wav audio.amr Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height 回答1: You can try setting the sample rate and bit rate. Amr supports only 8000Hz sample rate and 4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k bit rates: ffmpeg

getting error while converting wav to amr using ffmpeg

老子叫甜甜 提交于 2019-12-03 03:18:22
I am using ffmpeg to convert amr to wav and wav to amr.Its successfully converting amr to wav but not viceversa. As ffmpeg is supporting amr encoder decoder, its giving error. ffmpeg -i testwav.wav audio.amr Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height You can try setting the sample rate and bit rate. Amr supports only 8000Hz sample rate and 4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k bit rates: ffmpeg -i testwav.wav -ar 8000 -ab 12.2k audio.amr 来源: https://stackoverflow.com/questions/2559746/getting-error

Uploading .amr with codeigniter

帅比萌擦擦* 提交于 2019-12-02 07:11:47
I have been trying to get .arm upload to a website built in codeigniter. I know its not a default mine type so I added it with this: 'amr' => 'audio/amr', but its doesnt seem to be working with that. I also added it to the allowed types. Any idea if amr can be supported and if so what may I be doing wrong? Rocco You could try looking at system/libraries/Upload.php line 199: $this->_file_mime_type($_FILES[$field]); Change that line to $this->_file_mime_type($_FILES[$field]); var_dump($this->file_type); die(); Now you redo your uploading and see what the actual mime type the browser sent to your

Android: Reliable Audio Recording, All Devices

a 夏天 提交于 2019-12-01 00:22:35
Can someone please share with me a RELIABLE way to record audio across all devices using MediaRecorder? I'm simply trying to record a low-bitrate AMR format audio file, which according to google is standard across all devices. That's a bunch of crap. In my experience, there are many off-brand devices, tablets, etc. that will fail horribly when you use the default AudioEncoder.AMR_NB. My workaround is currently to use reflection to poll what encoders are in the superclass, then looping through each one with an errorlistener to see which one doesn't fail. Not only is this not graceful, but it

Android: Reliable Audio Recording, All Devices

廉价感情. 提交于 2019-11-30 19:49:57
问题 Can someone please share with me a RELIABLE way to record audio across all devices using MediaRecorder? I'm simply trying to record a low-bitrate AMR format audio file, which according to google is standard across all devices. That's a bunch of crap. In my experience, there are many off-brand devices, tablets, etc. that will fail horribly when you use the default AudioEncoder.AMR_NB. My workaround is currently to use reflection to poll what encoders are in the superclass, then looping through

How to play .amr file on a website?

大憨熊 提交于 2019-11-29 13:56:13
i have tried below code but not working ? does anyone play amr files in website <audio id="audio" src="upload/hello2.amr" preload="auto" controls muted loop autoplay> </audio> any plugin or player which can play amr file in web AMR file is not one of the supported audio files that html5 audio tag supports. Please see the list below for supported audio formats: http://en.wikipedia.org/wiki/HTML5_Audio#Supported_audio_coding_formats I would recommend you convert your amr file to mp3 or ogg and then upload it and play it on your server. original answer: Your code specifies an mp3 file. Are you

How to play .amr file on a website?

一世执手 提交于 2019-11-28 07:57:09
问题 i have tried below code but not working ? does anyone play amr files in website <audio id="audio" src="upload/hello2.amr" preload="auto" controls muted loop autoplay> </audio> any plugin or player which can play amr file in web 回答1: AMR file is not one of the supported audio files that html5 audio tag supports. Please see the list below for supported audio formats: http://en.wikipedia.org/wiki/HTML5_Audio#Supported_audio_coding_formats I would recommend you convert your amr file to mp3 or ogg

How can I record AMR audio format on the iPhone?

前提是你 提交于 2019-11-28 07:39:09
A voice recorder doesn't need uncompressed Linear PCM audio. Compressed AMR would do fine. The iPhone framework built for recording audio is simple enough, but the only examples I've found for setting up the audio format (which come from Apple) use LinearPCM. I've tried various other combinations of values, but can't seem to get anything to work. Does anybody have any code that actually records AMR ? Edit: The AMR format is one of the options for setting the data type, but the other options (packet size, frame size, etc.) don't seem to match up no matter what I set them to. Edit: Here's what I