¡@

Home 

2014/10/15 ¤U¤È 10:13:12

iphone Programming Glossary: recordedtmpfile

iPhone App : recording audio in mp3

http://stackoverflow.com/questions/10549023/iphone-app-recording-audio-in-mp3

documentsDirectory path objectAtIndex 0 NSString myDBnew documentsDirectory stringByAppendingPathComponent @ test.wav recordedTmpFile NSURL fileURLWithPath myDBnew NSLog @ Using File called @ recordedTmpFile recorder AVAudioRecorder alloc initWithURL recordedTmpFile.. stringByAppendingPathComponent @ test.wav recordedTmpFile NSURL fileURLWithPath myDBnew NSLog @ Using File called @ recordedTmpFile recorder AVAudioRecorder alloc initWithURL recordedTmpFile settings recordSetting error error recorder setDelegate self.. NSURL fileURLWithPath myDBnew NSLog @ Using File called @ recordedTmpFile recorder AVAudioRecorder alloc initWithURL recordedTmpFile settings recordSetting error error recorder setDelegate self recorder prepareToRecord recorder record Above code is recording..

Record the sound and play it back with changed pitch

http://stackoverflow.com/questions/10549317/record-the-sound-and-play-it-back-with-changed-pitch

44100.0 forKey AVSampleRateKey recordSetting setValue NSNumber numberWithInt 2 forKey AVNumberOfChannelsKey recordedTmpFile NSURL fileURLWithPath NSTemporaryDirectory stringByAppendingPathComponent NSString stringWithFormat @ .0f. @ NSDate timeIntervalSinceReferenceDate.. @ .0f. @ NSDate timeIntervalSinceReferenceDate 1000.0 @ caf recorder AVAudioRecorder alloc initWithURL recordedTmpFile settings recordSetting error error recorder AVAudioRecorder alloc init recorder setDelegate self recorder updateMeters recorder.. YES docsDir dirPaths objectAtIndex 0 NSString soundFilePath docsDir stringByAppendingPathComponent @ audio.caf recordedTmpFile1 NSURL fileURLWithPath soundFilePath recordSetting1 NSMutableDictionary alloc init recordSetting1 NSDictionary dictionaryWithObjectsAndKeys..

how to upload an audio file using HTTP POST from iPhone?

http://stackoverflow.com/questions/6199446/how-to-upload-an-audio-file-using-http-post-from-iphone

would be greatly appreciated. The code I am using at the iPhone end is NSData fileData NSData dataWithContentsOfURL recordedTmpFile NSURL url NSURL URLWithString @ http somelink.com upload.php NSMutableURLRequest request NSMutableURLRequest requestWithURL.. body appendData NSString stringWithFormat @ Content Disposition form data name userfile filename @ r n recordedTmpFile lastPathComponent dataUsingEncoding NSUTF8StringEncoding body appendData NSString stringWithString @ Content Type audio.. ASIFormDataRequest request ASIFormDataRequest requestWithURL url NSLog @ 3333 NSString request addFile recordedTmpFile forKey @ userfile request setRequestMethod @ POST request setDelegate self NSLog @ 555 request setTimeOutSeconds 500 request..

how to send audio file through http post to a server from ios?

http://stackoverflow.com/questions/7750329/how-to-send-audio-file-through-http-post-to-a-server-from-ios

this is the following code i used to post to the server NSString filePath NSBundle mainBundle pathForResource @ recordedTmpFile ofType @ caf NSURL file NSURL alloc initFileURLWithPath filePath NSString filepath NSBundle mainBundle initWithContentsOfURL.. @ caf NSURL file NSURL alloc initFileURLWithPath filePath NSString filepath NSBundle mainBundle initWithContentsOfURL recordedTmpFile NSData postData NSData dataWithContentsOfFile filePath nsdata to string NSString newStr NSString stringWithUTF8String postData..