How to merge to sound files in WP8? - windows-phone-8

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.

Related

Export dynamic audio from Flash

I'm generating a 44100hz dynamic audio stream in Flash using a flash.media.Sound object and the SAMPLE_DATA event. I'd like to be able to analyze the output instead of just listening to it.
What would be the most straightforward way of converting my Flash stream of float samples to an audio file, in a standard format that can be opened by an audio editor? Is there any audio format that would be particularly suitable for this?
If you don't want to listen to it, there's no need to use Sound or the Event.SAMPLE_DATA at all. Just create the numbers and store them in a ByteArray or other data structure.
Is there any audio format that would be particularly suitable for this?
A format that can be opened by your audio editor would be preferable.
Otherwise, this totally depends on what you want to do with the sound data.
What would be the most straightforward way of converting my Flash stream of float samples to an audio file, in a standard format that can be opened by an audio editor?
To use an existing library that encodes the data into the specified format.
tonfall supports "various audio formats Wav AIFF RAW PCM (no header) "Encoder/Decoder
WaveEncoder from Nicolas Bretin apparently encodes to WAV
Of course, if you know the specification, you can write your own encoder.

Flash record sound locally

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).

Recording from Mic and Exporting / POSTing it as FLAC format? - Desktop AIR, AS3, Flex

Hi all I'm fairly new to handling voice / mic in AS3 but I am currently in a situation where I need to retrieve a voice input via the mic, and then I'd have to be able to get it as a FLAC audio format then POST it to our server.
Would be nice if I wouldn't need to write the binary FLAC data to a file before POSTing but if that's something unavoidable, I guess it's all okay.
I will be developing it for a Mac and a PC on the Adobe AIR platform. NOT FOR THE MOBILE (yet).
Thanks!
You can use this library. According to the authors, you can convert raw data (retrieved directly from micro, here, they use the term rawPCMByteArray - Pulse-code modulation), to .flac file.

Record voice and save it to mp3 file

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.

Can i save byteArray to mp3 file?

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.