I'm writing a voice recording application, and I'd like to play the ping-ping sound that the voice memos program plays when it finishes recording. Is there any way to accomplish this programatically? If not, does anyone know where I can find the sound? Thanks!
+1
A:
You could always use a cable to connect your iPhone to your computer, play the ping sound and record it on your computer. I don't know if there are copyright issues with doing this.
One alternative is to use one of the royalty-free sound archives you can find on the web.
If it were me, I'd just recreate the sound with a tone generator and an envelope, and copy and paste it to make it ping twice.
lucius
2010-02-10 06:45:19
yeah, i ended up just recording it as you described
Adam
2010-02-28 05:07:08
A:
i would suggest this: you must first import the audio framework in your project and add the sound to the bundle
SystemSoundID soundID;
NSString *sound_string= [NSString stringWithFormat:@"%@%@", [[NSBundle mainBundle] resourcePath], @"/sound.aif"];
NSURL *sound_url= [NSURL fileURLWithPath:sound_string];
AudioServicesCreateSystemSoundID((CFURLRef)sound_url, &soundID);
AudioServicesPlayAlertSound(soundID);
PirosB3
2010-02-13 19:40:32