美文网首页iOS
iOS 系统声音集合

iOS 系统声音集合

作者: 奔跑吧小蚂蚁 | 来源:发表于2020-03-17 16:11 被阅读0次
+ (void)sentMessagePlay{
    
    //第一种方式
    SystemSoundID myAlertSound;
    NSURL *url = [NSURL URLWithString:@"/System/Library/Audio/UISounds/SentMessage.caf"];
    AudioServicesCreateSystemSoundID((__bridge CFURLRef)(url), &myAlertSound);
    AudioServicesPlaySystemSound(myAlertSound);
    //第二种方式
    //SystemSoundID inSystemSoundID = (int)1004;
    //AudioServicesPlaySystemSound(inSystemSoundID);
}

/*
apple系统默认声音名称说明:
1.声音格式是MP3或m4r的需要转成caf格式(可先转成aif , aiff,然后修改后缀)
2.路径在/System/Library/Audio/UISounds 里,需要更改的可以根据以下列表进行替换
3详细列表:
信息
ReceivedMessage.caf--收到信息,仅在短信界面打开时播放。
sms-received1.caf-------三全音
sms-received2.caf-------管钟琴
sms-received3.caf-------玻璃
sms-received4.caf-------圆号
sms-received5.caf-------铃声
sms-received6.caf-------电子乐
SentMessage.caf--------发送信息

邮件
mail-sent.caf----发送邮件
new-mail.caf-----收到新邮件

电话
dtmf-0.caf----------拨号面板0按键
dtmf-1.caf----------拨号面板1按键
dtmf-2.caf----------拨号面板2按键
dtmf-3.caf----------拨号面板3按键
dtmf-4.caf----------拨号面板4按键
dtmf-5.caf----------拨号面板5按键
dtmf-6.caf----------拨号面板6按键
dtmf-7.caf----------拨号面板7按键
dtmf-8.caf----------拨号面板8按键
dtmf-9.caf----------拨号面板9按键
dtmf-pound.caf---拨号面板#按键
dtmf-star.caf------拨号面板*按键
Voicemail.caf-----新语音邮件

输入设备声音提示
Tock.caf-----------------------点击键盘
begin_record.caf-----------开始录音
begin_video_record.caf--开始录像
photoShutter.caf------------快门声
end_record.caf--------------结束录音
end_video_record.caf-----结束录像

其他
beep-beep.caf--充电、注销及连接电脑
lock.caf------------锁定手机
shake.caf---------“这个还没搞清楚”
unlock.caf--------滑动解锁
low_power.caf--低电量提示

语音控制
jbl_ambiguous.caf--找到多个匹配
jbl_begin.caf------等待用户的输入
jbl_cancel.caf-----取消
jbl_confirm.caf----执行
jbl_no_match.caf---没有找到匹配

日历
alarm.caf--日历提醒
iPod Touch 1G
sq_alarm.caf
sq_beep-beep.caf
sq_lock.caf
sq_tock.caf
*/

相关文章

  • iOS 系统声音集合

    /*apple系统默认声音名称说明:1.声音格式是MP3或m4r的需要转成caf格式(可先转成aif , aiff...

  • ios系统声音

    AudioServices AudioServices is a group of C functions in ...

  • iOS播放系统声音

    iOS播放系统声音 简介 iOS 播放声音有很多种方式,其中系统声音服务应该是最简单的了。但我们使用起来要小心,因...

  • iOS系统信息集合

    在项目开发的时候,经常需要用到某些系统信息,比如手机型号(5s,6,6p), 操作系统版本(8.0 or 9.3)...

  • iOS 音频

    iOSSystemSoundsLibrary 列出和播放iOS系统声音~ novocaine 一个声音库 录音...

  • iOS System Sound Service 系统声音服务

    系统声音服务(System Sound Services) 特点: iOS系统声音服务支持三种类型通知: 实现 参...

  • iOS音频播放

    ·iOS系统中的音频播放方式·AVAudioPlayer、AVPlayer、系统声音、音频队列 ·AVAudioP...

  • iOS系统声音ID

  • IOS 播放系统声音

    #import - (void)viewDidLoad { [super viewDidLoad]; [self ...

  • IOS开发系统声音

    iOS可通过两种方式播放声音:播放压缩的声音文件,比如mp3文件,一般使用播放声音中提到的方法,适用于播放时间较长...

网友评论

    本文标题:iOS 系统声音集合

    本文链接:https://www.haomeiwen.com/subject/rsbtyhtx.html