-
Notifications
You must be signed in to change notification settings - Fork 2
Generation of Audio Files
Phil Schatzmann edited this page Feb 20, 2022
·
23 revisions
I used the TTS functionality of google translate to generate the mp3 files. Then I executed xxd to generate a .h file from an mp3 recording with:
xxd -i mp3file.mp3 header-file.h
The header files are then made available with the logic that can be found in AudioDictionary.h
You can prepare your own audio data easily with the help of a CSV file. Details can be found in the Jupyter Notebook in the tools directory.
The CSV file has the following format:
Name, Text
ZERO, zero
ONE, one
TWO, two
THREE, three
FOUR, four
FIVE, five
SIX, six
...