lamemp3

How to convert wav file to mp3 in memory?

混江龙づ霸主 提交于 2021-02-07 09:13:07
问题 I have an application written using c# on the top of Asp.Net MVC 5 framework. My objective is to make a call to 3rd party service to download a wave file. Then I want to convert this file into mp3. Finally, I want to return the mp3 file as (byte[]) to allow the user to download it directly from memory. Here is how my code will end up which allow the user to download the converted file from the memory public ActionResult Download(int? id) { // Download and convert the file // the variable

How to convert wav file to mp3 in memory?

烂漫一生 提交于 2021-02-07 09:12:49
问题 I have an application written using c# on the top of Asp.Net MVC 5 framework. My objective is to make a call to 3rd party service to download a wave file. Then I want to convert this file into mp3. Finally, I want to return the mp3 file as (byte[]) to allow the user to download it directly from memory. Here is how my code will end up which allow the user to download the converted file from the memory public ActionResult Download(int? id) { // Download and convert the file // the variable

converting pcm file to mp3 using liblame in android

旧时模样 提交于 2020-01-10 03:07:08
问题 I am using SimpleLameLibForAndroid to convert a pcm file that created using AudioRecord class in android,to mp3. I read the pcm file and encoded it into mp3 and then I write it in the file. the result mp3 file but is not correct and it has a lot of noise on it and really hard to understand that it was recorded pcm file. these are recorded audio specifications(pcm file): private static final int RECORDER_SAMPLERATE = 8000; private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN

converting pcm file to mp3 using liblame in android

巧了我就是萌 提交于 2019-11-29 11:17:19
I am using SimpleLameLibForAndroid to convert a pcm file that created using AudioRecord class in android,to mp3. I read the pcm file and encoded it into mp3 and then I write it in the file. the result mp3 file but is not correct and it has a lot of noise on it and really hard to understand that it was recorded pcm file. these are recorded audio specifications(pcm file): private static final int RECORDER_SAMPLERATE = 8000; private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO; private static final int RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT; int