This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |