-
Notifications
You must be signed in to change notification settings - Fork 2
Adding Audio Files
Chad Francis edited this page Oct 29, 2021
·
1 revision
- open your desired audio file in some form of audio editing software (I recommend Audacity)
- clean up audio file
- clip off any unnecessary silence at beginning/end of track
- boost amplitude (improves mouth movement accuracy)
- filter/clip out any background noise, if possible
- export as a WAV file with the following settings
- codec: PCM
- sample rate: 22khz
- audio channels: mono
- bits per sample: 16
- using sftp (or whatever mechanism you like), copy the file to the
/public/sounds
directory within your project
- using your favorite text editor, edit the
config/phrases.json
file - add a line for your new sound file, formatted as follows: `"[filename]": "[group]: [caption]"
- for example, if I had a sound file called
daddy.wav
where Darth Vader tells Luke of his parentage... it could be formatted as"daddy":"vader: No, I am your father..."
- if it is running, restart the python app so it'll reload the
phrases.json
- in the web ui, switch to 'speak' mode
- your new sound file entry should show up in the dropdown
- enjoy!