ios系统提示音的使用(不是铃声)
AudioServices
AudioServices is a group of C functions in AudioToolbox for playing short (≤30 seconds) sounds.
Predefined sounds
There are some predefined system sounds, for the system sound ID in the range 1000 to 2000 (decimal), as shown below (from 2.0 to 5.0 beta). The system sounds are all stored in
/System/Library/Audio/UISounds/.
| Sound ID | File name (iPhone) | File name (iPod Touch) | Category | Note |
|---|---|---|---|---|
| 1015 | Voicemail.caf | Voicemail.caf | - | Available since 2.1 |
| 1070 | ct-busy.caf | ct-busy.caf | AudioToneBusy | There was no category for this sound before 4.0. |
| 1074 | ct-call-waiting.caf | ct-call-waiting.caf | AudioToneCallWaiting | There was no category for this sound before 4.0. |
| 1071 | ct-congestion.caf | ct-congestion.caf | AudioToneCongestion | There was no category for this sound before 4.0. |
| 1073 | ct-error.caf | ct-error.caf | AudioToneError | There was no category for this sound before 4.0. |
| 1075 | ct-keytone2.caf | ct-keytone2.caf | AudioToneKey2 | There was no category for this sound before 4.0. |
| 1072 | ct-path-ack.caf | ct-path-ack.caf | AudioTonePathAcknowledge | There was no category for this sound before 4.0. |
| 1113 | begin_record.caf | begin_record.caf | BeginRecording | Available since 3.0 |
| 1117 | begin_video_record.caf | begin_video_record.caf | BeginVideoRecording | Available since 3.0 |
| 1005 | alarm.caf | sq_alarm.caf | CalendarAlert | |
| 1108 | photoShutter.caf | photoShutter.caf | CameraShutter | |
| 1106 | beep-beep.caf | sq_beep-beep.caf | ConnectedToPower | |
| 1114 | end_record.caf | end_record.caf | EndRecording | Available since 3.0 |
| 1118 | end_video_record.caf | end_video_record.caf | EndVideoRecording | Available since 3.0 |
| 1102 | - | - | FailedUnlock | |
| 1256 | short_low_high.caf | short_low_high.caf | Headset_AnswerCall | |
| 1258 | short_double_low.caf | short_double_low.caf | Headset_CallWaitingActions | |
| 1257 | short_double_low.caf | short_double_low.caf | Headset_EndCall | |
| 1255 | short_double_high.caf | short_double_high.caf | Headset_Redial | |
| 1254 | long_low_short_high.caf | long_low_short_high.caf | Headset_StartCall | |
| 1259 | middle_9_short_double_low.caf | middle_9_short_double_low.caf | Headset_TransitionEnd | |
| 1115 | jbl_ambiguous.caf | jbl_ambiguous.caf | JBL_Ambiguous | Available since 3.0 |
| 1110 | jbl_begin.caf | jbl_begin.caf | JBL_Begin | Available since 3.0 |
| 1112 | jbl_cancel.caf | jbl_cancel.caf | JBL_Cancel | Available since 3.0 |
| 1111 | jbl_confirm.caf | jbl_confirm.caf | JBL_Confirm | Available since 3.0 |
| 1116 | jbl_no_match.caf | jbl_no_match.caf | JBL_NoMatch | Available since 3.0 |
| 1306 | Tock.caf | sq_tock.caf | KeyPressClickPreview | The category was SystemSoundPreview before 3.2. |
| 1103 | Tink.caf | sq_tock.caf | KeyPressed | |
| 1104 | Tock.caf | sq_tock.caf | KeyPressed | |
| 1105 | Tock.caf | sq_tock.caf | KeyPressed | |
| 1006 | low_power.caf | low_power.caf | LowPower | |
| 1000 | new-mail.caf | new-mail.caf | MailReceived | |
| 1001 | mail-sent.caf | mail-sent.caf | MailSent | |
| 1057 | Tink.caf | Tink.caf | PINKeyPressed | |
| 1107 | RingerChanged.caf | RingerChanged.caf | RingerSwitchIndication | |
| 1350 | - | - | RingerVibeChanged | |
| 1100 | lock.caf | sq_lock.caf | ScreenLocked | |
| 1101 | unlock.caf | sq_lock.caf | ScreenUnlocked | |
| 1109 | shake.caf | shake.caf | ShakeToShuffle | Available since 3.0 |
| 1351 | - | - | SilentVibeChanged | |
| 1051 | SIMToolkitCallDropped.caf | SIMToolkitCallDropped.caf | SIMToolkitTone | |
| 1052 | SIMToolkitGeneralBeep.caf | SIMToolkitGeneralBeep.caf | SIMToolkitTone | |
| 1053 | SIMToolkitNegativeACK.caf | SIMToolkitNegativeACK.caf | SIMToolkitTone | |
| 1054 | SIMToolkitPositiveACK.caf | SIMToolkitPositiveACK.caf | SIMToolkitTone | |
| 1055 | SIMToolkitSMS.caf | SIMToolkitSMS.caf | SIMToolkitTone | |
| 1003 | ReceivedMessage.caf | ReceivedMessage.caf | SMSReceived | |
| 1007 | sms-received1.caf | sms-received1.caf | SMSReceived_Alert | |
| 1008 | sms-received2.caf | sms-received2.caf | SMSReceived_Alert | |
| 1009 | sms-received3.caf | sms-received3.caf | SMSReceived_Alert | |
| 1010 | sms-received4.caf | sms-received4.caf | SMSReceived_Alert | |
| 1012 | sms-received1.caf | sms-received1.caf | SMSReceived_Alert | |
| 1013 | sms-received5.caf | sms-received5.caf | SMSReceived_Alert | |
| 1014 | sms-received6.caf | sms-received6.caf | SMSReceived_Alert | |
| 1020 | Anticipate.caf | Anticipate.caf | SMSReceived_Alert | Available since 4.2 |
| 1021 | Bloom.caf | Bloom.caf | SMSReceived_Alert | Available since 4.2 |
| 1022 | Calypso.caf | Calypso.caf | SMSReceived_Alert | Available since 4.2 |
| 1023 | Choo_Choo.caf | Choo_Choo.caf | SMSReceived_Alert | Available since 4.2 |
| 1024 | Descent.caf | Descent.caf | SMSReceived_Alert | Available since 4.2 |
| 1025 | Fanfare.caf | Fanfare.caf | SMSReceived_Alert | Available since 4.2 |
| 1026 | Ladder.caf | Ladder.caf | SMSReceived_Alert | Available since 4.2 |
| 1027 | Minuet.caf | Minuet.caf | SMSReceived_Alert | Available since 4.2 |
| 1028 | News_Flash.caf | News_Flash.caf | SMSReceived_Alert | Available since 4.2 |
| 1029 | Noir.caf | Noir.caf | SMSReceived_Alert | Available since 4.2 |
| 1030 | Sherwood_Forest.caf | Sherwood_Forest.caf | SMSReceived_Alert | Available since 4.2 |
| 1031 | Spell.caf | Spell.caf | SMSReceived_Alert | Available since 4.2 |
| 1032 | Suspense.caf | Suspense.caf | SMSReceived_Alert | Available since 4.2 |
| 1033 | Telegraph.caf | Telegraph.caf | SMSReceived_Alert | Available since 4.2 |
| 1034 | Tiptoes.caf | Tiptoes.caf | SMSReceived_Alert | Available since 4.2 |
| 1035 | Typewriters.caf | Typewriters.caf | SMSReceived_Alert | Available since 4.2 |
| 1036 | Update.caf | Update.caf | SMSReceived_Alert | Available since 4.2 |
| 1307 | sms-received1.caf | sms-received1.caf | SMSReceived_Selection | |
| 1308 | sms-received2.caf | sms-received2.caf | SMSReceived_Selection | |
| 1309 | sms-received3.caf | sms-received3.caf | SMSReceived_Selection | |
| 1310 | sms-received4.caf | sms-received4.caf | SMSReceived_Selection | |
| 1312 | sms-received1.caf | sms-received1.caf | SMSReceived_Selection | |
| 1313 | sms-received5.caf | sms-received5.caf | SMSReceived_Selection | |
| 1314 | sms-received6.caf | sms-received6.caf | SMSReceived_Selection | |
| 1320 | Anticipate.caf | Anticipate.caf | SMSReceived_Selection | Available since 4.2 |
| 1321 | Bloom.caf | Bloom.caf | SMSReceived_Selection | Available since 4.2 |
| 1322 | Calypso.caf | Calypso.caf | SMSReceived_Selection | Available since 4.2 |
| 1323 | Choo_Choo.caf | Choo_Choo.caf | SMSReceived_Selection | Available since 4.2 |
| 1324 | Descent.caf | Descent.caf | SMSReceived_Selection | Available since 4.2 |
| 1325 | Fanfare.caf | Fanfare.caf | SMSReceived_Selection | Available since 4.2 |
| 1326 | Ladder.caf | Ladder.caf | SMSReceived_Selection | Available since 4.2 |
| 1327 | Minuet.caf | Minuet.caf | SMSReceived_Selection | Available since 4.2 |
| 1328 | News_Flash.caf | News_Flash.caf | SMSReceived_Selection | Available since 4.2 |
| 1329 | Noir.caf | Noir.caf | SMSReceived_Selection | Available since 4.2 |
| 1330 | Sherwood_Forest.caf | Sherwood_Forest.caf | SMSReceived_Selection | Available since 4.2 |
| 1331 | Spell.caf | Spell.caf | SMSReceived_Selection | Available since 4.2 |
| 1332 | Suspense.caf | Suspense.caf | SMSReceived_Selection | Available since 4.2 |
| 1333 | Telegraph.caf | Telegraph.caf | SMSReceived_Selection | Available since 4.2 |
| 1334 | Tiptoes.caf | Tiptoes.caf | SMSReceived_Selection | Available since 4.2 |
| 1335 | Typewriters.caf | Typewriters.caf | SMSReceived_Selection | Available since 4.2 |
| 1336 | Update.caf | Update.caf | SMSReceived_Selection | Available since 4.2 |
| 1011 | - | - | SMSReceived_Vibrate | |
| 1311 | - | - | SMSReceived_Vibrate | |
| 1004 | SentMessage.caf | SentMessage.caf | SMSSent | |
| 1016 | tweet_sent.caf | tweet_sent.caf | SMSSent | Available since 5.0 |
| 1300 | Voicemail.caf | Voicemail.caf | SystemSoundPreview | |
| 1301 | ReceivedMessage.caf | ReceivedMessage.caf | SystemSoundPreview | |
| 1302 | new-mail.caf | new-mail.caf | SystemSoundPreview | |
| 1303 | mail-sent.caf | mail-sent.caf | SystemSoundPreview | |
| 1304 | alarm.caf | sq_alarm.caf | SystemSoundPreview | |
| 1305 | lock.caf | sq_lock.caf | SystemSoundPreview | |
| 1315 | Voicemail.caf | Voicemail.caf | SystemSoundPreview | Available since 2.1 |
| 1200 | dtmf-0.caf | dtmf-0.caf | TouchTone | |
| 1201 | dtmf-1.caf | dtmf-1.caf | TouchTone | |
| 1202 | dtmf-2.caf | dtmf-2.caf | TouchTone | |
| 1203 | dtmf-3.caf | dtmf-3.caf | TouchTone | |
| 1204 | dtmf-4.caf | dtmf-4.caf | TouchTone | |
| 1205 | dtmf-5.caf | dtmf-5.caf | TouchTone | |
| 1206 | dtmf-6.caf | dtmf-6.caf | TouchTone | |
| 1207 | dtmf-7.caf | dtmf-7.caf | TouchTone | |
| 1208 | dtmf-8.caf | dtmf-8.caf | TouchTone | |
| 1209 | dtmf-9.caf | dtmf-9.caf | TouchTone | |
| 1210 | dtmf-star.caf | dtmf-star.caf | TouchTone | |
| 1211 | dtmf-pound.caf | dtmf-pound.caf | TouchTone | |
| 1050 | ussd.caf | ussd.caf | USSDAlert | |
| 1154 | vc~ringing.caf | vc~ringing.caf | VCCallUpgrade | Available since 4.1 |
| 1153 | ct-call-waiting.caf | ct-call-waiting.caf | VCCallWaiting | Available since 4.1 |
| 1152 | vc~ended.caf | vc~ended.caf | VCEnded | Available since 4.0 |
| 1150 | vc~invitation-accepted.caf | vc~invitation-accepted.caf | VCInvitationAccepted | Available since 4.0 |
| 1151 | vc~ringing.caf | vc~ringing.caf | VCRinging | Available since 4.0 |
| 4095 | - | - | Vibrate | There was no category for this sound before 2.2. In the SDK this is the constant kSystemSoundID_Vibrate. |
| 1002 | Voicemail.caf | Voicemail.caf | VoicemailReceived |
上面是相应的列表,他们的调用播放相对照较简单。easy实现!
!
AudioServicesPlaySystemSound(id);
直接调用它既能够实现,只是这里的id就是上面的数字id。慢慢熟悉他们的声音吧!
这里我想说明一下,我本来是打算搜索一些系统铃声的信息,而不是提示音,结果碰得到了提示音,就先记录下来,以后用得着,以下我会记录一下怎样在一个app 开发中实现ios系统的铃声!
。
一些值得參考的网址:
https://github.com/TUNER88/iOSSystemSoundsLibrary
最后附上我的Demo,先说下功能:从sounds.plist文件里读取。来实现提示音列表,点击对应的cell。会播放对应的声音!注意:在模拟器中是无法听到声音的!!
!
ios系统提示音的使用(不是铃声)的更多相关文章
- 简单播放系统提示音 android
//Uri alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); //alert = RingtoneManager.g ...
- iOS AVAudioPlayer 提示音
NSString *urlPath = [[NSBundle mainBundle] pathForResource:@"" ofType:@""]; NSUR ...
- 播放WAV文件和系统提示音
- 背水一战 Windows 10 (107) - 通知(Toast): 提示音, 特定场景
[源码下载] 背水一战 Windows 10 (107) - 通知(Toast): 提示音, 特定场景 作者:webabcd 介绍背水一战 Windows 10 之 通知(Toast) 提示音 特定场 ...
- ios开发小技巧之提示音播放与震动
在ios开发中,有时候我们需要频繁播放某种提示声音,比如微博刷新提示音.QQ消息提示音等,对于这些短小且需要频繁播放的音频,最好将其加入到系统声音(system sound)里. 注意: 需要播放的音 ...
- iOS 提示音播放
首先找到对应的素材 音频文件 写一个类继承 NSObject 命名为AudioUtil 导入支撑文件 #import <AVFoundation/AVFoundation.h> #impo ...
- 关于微信内置浏览器在ios上播放提示音的经验分享
document.addEventListener("WeixinJSBridgeReady", function () { window.audio= new Audio() w ...
- iOS系统声音服务(System Sound Services)
系统声音服务(System Sound Services)提供了一个接口,用于播放不超过30秒的声音.它支持的文件格式有限,具体地说只有CAF.AIF和使用PCM或IMA/ADPCM数据的WAV文件. ...
- 超强教程:如何搭建一个 iOS 系统的视频直播 App?
现今,直播市场热火朝天,不少人喜欢在手机端安装各类直播 App,便于随时随地观看直播或者自己当主播.作为开发者来说,搭建一个稳定性强.延迟率低.可用性强的直播平台,需要考虑到部署视频源.搭建聊天室.优 ...
随机推荐
- Android Studio 开发安卓软件时下载的工程项目 Sync with gradle 失败
Sync with gradle 失败的原因有很多,其中很多时候会遇到下载下来的工程同步失败,目前的经验来看下载的工程同步失败均是由于下图中的两个配置其中某个缺少了 google() 或者 jcent ...
- CodeForces-1007A Reorder the Array 贪心 田忌赛马
题目链接:https://cn.vjudge.net/problem/CodeForces-1007A 题意 给个数组,元素的位置可以任意调换 问调换后的元素比此位置上的原元素大的元素个数最大多少 思 ...
- KVM 日常使用命令
[root@Eren liwm]# ps ax | grep kvm 681 ? S< 0:00 [kvm-irqfd-clean]17597 pts/0 S+ ...
- Springboot+swagger2的接口文档开发
一.创建一个SpringBoot项目 1. 2. 3. 4. 把web里的web选中,SQL里选择自己需要的,点击next 二.创建各项所需的controller,configure等 1. 项目布局 ...
- C#打开或者创建一个文件,然后向其末尾写入数据的方法
原文:C#打开或者创建一个文件,然后向其末尾写入数据的方法 FileStream fs = new FileStream(@"d:\timetick.txt" ...
- GenIcam标准(一)
1.概述 如今的数码摄相机包含了很多的功能,而不仅仅是采集图像.对于机器视觉相机来说,处理图像并把结果附加到图像数据流上,控制附加的硬件,代替应用程序作实时的处理等都是很平常的事情.这也导致了相机的编 ...
- IOS开发的哪些异常之异常断点
从Android开发的异常报错到IOS的异常闪退,经历了不一样的处理过程.对于IOS的异常报错刚開始总是非常茫然,永远仅仅告诉你有异常.然后就跳到main.m文件,却不曾我告诉她在那出现.真是吊人胃口 ...
- Android笔记——Activity中的数据传递案例(用户注冊)
1.创建程序activity_main: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/andro ...
- mfc 链接 access 2007 数据库
神马也不说了,直接给出源代码和project 原理这个东西 Google 下.都出来了.自己就说下作为新手 , 1 应该打印出,链接错误原因 2 应该将数据库放到project以下,特别注意这点 给 ...
- gem5中event queue执行原理机制具体分析
搞清楚这个花了两天时间,下面内容为简略版.为了给自己赚点下载用的积分.如须要具体版本号.请点击下载点击打开链接 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQ ...