Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# Usage: soco_alarm_sound_dumper.py <alarm_spi_flash_dump_file>
#
# This script reads the sounds from specified Super Soco alarm module
# memory dump and exports them as playable Wave files.
#
# There seems to be a "table of contents" (ToC) at the beginning of
# SPI flash that defines the location and length of each sound.
# Each ToC entry is 8 bytes long, where 4 bytes are the sound offset and