Difference between revisions of "Chime"

From The iPhone Wiki
Jump to: navigation, search
(macOS Big Sur or newer)
m (To prepare, I have added iPhone models too.)
Line 1: Line 1:
The startup '''chime''' used in Mac computers indicates that the Mac successfully passed the diagnostic tests at startup.
+
The startup '''chime''' used in Mac computers and [[iPhone 14 Pro]] and [[iPhone 14 Pro Max]] or newer models indicates that the Mac or iPhone has successfully passed the diagnostic tests at startup.
   
== Enabling/disabling the startup chime ==
+
== Enabling/disabling the startup chime on Mac ==
 
=== macOS Catalina or older ===
 
=== macOS Catalina or older ===
 
To disable the chime, type in the following Terminal command: <code> sudo nvram SystemAudioVolume=%80 </code> <br>
 
To disable the chime, type in the following Terminal command: <code> sudo nvram SystemAudioVolume=%80 </code> <br>
 
To enable the chime, type in the following Terminal command: <code> sudo nvram -d SystemAudioVolume </code>
 
To enable the chime, type in the following Terminal command: <code> sudo nvram -d SystemAudioVolume </code>
   
=== macOS Big Sur or newer ===
+
=== macOS Big Sur and macOS Monterey ===
 
Since macOS Big Sur, the startup chime is again turned on by default. To modify it, choose Apple Menu -> <code>System Preferences...</code>, then click <code>Sound</code>. In the Sound Effects pane, use the “Play sound on startup” setting to turn the startup sound on or off.
 
Since macOS Big Sur, the startup chime is again turned on by default. To modify it, choose Apple Menu -> <code>System Preferences...</code>, then click <code>Sound</code>. In the Sound Effects pane, use the “Play sound on startup” setting to turn the startup sound on or off.
  +
  +
=== macOS Ventura or newer ===
  +
Choose Apple Menu -> <code>System Settings...</code>, then click <code>Sound</code>. Use the “Play sound on startup” setting to turn the startup sound on or off.
   
 
== Extracting the chimes ==
 
== Extracting the chimes ==
Line 13: Line 16:
 
