Audio recording in ogg format ios - ios

I am developing an iOS application and it has brought me at a point that em stuck.. I have to do audio recording in .ogg format as i have to send it over to a web module.. I am able to record in .m4a format with a very good compression and size but now i have to deliver it in .ogg format..
I have searched alot on the internet and havent found any good solution or way to do so.
Any help in this regard would be appreciated.
Thanks in advance.

Related

Swift: (Live) Streaming Audio Between Devices

Just from my own general curiosity, I was wanting to see if it was possible to stream LIVE audio between iOS devices by online using bluetooth or by "enslaving" one device over a local network—basically the same experience as a phone/Skype call. I have found tuts/information on how to stream a saved file and solutions that use a server side solution, but not exactly what I am looking for.
Anyone with solutions, information, or what not to get me started would be much appreciated.

iOS Playing Video from memorystream

My iOS app downloading encrypted mp4 file from server to my document folder.
I'll decrypt mp4 to my Memory and play video from memory.
For security, my app should not make decrypted mp4 file to doc folder.
How can I play Video from memorystream?
I'm trying with FFMpeg..or is there any other solutions?
Can I customize avio_open2() and avformat_open_input()?
Please help me....
Set AVFormatContext->pb to a self-created AVIOContext that wraps your memory stream. Most important are the read_packet() and seek() function callbacks, which your application should implement to do actual packet reading and seeking for the (mp4) demuxer. You can also look at earlier questions along the same path.

Best way to convert RTMP to MP4

I need to play an RTMP streaming in a website.
I want to run on iOS devices, but I know RTMP does not run on it.
So, my idea is to convert RTMP to some audio file (mp4, for example) and send it to the user and to play with HTML5. Do you have a better idea to do this work? I have PHP5 at server, but I have no idea about how to convert a continuous data (streaming) in a HTML5 compatible audio. For now, it's only an idea I have...
Thanks in advance.
There is currently no live format that works with html 5 . Mp4 can not be used as a live source as it is not a streaming format. The only built in support for Live audio/video on iOS is HLS.

Save audio stream to mp3 file (iOS)

I have an AVSpeechSynthesizer which converts text to speech, but i've encountered a problem.
I don't know how to save the audio file that it generates to a music file, which I would quite like to be able to do!
So here's my question, how do you save the AVSpeechSynthesizer output and if this isn't possible, can I us AVFoundation, CoreMedia or other public API to capture the output of the speakers, but before it has come out?
Thanks!
Unfortunately no, there is no public API available to capture the speaker output and looking over the docs for AVSpeechSynthesizer and related classes I don't see a way to capture any audio from it. You may want to look at 3rd party libraries to help with this.
Related questions:
Recording audio output only from speaker of iphone excluding microphone
Text-to-speech libraries for iPhone

iOS AudioStreamer - music not playing in full length

In recent work, I am using Matt Gallagher's AudioStreamer ( downloaded from here ) codes to make a music player in my App.
I have an XML file in my remote server I have hosted. This XML file has song title and songs' URL. My App gets the songs' title and URL and using Matt's AudioStreamer, it plays those songs but the problem is the song does not play in full length. Between 30 second to 1 minute, it stops playing and displays "no audio data found" pop up message.
Has anyone used Matt's API for audio stream (I am using here .mp3 files)?
Can anyone help me to fix this issue ?
Thanks
It could be a corrupt MP3 file - can you provide a link to the MP3 for me to test? I've written a more advanced AudioPlayer inspired by Matt's AudioStreamer (hosted here: https://code.google.com/p/audjustable/). I'd be interested in testing it against your files.

Resources