The script has a priority flag that changes the behavior of how the sound is played.
If the sound is played with priority true, it stops every other announcement and plays the sound right away
If the sound is played with priority false, it skips the playback if another announcement is playing
Almost every small interaction with buttons is set with priority false - This is because the sounds are quite short and because the longest announcements we can have on the device is the TTS back. I do not want to ditch it if the user plays with the mute switch or the button during a TTS playback.
NOTE: We are waiting for professionally designed sounds.
This PR contains dummy sounds found online just to have all the framework ready.
Once the sounds are designed, it will be a matter of replacing some files
NOTE: Some sound files are mp3, some are FLAC.
This is normal.
FLAC takes more space but is faster to decode
MP3 takes less space but is slower to decode.
I picked FLAC for all small interactions (Button presses and mute flip etc etc)
I picked MP3 for all longer less frequent sounds (Factory reset, Connection and the easter eggs)
Add temporary sounds to the VoiceKit.
All sounds are played using a single script now
The script has a
priority
flag that changes the behavior of how the sound is played.priority
true, it stops every other announcement and plays the sound right awaypriority
false, it skips the playback if another announcement is playingAlmost every small interaction with buttons is set with
priority
false - This is because the sounds are quite short and because the longest announcements we can have on the device is the TTS back. I do not want to ditch it if the user plays with the mute switch or the button during a TTS playback.NOTE: We are waiting for professionally designed sounds.
This PR contains dummy sounds found online just to have all the framework ready. Once the sounds are designed, it will be a matter of replacing some files
NOTE: Some sound files are mp3, some are FLAC.
This is normal. FLAC takes more space but is faster to decode MP3 takes less space but is slower to decode.
I picked FLAC for all small interactions (Button presses and mute flip etc etc) I picked MP3 for all longer less frequent sounds (Factory reset, Connection and the easter eggs)