Is it possible to record (5 seconds) a voice with the microphone and save it as a mp3 file WITHOUT sending data to the server? I would like to save the file with FileReference (some times ago I did an experiment saving a bitmap and it worked).
You can use MicRecorder class for recording the sound, and as3lameencoder for encoding the recorded byte stream into mp3.
Related
I've to develop a mp3 audio cutter(similar to mp3cut.net), in that user can cut the audio from beginning or from end.
I'm able to open and save the .mp3 file on local system without modifying the bytearray. But need to save the file after trimming. I tried to extract the bytearray using sound.extract() but after saving the bytearray .mp3 file is not playing.
any help is greatly appreciated
Thanks
Are you encoding the bytearray or are you saving the bytearray to file?
You need encode the bytearray
try with this:
https://github.com/kikko/Shine-MP3-Encoder-on-AS3-Alchemy
I use AS3 to record and send users sound to server. I want to reduce the size of recorded file.I have used ShineMP3Encoder to convert recorded WAV to MP3. Is there a way to reduce quality of outputted MP3 file?
you can check update over here: https://github.com/emj365/Shine-MP3-Encoder-on-AS3-Alchemy/commit/89bc8fe39f5bbecff745ee918095bd5c62c04eea
It it possible to merge sound captured from microphone with an mp3 file selected and save as a new mp3 file in windows phone 8?
Does naudio have wp8 support??
Possible, yes. But you would have to decode the mp3 file into raw PCM data that matches the waveformat of the captured audio data, merge the pcm data (either an additive or mean merge or you'd simply add the captured audio data to the end of the pcm data from the mp3) and encode your new pcm data to MP3. There are plenty of libraries out there that support encoding/decoding of mp3 data and you might even find one that would let you decode/re-encode only the sub-sample of the mp3 file that you're interested in merging with captured audio data.
NAudio has, AFAIK, no WP8 support. I believe that they're currently working on Windows Store App support.
You would need to use WASAPI - which is a native-only API - or the Microsoft.XNA.Audio.Microphone-class to capture data.
Using flex,As can we record sound from microphone and store locally and and upload later?? Is there any relevant links to this please indicate
Check this link for how to use the microphone to record and use FileReference to save the recording
It is possible to record audio using the Microphone API SAMPLE_DATA event. The data property of the event is a ByteArray with the audio data.
A web based Flash application could copy these data samples to a data structure in memory and prompt the user to save the data to a local file. An AIR application would be able to write the data to the file system or SQL database directly.
See the links below for accessing audio from the microphone in ActionScript:
http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d1d.html
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Microphone.html
It may help to encode the data in a standardised format to help with reading and editing later (WAV or PCM). You may also want to use compression to reduce the file size for transmission (eg: Ogg Vorbis codec from Adobe).
Well, i am recording the voice from heaphone and the sound data is stored in ByteArray at runtime, now can i stored as mp3 ??
i want to save as mp3 file on the client system.. For that, i think i have to use air application.. Am i right?
I found this link where someone used Alchemy to convert to MP3.