Record and email audio files on the iPhone? - iphone

is it possible to record the sound in iPhone 2.1 and then attache it in mail? I have to record any sound on one button click. Please help for that.

I believe that the iPhone 2.1 SDK does not have any APIs to attach an audio clip in mail.

I believe you could do this if you wrote your own email app and were able to properly encode the data from our audio file as an attachment. From what I have read the current sandbox environment for the Mail is only allowed to look into pictures for attachments.

Related

send voice message using objective-c iphone

Is there any way to send recorded voice in message programmatically using objective-c and iPhone.
I am sending text message using messageUI framework but now I want to send voice message too.
There's nothing straightforward built for voice messages built into iOS, unlike "MFMessageComposeViewController". You'll have to write your own voice recording code or make use of something open source or third party/commercial. Here's a related question that talks about how to record audio through iOS.
Plus this depends on how you want the recipient to receive the recorded voice message? A mp3 or some other audio file sent via e-mail (which you can do using the MFMailComposeViewCOntroller) or some other way?

Sending audio in real time from iphone to server?

Is it possible to send audio from iphone to server in real time? I am using AQRecorder which records the data and saves it on a file.I was wondering if there was a way of sending the recorded audio to server in real time.I want to send the audio while it is being recorded.Is it possible? Can we redirect the recorded stream to the server instead of a file?
NOTE:I am using the speak here code from apple https://developer.apple.com/library/ios/samplecode/speakhere/Listings/Classes_AQRecorder_mm.html
Nate is right. A lot of legitimate apps do that. So, you don't even need to have a jailbroken device.
Take a look at this question: Live streaming audio from iPhone
You may be interested to look into open source SIP clients for iOS:
https://code.google.com/p/siphon/
http://www.pjsip.org
http://www.linphone.org/eng/linphone/news/linphone-for-iphone.html

how to attach a Audio file to the MFMessage Composer

I an new to Iphone developing now i have a problem with MFMessageComposer how to attach a audio file with message like MMS .I knew how to attach attachments to MFMailComposeViewController but i want for MFMessageComposeViewController please help...
Thanks in Advance
No ,you just can't share images,video or audio file s from your app in iOS
This is perhaps because of the infringement issues
MFMessageComposeViewController has a couple of addAttachment... methods that should be useful for what you are trying to do.

Record short Audio and Upload on the iPhone

Heh guys,
is it possible to record a small voice audio on the iPhone and upload it to a server?!
Any good sources on this topic? (Audio Recording).
Thanks,
Henrik
You can find the code to record audio from
"http://developer.apple.com/iphone/library/samplecode/SpeakHere/History/History.html#//apple_ref/doc/uid/DTS40007802-RevisionHistory-DontLinkElementID_1" which is provided by apple.
After recording audio, you can convert it to base64 and upload it to server by web service.
Cheers,
Pragnesh

Saving an audio file in documents directory with the iphone

I want to develop an iphone application where I have to save the audio file and later mail it.
Can you give me some idea regarding this like the format in which it should be saved so that it can be played later anytime and also mailed?
Please let me know the step wise process or any sample code would be helpful.
Apple has a nice example (called Speakhere) to record and save audio files:
http://developer.apple.com/iphone/library/samplecode/SpeakHere/index.html
In order to send e-mail:
Follow Jasarien's post.
The Apple Example suggested by Ahmet is a good reference for recording and saving the sound clip.
To email it, look at the documentation for the MessageUI framework. The class you'll want to use is MFMailComposerViewController.
You can use that class to set recipients, subject, body and attatchments.