
iOSのシステムサウンドを確認する
2012.11.21
この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。
作成中のアプリでシステムサウンドを鳴らす必要があったのでメモ。iOSには予めいくつかシステムサウンドが内蔵されています。システムサウンドをプログラムから再生するには、AudioToolbox.frameworkに定義されるAudioServicesPlaySystemSound関数を利用します。この関数は引数として予め定義されているサウンドIDを指定します。サウンドIDの対応表は以下の通り。(わからないものもありますが、知ってる方是非教えてください!)
| ID | 名前 | ファイル名(iPhone/iPod Touch) | カテゴリー | 備考 |
|---|---|---|---|---|
| 1000 | 鐘 | new-mail.caf new-mail.caf |
MailReceived | |
| 1001 | スウォッシュ | mail-sent.caf mail-sent.caf |
MailSent | |
| 1002 | トライトーン | Voicemail.caf Voicemail.caf |
VoicemailReceived | |
| 1003 | SMSメッセージ受信音 | ReceivedMessage.caf ReceivedMessage.caf |
SMSReceived | |
| 1004 | SMSメッセージ送信音 | SentMessage.caf SentMessage.caf |
SMSSent | |
| 1005 | 通知 | alarm.caf sq_alarm.caf |
CalendarAlert | |
| 1006 | 充電残量低下音 | low_power.caf low_power.caf |
LowPower | |
| 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 | |
| 1011 | - | - - |
SMSReceived_Vibrate | |
| 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 | |
| 1015 | トライトーン | Voicemail.caf Voicemail.caf |
- | iOS2.1〜 |
| 1016 | ツイート | tweet_sent.caf tweet_sent.caf |
SMSSent | iOS5.0〜 |
| 1020 | 予感 | Anticipate.caf Anticipate.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1021 | ブルーム | Bloom.caf Bloom.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1022 | カリプソ | Calypso.caf Calypso.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1023 | 機関車 | Choo_Choo.caf Choo_Choo.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1024 | 降下 | Descent.caf Descent.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1025 | ファンファーレ | Fanfare.caf Fanfare.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1026 | はしご | Ladder.caf Ladder.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1027 | メヌエット | Minuet.caf Minuet.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1028 | ニュースフラッシュ | News_Flash.caf News_Flash.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1029 | ノアール | Noir.caf Noir.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1030 | シャーウッドの森 | Sherwood_Forest.caf Sherwood_Forest.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1031 | スペル | Spell.caf Spell.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1032 | サスペンス | Suspense.caf Suspense.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1033 | 電報 | Telegraph.caf Telegraph.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1034 | つま先 | Tiptoes.caf Tiptoes.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1035 | タイプライター | Typewriters.caf Typewriters.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1036 | アップデート | Update.caf Update.caf |
SMSReceived_Alert | iOS4.2〜 |
| 1050 | ussd.caf | ussd.caf ussd.caf |
USSDAlert | |
| 1051 | SIMToolkitCallDropped.caf | SIMToolkitCallDropped.caf SIMToolkitCallDropped.caf |
SIMToolkitTone | |
| 1052 | SIMToolkitGeneralBeep.caf | SIMToolkitGeneralBeep.caf SIMToolkitGeneralBeep.caf |
SIMToolkitTone | |
| 1053 | SIMToolkitNegativeACK.caf | SIMToolkitNegativeACK.caf SIMToolkitNegativeACK.caf |
SIMToolkitTone | |
| 1054 | SIMToolkitPositiveACK.caf | SIMToolkitPositiveACK.caf SIMToolkitPositiveACK.caf |
SIMToolkitTone | |
| 1055 | SIMToolkitSMS.caf | SIMToolkitSMS.caf SIMToolkitSMS.caf |
SIMToolkitTone | |
| 1057 | Tink.caf | Tink.caf Tink.caf |
PINKeyPressed | |
| 1070 | 着信先が通話中 | ct-busy.caf ct-busy.caf |
AudioToneBusy | |
| 1071 | ct-congestion.caf | ct-congestion.caf ct-congestion.caf |
AudioToneCongestion | |
| 1072 | ct-path-ack.caf | ct-path-ack.caf ct-path-ack.caf |
AudioTonePathAcknowledge | |
| 1073 | ct-error.caf | ct-error.caf ct-error.caf |
AudioToneError | |
| 1074 | 着信開始音 | ct-call-waiting.caf ct-call-waiting.caf |
AudioToneCallWaiting | |
| 1075 | ct-keytone2.caf | ct-keytone2.caf ct-keytone2.caf |
AudioToneKey2 | |
| 1100 | スクリーンロック音 | lock.caf sq_lock.caf |
ScreenLocked | |
| 1101 | スクリーンロック解除音 | unlock.caf sq_lock.caf |
ScreenUnlocked | |
| 1102 | - | - - |
FailedUnlock | |
| 1103 | Tink.caf | Tink.caf sq_tock.caf |
KeyPressed | |
| 1104 | キーボードのタップ音 | Tock.caf sq_tock.caf |
KeyPressed | |
| 1105 | キーボードのタップ音 | Tock.caf sq_tock.caf |
KeyPressed | |
| 1106 | パソコン接続音 | beep-beep.caf sq_beep-beep.caf |
ConnectedToPower | |
| 1107 | RingerChanged.caf | RingerChanged.caf RingerChanged.caf |
RingerSwitchIndication | |
| 1108 | シャッター音 | photoShutter.caf photoShutter.caf |
CameraShutter | |
| 1109 | シェイク音 | shake.caf shake.caf |
ShakeToShuffle | iOS3.0〜 |
| 1110 | 音声認識開始音 | jbl_begin.caf jbl_begin.caf |
JBL_Begin | iOS3.0〜 |
| 1111 | 音声認識完了音 | jbl_confirm.caf jbl_confirm.caf |
JBL_Confirm | iOS3.0〜 |
| 1112 | 音声認識キャンセル音 | jbl_cancel.caf jbl_cancel.caf |
JBL_Cancel | iOS3.0〜 |
| 1113 | ボイスレコーダの記録開始音 | begin_record.caf begin_record.caf |
BeginRecording | iOS3.0〜 |
| 1114 | ボイスレコーダの記録停止音 | end_record.caf end_record.caf |
EndRecording | iOS3.0〜 |
| 1115 | 音声コントロール認識音 | jbl_ambiguous.caf jbl_ambiguous.caf |
JBL_Ambiguous | iOS3.0〜 |
| 1116 | 音声コントロール不認識音 | jbl_no_match.caf jbl_no_match.caf |
JBL_NoMatch | iOS3.0〜 |
| 1117 | 動画の録画開始音 | begin_video_record.caf begin_video_record.caf |
BeginVideoRecording | iOS3.0〜 |
| 1118 | 動画の録画停止音 | end_video_record.caf end_video_record.caf |
EndVideoRecording | iOS3.0〜 |
| 1150 | vc~invitation-accepted.caf | vc~invitation-accepted.caf vc~invitation-accepted.caf |
VCInvitationAccepted | iOS4.0〜 |
| 1151 | vc~ringing.caf | vc~ringing.caf vc~ringing.caf |
VCRinging | iOS4.0〜 |
| 1152 | 通話終了音 | vc~ended.caf vc~ended.caf |
VCEnded | iOS4.0〜 |
| 1153 | ct-call-waiting.caf | ct-call-waiting.caf ct-call-waiting.caf |
VCCallWaiting | iOS4.1〜 |
| 1154 | vc~ringing.caf | vc~ringing.caf vc~ringing.caf |
VCCallUpgrade | iOS4.1〜 |
| 1200 | プッシュ音(0) | dtmf-0.caf dtmf-0.caf |
TouchTone | |
| 1201 | プッシュ音(1) | dtmf-1.caf dtmf-1.caf |
TouchTone | |
| 1202 | プッシュ音(2) | dtmf-2.caf dtmf-2.caf |
TouchTone | |
| 1203 | プッシュ音(3) | dtmf-3.caf dtmf-3.caf |
TouchTone | |
| 1204 | プッシュ音(4) | dtmf-4.caf dtmf-4.caf |
TouchTone | |
| 1205 | プッシュ音(5) | dtmf-5.caf dtmf-5.caf |
TouchTone | |
| 1206 | プッシュ音(6) | dtmf-6.caf dtmf-6.caf |
TouchTone | |
| 1207 | プッシュ音(7) | dtmf-7.caf dtmf-7.caf |
TouchTone | |
| 1208 | プッシュ音(8) | dtmf-8.caf dtmf-8.caf |
TouchTone | |
| 1209 | プッシュ音(9) | dtmf-9.caf dtmf-9.caf |
TouchTone | |
| 1210 | プッシュ音(*) | dtmf-star.caf dtmf-star.caf |
TouchTone | |
| 1211 | プッシュ音(#) | dtmf-pound.caf dtmf-pound.caf |
TouchTone | |
| 1254 | long_low_short_high.caf | long_low_short_high.caf long_low_short_high.caf |
Headset_StartCall | |
| 1255 | short_double_high.caf | short_double_high.caf short_double_high.caf |
Headset_Redial | |
| 1256 | short_low_high.caf | short_low_high.caf short_low_high.caf |
Headset_AnswerCall | |
| 1257 | short_double_low.caf | short_double_low.caf short_double_low.caf |
Headset_EndCall | |
| 1258 | short_double_low.caf | short_double_low.caf short_double_low.caf |
Headset_CallWaitingActions | |
| 1259 | middle_9_short_double_low.caf | middle_9_short_double_low.caf middle_9_short_double_low.caf |
Headset_TransitionEnd | |
| 1300 | トライトーン | Voicemail.caf Voicemail.caf |
SystemSoundPreview | |
| 1301 | ReceivedMessage.caf | 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 | |
| 1306 | Tock.caf | Tock.caf sq_tock.caf |
KeyPressClickPreview | |
| 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 | |
| 1311 | - | - - |
SMSReceived_Vibrate | |
| 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 | |
| 1315 | トライトーン | Voicemail.caf Voicemail.caf |
SystemSoundPreview | iOS2.1〜 |
| 1320 | 予感 | Anticipate.caf Anticipate.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1321 | ブルーム | Bloom.caf Bloom.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1322 | カリプソ | Calypso.caf Calypso.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1323 | 機関車 | Choo_Choo.caf Choo_Choo.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1324 | 降下 | Descent.caf Descent.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1325 | ファンファーレ | Fanfare.caf Fanfare.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1326 | はしご | Ladder.caf Ladder.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1327 | メヌエット | Minuet.caf Minuet.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1328 | ニュースフラッシュ | News_Flash.caf News_Flash.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1329 | ノアール | Noir.caf Noir.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1330 | シャーウッドの森 | Sherwood_Forest.caf Sherwood_Forest.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1331 | スペル | Spell.caf Spell.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1332 | サスペンス | Suspense.caf Suspense.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1333 | 電報 | Telegraph.caf Telegraph.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1334 | つま先 | Tiptoes.caf Tiptoes.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1335 | タイプライター | Typewriters.caf Typewriters.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1336 | アップデート | Update.caf Update.caf |
SMSReceived_Selection | iOS4.2〜 |
| 1350 | - | - - |
RingerVibeChanged | |
| 1351 | - | - - |
SilentVibeChanged |
上記のシステムサウンドの確認用に作ったサンプルプロジェクトSystemSoundSampleをGitHubにあげました。尚、シミュレータだとAudioServicesPlaySystemSoundで音が再生されないようですので、実機で確認してみてください。ちなみに開発環境は以下の通りです。
- Mac OS X 10.8
- Xcode 4.5.2
- iOS 6.0
サンプル
セルをタップすると音が再生されます。











