开发者

iphone voice memos 'ping' sound

I'm writing a voice recording application, and I'd like to play the ping-ping sound that the voice memos program plays wh开发者_如何转开发en it finishes recording. Is there any way to accomplish this programatically? If not, does anyone know where I can find the sound? Thanks!


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.


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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