The startup (and attach) chimes are located in the UEFI firmware. To extract it, use [https://github.com/LongSoft/UEFITool UEFITool]. Then, search for the BootChimeAudio section. Finally, extract the Raw Section inside it by right clicking on it, and selecting <code>Extract body...</code>. Since it is a CoreAudio file, make sure to add the .caf extension on the file. The similar method applies to the attach chimes, but the section has no codename on it. To easily look for the chimes, after opening the UEFI firmware in UEFITool, select <code>Action</code> -> <code>Search...</code>. From here select <code>Text</code> and search for <code>caff</code>. Make sure to disable the Unicode option. <br> On T2 Macs, the UEFI Firmware contains the older 1998 chime.
 
The startup (and attach) chimes are located in the UEFI firmware. To extract it, use [https://github.com/LongSoft/UEFITool UEFITool]. Then, search for the BootChimeAudio section. Finally, extract the Raw Section inside it by right clicking on it, and selecting <code>Extract body...</code>. Since it is a CoreAudio file, make sure to add the .caf extension on the file. The similar method applies to the attach chimes, but the section has no codename on it. To easily look for the chimes, after opening the UEFI firmware in UEFITool, select <code>Action</code> -> <code>Search...</code>. From here select <code>Text</code> and search for <code>caff</code>. Make sure to disable the Unicode option. <br> On T2 Macs, the UEFI Firmware contains the older 1998 chime.
 
The chimes are CoreAudio (CAF) files with the following attributes: 16-bit, Mono at 44100 Hz with the IMA QT ADPCM Audio (ima4) codec.
 
The chimes are CoreAudio (CAF) files with the following attributes: 16-bit, Mono at 44100 Hz with the IMA QT ADPCM Audio (ima4) codec.
=== T2 Macs ===
+
=== [[T8012|T2 Macs]] ===
   
On T2 Macs, the chime is located in bridgeOS in <code>/System/Library/PrivateFrameworks/BridgeAccessibilitySupport.framework/AXEFIAudio_VoiceOver_Boot.aiff</code>. While it has the .aiff extension the chime is actually encoded in the [[wikipedia:Apple Lossless Audio Codec|Apple Lossless Audio Codec]] (ALAC) in a CoreAudio (.caf) container. The attributes are: 16-bit, Stereo at 48000 Hz with ALAC. <br>
+
On [[T8012|T2 Macs]], the chime is located in bridgeOS in <code>/System/Library/PrivateFrameworks/BridgeAccessibilitySupport.framework/AXEFIAudio_VoiceOver_Boot.aiff</code>. While it has the .aiff extension the chime is actually encoded in the [[wikipedia:Apple Lossless Audio Codec|Apple Lossless Audio Codec]] (ALAC) in a CoreAudio (.caf) container. The attributes are: 16-bit, Stereo at 48000 Hz with ALAC. <br>
 
On Macs with bridgeOS 4.6 or earlier, the boot chime file name is the same, but the file is in an [[wikipedia:Audio Interchange File Format|Audio Interchange File Format]] (AIFF) container and the attributes are different: 16-bit, Mono at 24000 Hz in the IMA QT ADPCM Audio (ima4) codec. <br>
 
On Macs with bridgeOS 4.6 or earlier, the boot chime file name is the same, but the file is in an [[wikipedia:Audio Interchange File Format|Audio Interchange File Format]] (AIFF) container and the attributes are different: 16-bit, Mono at 24000 Hz in the IMA QT ADPCM Audio (ima4) codec. <br>
 
The charging chime is stored in <code>/System/Library/Audio/Sounds/connect_power.aif</code>. It is in an AIFF container with the following attributes: 16-bit, Stereo at 44100 Hz in the twos codec.
 
The charging chime is stored in <code>/System/Library/Audio/Sounds/connect_power.aif</code>. It is in an AIFF container with the following attributes: 16-bit, Stereo at 44100 Hz in the twos codec.
   
=== Apple Silicon Macs ===
+
=== Apple Silicon Macs and iPhone devices ===
Apple Silicon Macs use raw audio files to play the startup/charging chime. They are located in the macOS IPSW in Firmware/embeddedaudioresources/image4.
+
iPhones and Macs with Apple Silicon use raw audio files to play the acessibility/startup/charging chimes. They are located in the iOS/macOS IPSW in Firmware/embeddedaudioresources/image4.
 
To extract them, first extract the img4 header, and from here, open [https://www.audacityteam.org Audacity], click <code>File</code> -> <code>Import</code> -> <code>Raw data</code> and specify the parameters. To export, click <code>File</code> -> <code>Export</code> -> <code>Export as WAV/MP3/OGG/other</code>. Some devices use the same chime despite being put into separate files. <br>
 
To extract them, first extract the img4 header, and from here, open [https://www.audacityteam.org Audacity], click <code>File</code> -> <code>Import</code> -> <code>Raw data</code> and specify the parameters. To export, click <code>File</code> -> <code>Export</code> -> <code>Export as WAV/MP3/OGG/other</code>. Some devices use the same chime despite being put into separate files. <br>
 
The parameters:
 
The parameters:
  +
===== Apple Silicon Macs =====
 
* ([[J274AP|j274]]/[[J375cAP|j375c]]/[[J375dAP|j375d]])-boot-chime.im4p: <code>32 bit PCM, Mono at 24000 Hz</code>.
 
* ([[J274AP|j274]]/[[J375cAP|j375c]]/[[J375dAP|j375d]])-boot-chime.im4p: <code>32 bit PCM, Mono at 24000 Hz</code>.
 
* ([[J293AP|j293]]/[[J413AP|j413]]/[[J493AP|j493]])-(attach/boot)-chime.im4p: <code>32 bit PCM, Stereo at 48000 Hz</code>.
 
* ([[J293AP|j293]]/[[J413AP|j413]]/[[J493AP|j493]])-(attach/boot)-chime.im4p: <code>32 bit PCM, Stereo at 48000 Hz</code>.
Line 28: Line 32:
 
* ([[J456AP|j456]]/[[J457AP|j457]])-boot-chime.im4p: <code>32 bit PCM, Mono at 96000 Hz</code>.
 
* ([[J456AP|j456]]/[[J457AP|j457]])-boot-chime.im4p: <code>32 bit PCM, Mono at 96000 Hz</code>.
 
* ([[J314cAP|j314c]]/[[J314sAP|j314s]]/[[J316cAP|j316c]]/[[J316sAP|j316s]])-(attach/boot)-chime.im4p: <code>32 bit PCM, 6 channels at 24000 Hz</code>.
 
* ([[J314cAP|j314c]]/[[J314sAP|j314s]]/[[J316cAP|j316c]]/[[J316sAP|j316s]])-(attach/boot)-chime.im4p: <code>32 bit PCM, 6 channels at 24000 Hz</code>.
  +
===== iPhones =====
  +
* ([[D73AP|d73]]/[[D74AP|d74]])-boot-chime.im4p: <code>?</code>.

Revision as of 15:40, 11 September 2022

The startup chime used in Mac computers and iPhone 14 Pro and iPhone 14 Pro Max or newer models indicates that the Mac or iPhone has successfully passed the diagnostic tests at startup.

Enabling/disabling the startup chime on Mac

macOS Catalina or older

To disable the chime, type in the following Terminal command: sudo nvram SystemAudioVolume=%80
To enable the chime, type in the following Terminal command: sudo nvram -d SystemAudioVolume

macOS Big Sur and macOS Monterey

Since macOS Big Sur, the startup chime is again turned on by default. To modify it, choose Apple Menu -> System Preferences..., then click Sound. In the Sound Effects pane, use the “Play sound on startup” setting to turn the startup sound on or off.

macOS Ventura or newer

Choose Apple Menu -> System Settings..., then click Sound. Use the “Play sound on startup” setting to turn the startup sound on or off.

Extracting the chimes

Regular Intel Macs

The startup (and attach) chimes are located in the UEFI firmware. To extract it, use UEFITool. Then, search for the BootChimeAudio section. Finally, extract the Raw Section inside it by right clicking on it, and selecting Extract body.... Since it is a CoreAudio file, make sure to add the .caf extension on the file. The similar method applies to the attach chimes, but the section has no codename on it. To easily look for the chimes, after opening the UEFI firmware in UEFITool, select Action -> Search.... From here select Text and search for caff. Make sure to disable the Unicode option.
On T2 Macs, the UEFI Firmware contains the older 1998 chime. The chimes are CoreAudio (CAF) files with the following attributes: 16-bit, Mono at 44100 Hz with the IMA QT ADPCM Audio (ima4) codec.

T2 Macs

On T2 Macs, the chime is located in bridgeOS in /System/Library/PrivateFrameworks/BridgeAccessibilitySupport.framework/AXEFIAudio_VoiceOver_Boot.aiff. While it has the .aiff extension the chime is actually encoded in the Apple Lossless Audio Codec (ALAC) in a CoreAudio (.caf) container. The attributes are: 16-bit, Stereo at 48000 Hz with ALAC.
On Macs with bridgeOS 4.6 or earlier, the boot chime file name is the same, but the file is in an Audio Interchange File Format (AIFF) container and the attributes are different: 16-bit, Mono at 24000 Hz in the IMA QT ADPCM Audio (ima4) codec.
The charging chime is stored in /System/Library/Audio/Sounds/connect_power.aif. It is in an AIFF container with the following attributes: 16-bit, Stereo at 44100 Hz in the twos codec.

Apple Silicon Macs and iPhone devices

iPhones and Macs with Apple Silicon use raw audio files to play the acessibility/startup/charging chimes. They are located in the iOS/macOS IPSW in Firmware/embeddedaudioresources/image4. To extract them, first extract the img4 header, and from here, open Audacity, click File -> Import -> Raw data and specify the parameters. To export, click File -> Export -> Export as WAV/MP3/OGG/other. Some devices use the same chime despite being put into separate files.
The parameters:

Apple Silicon Macs
  • (j274/j375c/j375d)-boot-chime.im4p: 32 bit PCM, Mono at 24000 Hz.
  • (j293/j413/j493)-(attach/boot)-chime.im4p: 32 bit PCM, Stereo at 48000 Hz.
  • (j313)-(attach/boot)-chime.im4p: 32 bit PCM, Stereo at 24000 Hz.
  • (j456/j457)-boot-chime.im4p: 32 bit PCM, Mono at 96000 Hz.
  • (j314c/j314s/j316c/j316s)-(attach/boot)-chime.im4p: 32 bit PCM, 6 channels at 24000 Hz.
iPhones