Beep iphone "ping"

I am writing a voice recording application and I would like to play the ping-ping sound that the voice memo program plays when it finishes recording. Is there any way to do this programmatically? If not, does anyone know where I can find the sound? Thank!

+3
source share
2 answers

You can always use a cable to connect your iPhone to a computer, play ping sound and record it on your computer. I do not know if there are copyright issues at the same time.

One alternative is to use one of the contactless sound archives you can find on the Internet.

, , , .

+1

:

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

Source: https://habr.com/ru/post/1729660/


All Articles