Python script that convert audio file (WAV) to Talkie (speech synthesis for arduino) compatible data.
Talkie is speech library for Arduino , and it can be found here Talkie Github
$ python talkie_me.py alert.wav
This is the output of ALERT voice.
const uint8_t spALERT[] PROGMEM = {
0xA5, 0xCF, 0xC6, 0xAB, 0x55, 0x5B, 0xAF, 0x39,
0xDA, 0xC9, 0x54, 0xDD, 0xBC, 0xC6, 0xC2, 0x3C,
0x27, 0x20, 0xCF, 0x1C, 0xD7, 0x30, 0xB0, 0x45,
0x16, 0x69, 0x1D, 0xC3, 0x11, 0xE4, 0x59, 0x8A,
0x7C, 0xB5, 0x9B, 0x8B, 0xD9, 0x30, 0xB7, 0xD3,
0x76, 0x19, 0x9A, 0x25, 0x59, 0x57, 0x59, 0xEC,
0x11, 0xAF, 0xE8, 0xD9, 0xF9, 0x2A, 0x8A, 0x1D,
0xF0, 0x75, 0x3F, 0x73, 0xAC, 0x87, 0x3B, 0xA2,
0x0B, 0xAA, 0x2B, 0xCF, 0xE4, 0x10, 0xA1, 0xDC,
0x45, 0x64, 0x03, 0x00, 0x80, 0x01, 0x66, 0x36,
0x33, 0xC0, 0xAB, 0xD5, 0x0A, 0x68, 0x25, 0x85,
0x02, 0xFF, 0x0F
};
voice.say(spALERT);
Note: the bigger file size of audio file, the longer it takes to execute conversion.