Windows Phone 8.1 audio format conversion - windows-phone-8.1

How can we convert audio in WP 8.1 from one format to another in a Memory Stream?
Ex. convert MP3 file to WAV (PCM).
I checked the following:
NAudio is not yet supported on WP 8.1.
The Media Foundation just supports a subset of APIs, and cannot be used for converting from one format to another.
Appreciate your help.

Did you try out the MediaTranscoder class for the conversion?
Reference: Compress wav file to wma on Windows Phone 8

Related

How to read shape files on Windows phone 8

Is there any library to read and write shape files (*.shp) and dbf file from internal storage or isolated storage in windows phone 8 SDK?
There are no ESRI SHP file readers that are included in the standard toolkit for Windows Phone. You can write your own reader, search for a library that will work with WP, or someone else may have an idea of how to do this.
From here:
http://social.msdn.microsoft.com/forums/wpapps/en-US/7d2eb822-b871-4c02-9cf2-3bf5b0d1add2/windows-phone-8-it-is-somehow-possible-to-read-a-shape-file-and-display-on-windows-phone-8-map
Looks like Syncfusion can:
http://www.syncfusion.com/products/windows-phone/maps

How to merge to sound files in WP8?

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.

Is it possible to save pdf file in media library in Windows phone8

Is it possible to save a PDF file to the media library in Windows Phone 8? If it is, how do I do that?
Media Library allows you to save Images. That's it. No PDFs and nothing else

Creating mp4 file with Media Foundation fails on certain machines

I have a Windows Store app in which I use Media Foundation to create mp4 files. I use the function MFCreateSinkWriterFromURL to create the file and the function IMFSinkWriter.WriteSample to write audio and video data to the file. This all works fine on my DELL laptop, my Surface tablet. So these mp4 files play well on all machines. When the app runs on an ASUS ME400C tablet, it creates an mp4 file, but the file can not be played back on that machine or on any other machine. So the app is on all machines the same (downloaded from the store), but the encoding is different.
If I open the file in TopoEdit tool, I get the following error: Failed to create source node. The byte stream type of the given URL is unsupported.
How to find out what the problem is with the mp4 file created by the Asus machine? Are there tools that can help me analyzing that file?
Just in case someone is interested. I have here a mp4 created with an Asus machine
https://skydrive.live.com/redir?resid=9A6F31F60861DD2C!449&authkey=!AJVXFclI4BoJs0o
and a mp4 created with my Dell laptop here
https://skydrive.live.com/redir?resid=9A6F31F60861DD2C!450&authkey=!AKtrfkDprZyJJI0
Regards
Ronald
Use MediaInfo or QuickTime to check the format of the file
Asus.mp4 file is corrupted one. This is file is not opening in VLC, Media Player and Quick Time.If you right click the file and check the Properties->Details you will find Video and Audio section empty.While creating the file some where your code is failing or file properties is not properly set. It is able to create the file but certain properties is missing.Use MFTrace to find that.

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.