Tag: audio

Passing Sound (wav) file to javascript from objective c

I am recording a sound file ( wav format) in objective C. I want to pass this back to Javascript using Objective C stringByEvaluatingJavaScriptFromString. I am thinking that I will have to convert wav file to base64 string to pass it to this function. Then I will have to convert base64 string back to (wav/blob) […]

how to add echo effect on audio file using objective-c

I am developing an application in which I want to add echo effect in recorded audio files using objective-c. I am using DIRAC to add other effect e.g. man to women, slow, fast. now I have to make Robot voice of recorded voice. for robot voice I need to add echo effect Please help me […]

objective c audio meter

Is it possible for xcode to have an audio level indicator? I want to do something like this: if (audioLevel = 100) { } or something similar… Any ideas?? Example code please? I’m VERY new to objective c so the more explaining the beter! 😀

How to play a sound in objective C iphone coding

I have an app I am working on and It uses some of the hardware sensors to provide data on screen, there is a Label that updates with the number. I want a sound to play whenever the number is above 100 or something. For example, say it was reading numbers then all of the […]

Playing sound effect with no latency in Objective-C

I want to play some simple sound effects when people press certain buttons in my app and I’ve tried several things, but I always get a latency that makes the sound seem out of sync. I’ve followed the tutorials here, so I’ve tried the build in Audio Services, but that had a latency and I’ve […]

Play Alert Sound (Vibrate) While AudioQueue is Recording

It seems that it’s not possible to play an alert sound AudioServicesPlayAlertSound(kSystemSoundID_Vibrate); while the AudioQueue is being used to record audio. Is that correct? Maybe I’m doing something wrong. Is there a way to do this other than pausing the recording? TIA.

How to set pitch of an audio file or recorded audio file in iphone sdk?

I am recoding a file or I have audio file I want to change the pitch and play the audio file. How can I set the pitch in a iphone program that is using objective-c. Please help me out of this. Thank you, Madan Mohan.

iPhone Sound: Adjust speed of playback of audio file while playing

is there a way to adjust the speed of the playback of an audio while playing in Objective C for the iPhone/iPod touch? Also would be interesting if playing a file backwards would be possible. Thanks Tom

CoreAudio AudioTimeStamp.mHostTime clock frequency?

I’m running into a bit of a problem with AudioTimeStamps on the iPhone. When I’m running my application in the simulator the AudioTimeStamp.mHostTime appears to be in nanoseconds (1,000,000,000th of a second) whereas when running on my device (iPod Touch 2G) the frequency appears to be about 6,000,000th of a second. It appears that on […]

AudioServicesPlaySystemSound Volume?

I have this code: -(void)createAndPlaySoundID: (NSString*)name { NSString *path = [NSString stringWithFormat: @”%@/%@”, [[NSBundle mainBundle] resourcePath], name]; NSURL* filePath = [NSURL fileURLWithPath: path isDirectory: NO]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((__bridge CFURLRef)filePath, &soundID); AudioServicesPlaySystemSound(soundID); } I call this like so: [self createAndPlaySoundID: @”mySound.caf”]; This works great, however I have no control over the volume. I simply want the […]