diff --git a/README.md b/README.md index c4bfb83..7dcf95f 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,8 @@ The default audio alerts are stored in: `config/_default_cfg_src_/res/en/` If you want to change the alert to a custom sound, just replace the sound file you'd like to change -(ie `config/_default_cfg_src_/res/en/SOUND_POWER_ON.mp3`) with your own MP3 with the same name -and recompile with `./build.sh`! +(ie `config/_default_cfg_src_/res/en/SOUND_POWER_ON.opus`) with your own audio file with the same base +name (ie `config/_default_cfg_src_/res/en/SOUND_POWER_ON.mp3`) and recompile with `./build.sh`! ### Language support @@ -87,4 +87,4 @@ for languages other than the default English. For example, running `AUDIO=cn ./b The current languages supported with sound files are English (`en`) and Chinese (`cn`). Other languages (or other sets of custom sounds) may be added by adding all the correct sound files into a -`config/_default_cfg_src_/res//` directory and building with `AUDIO= ./build.sh`. \ No newline at end of file +`config/_default_cfg_src_/res//` directory and building with `AUDIO= ./build.sh`. diff --git a/config/_default_cfg_src_/res/SOUND_MUTE.txt b/config/_default_cfg_src_/res/SOUND_MUTE.txt deleted file mode 100644 index ff9fc2e..0000000 --- a/config/_default_cfg_src_/res/SOUND_MUTE.txt +++ /dev/null @@ -1,132 +0,0 @@ -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, -0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef, -0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde, -0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x7b, -0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7, -0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef, -0x7b,0xbd,0xef,0x7b,0xde,0xf7,0x9c,0x31,0x27,0x75,0x00,0x00,0x00,0x00,0x7b,0xde, -0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef,0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd, -0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde,0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b, -0xbd,0xef,0x7b,0xde,0xf7,0x7b,0xde,0xf7,0xbd,0xee,0xf7,0xbd,0xef,0x7b,0xdd,0xef, -0x7b,0xde,0xf7,0xbb,0xde,0xf7,0xbd,0xef,0x77,0xbd,0xef,0x7b,0xde,0xef,0x7b,0xde, -0xf7,0xbd,0xde,0xf7,0xbd,0xef,0x7b,0xbd,0xef,0x7b,0xde,0xf7, diff --git a/config/_default_cfg_src_/res/cn/SOUND_ANSWER.mp3 b/config/_default_cfg_src_/res/cn/SOUND_ANSWER.mp3 deleted file mode 100644 index 5bf883a..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_ANSWER.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_ANSWER.opus b/config/_default_cfg_src_/res/cn/SOUND_ANSWER.opus new file mode 100644 index 0000000..b6fc78b Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_ANSWER.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_CHARGE_FINISH.mp3 b/config/_default_cfg_src_/res/cn/SOUND_CHARGE_FINISH.mp3 deleted file mode 100644 index 35d4d01..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_CHARGE_FINISH.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_CHARGE_FINISH.opus b/config/_default_cfg_src_/res/cn/SOUND_CHARGE_FINISH.opus new file mode 100644 index 0000000..cb4bbeb Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_CHARGE_FINISH.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_CHARGE_PLEASE.mp3 b/config/_default_cfg_src_/res/cn/SOUND_CHARGE_PLEASE.mp3 deleted file mode 100644 index 856b965..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_CHARGE_PLEASE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_CHARGE_PLEASE.opus b/config/_default_cfg_src_/res/cn/SOUND_CHARGE_PLEASE.opus new file mode 100644 index 0000000..84e889b Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_CHARGE_PLEASE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_CONNECTED.mp3 b/config/_default_cfg_src_/res/cn/SOUND_CONNECTED.mp3 deleted file mode 100644 index d236d4f..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_CONNECTED.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_CONNECTED.opus b/config/_default_cfg_src_/res/cn/SOUND_CONNECTED.opus new file mode 100644 index 0000000..7cf69ff Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_CONNECTED.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_DIS_CONNECT.mp3 b/config/_default_cfg_src_/res/cn/SOUND_DIS_CONNECT.mp3 deleted file mode 100644 index 7b8b2ce..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_DIS_CONNECT.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_DIS_CONNECT.opus b/config/_default_cfg_src_/res/cn/SOUND_DIS_CONNECT.opus new file mode 100644 index 0000000..03ebd4e Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_DIS_CONNECT.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_EIGHT.mp3 b/config/_default_cfg_src_/res/cn/SOUND_EIGHT.mp3 deleted file mode 100644 index 6879b82..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_EIGHT.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_EIGHT.opus b/config/_default_cfg_src_/res/cn/SOUND_EIGHT.opus new file mode 100644 index 0000000..36d0c70 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_EIGHT.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_FINDME.mp3 b/config/_default_cfg_src_/res/cn/SOUND_FINDME.mp3 deleted file mode 100644 index feb51a3..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_FINDME.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_FINDME.opus b/config/_default_cfg_src_/res/cn/SOUND_FINDME.opus new file mode 100644 index 0000000..3f97619 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_FINDME.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_FIVE.mp3 b/config/_default_cfg_src_/res/cn/SOUND_FIVE.mp3 deleted file mode 100644 index 22cd317..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_FIVE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_FIVE.opus b/config/_default_cfg_src_/res/cn/SOUND_FIVE.opus new file mode 100644 index 0000000..76656db Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_FIVE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_FOUR.mp3 b/config/_default_cfg_src_/res/cn/SOUND_FOUR.mp3 deleted file mode 100644 index ae6c21f..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_FOUR.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_FOUR.opus b/config/_default_cfg_src_/res/cn/SOUND_FOUR.opus new file mode 100644 index 0000000..df82212 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_FOUR.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_HUNG_UP.mp3 b/config/_default_cfg_src_/res/cn/SOUND_HUNG_UP.mp3 deleted file mode 100644 index eb4c3e4..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_HUNG_UP.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_HUNG_UP.opus b/config/_default_cfg_src_/res/cn/SOUND_HUNG_UP.opus new file mode 100644 index 0000000..14a6a93 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_HUNG_UP.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_INCOMING_CALL.mp3 b/config/_default_cfg_src_/res/cn/SOUND_INCOMING_CALL.mp3 deleted file mode 100644 index 2bc968a..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_INCOMING_CALL.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_INCOMING_CALL.opus b/config/_default_cfg_src_/res/cn/SOUND_INCOMING_CALL.opus new file mode 100644 index 0000000..f2a28f7 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_INCOMING_CALL.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_LANGUAGE_SWITCH.mp3 b/config/_default_cfg_src_/res/cn/SOUND_LANGUAGE_SWITCH.mp3 deleted file mode 100644 index eb4c3e4..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_LANGUAGE_SWITCH.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_LANGUAGE_SWITCH.opus b/config/_default_cfg_src_/res/cn/SOUND_LANGUAGE_SWITCH.opus new file mode 100644 index 0000000..f6dceef Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_LANGUAGE_SWITCH.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_MUTE.opus b/config/_default_cfg_src_/res/cn/SOUND_MUTE.opus new file mode 100644 index 0000000..418c2e7 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_MUTE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_NINE.mp3 b/config/_default_cfg_src_/res/cn/SOUND_NINE.mp3 deleted file mode 100644 index ec06e2c..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_NINE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_NINE.opus b/config/_default_cfg_src_/res/cn/SOUND_NINE.opus new file mode 100644 index 0000000..9137fef Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_NINE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_ONE.mp3 b/config/_default_cfg_src_/res/cn/SOUND_ONE.mp3 deleted file mode 100644 index f49d8e1..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_ONE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_ONE.opus b/config/_default_cfg_src_/res/cn/SOUND_ONE.opus new file mode 100644 index 0000000..3d36264 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_ONE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_OVER.mp3 b/config/_default_cfg_src_/res/cn/SOUND_OVER.mp3 deleted file mode 100644 index f469323..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_OVER.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_OVER.opus b/config/_default_cfg_src_/res/cn/SOUND_OVER.opus new file mode 100644 index 0000000..3bdbabe Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_OVER.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIRING.mp3 b/config/_default_cfg_src_/res/cn/SOUND_PAIRING.mp3 deleted file mode 100644 index a632487..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_PAIRING.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIRING.opus b/config/_default_cfg_src_/res/cn/SOUND_PAIRING.opus new file mode 100644 index 0000000..99444c8 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_PAIRING.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIRING_FAIL.mp3 b/config/_default_cfg_src_/res/cn/SOUND_PAIRING_FAIL.mp3 deleted file mode 100644 index d0eb488..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_PAIRING_FAIL.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIRING_FAIL.opus b/config/_default_cfg_src_/res/cn/SOUND_PAIRING_FAIL.opus new file mode 100644 index 0000000..fb22f45 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_PAIRING_FAIL.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIRING_SUCCESS.mp3 b/config/_default_cfg_src_/res/cn/SOUND_PAIRING_SUCCESS.mp3 deleted file mode 100644 index ebb909b..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_PAIRING_SUCCESS.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIRING_SUCCESS.opus b/config/_default_cfg_src_/res/cn/SOUND_PAIRING_SUCCESS.opus new file mode 100644 index 0000000..365262d Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_PAIRING_SUCCESS.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIR_ENABLE.mp3 b/config/_default_cfg_src_/res/cn/SOUND_PAIR_ENABLE.mp3 deleted file mode 100644 index b26a965..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_PAIR_ENABLE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_PAIR_ENABLE.opus b/config/_default_cfg_src_/res/cn/SOUND_PAIR_ENABLE.opus new file mode 100644 index 0000000..99535e4 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_PAIR_ENABLE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_POWER_OFF.mp3 b/config/_default_cfg_src_/res/cn/SOUND_POWER_OFF.mp3 deleted file mode 100644 index 7852dcf..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_POWER_OFF.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_POWER_OFF.opus b/config/_default_cfg_src_/res/cn/SOUND_POWER_OFF.opus new file mode 100644 index 0000000..fc9b72d Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_POWER_OFF.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_POWER_ON.mp3 b/config/_default_cfg_src_/res/cn/SOUND_POWER_ON.mp3 deleted file mode 100644 index 83b1710..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_POWER_ON.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_POWER_ON.opus b/config/_default_cfg_src_/res/cn/SOUND_POWER_ON.opus new file mode 100644 index 0000000..64fec83 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_POWER_ON.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_REFUSE.mp3 b/config/_default_cfg_src_/res/cn/SOUND_REFUSE.mp3 deleted file mode 100644 index 03a696f..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_REFUSE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_REFUSE.opus b/config/_default_cfg_src_/res/cn/SOUND_REFUSE.opus new file mode 100644 index 0000000..d5e5e2a Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_REFUSE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_SEVEN.mp3 b/config/_default_cfg_src_/res/cn/SOUND_SEVEN.mp3 deleted file mode 100644 index cc967c8..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_SEVEN.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_SEVEN.opus b/config/_default_cfg_src_/res/cn/SOUND_SEVEN.opus new file mode 100644 index 0000000..3e0e6f0 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_SEVEN.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_SIX.mp3 b/config/_default_cfg_src_/res/cn/SOUND_SIX.mp3 deleted file mode 100644 index 8642b6b..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_SIX.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_SIX.opus b/config/_default_cfg_src_/res/cn/SOUND_SIX.opus new file mode 100644 index 0000000..98c09ad Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_SIX.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_THREE.mp3 b/config/_default_cfg_src_/res/cn/SOUND_THREE.mp3 deleted file mode 100644 index ba51b64..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_THREE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_THREE.opus b/config/_default_cfg_src_/res/cn/SOUND_THREE.opus new file mode 100644 index 0000000..229bf64 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_THREE.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_TWO.mp3 b/config/_default_cfg_src_/res/cn/SOUND_TWO.mp3 deleted file mode 100644 index b463a94..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_TWO.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_TWO.opus b/config/_default_cfg_src_/res/cn/SOUND_TWO.opus new file mode 100644 index 0000000..5dfec9d Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_TWO.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_WARNING.mp3 b/config/_default_cfg_src_/res/cn/SOUND_WARNING.mp3 deleted file mode 100644 index eb4c3e4..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_WARNING.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_WARNING.opus b/config/_default_cfg_src_/res/cn/SOUND_WARNING.opus new file mode 100644 index 0000000..2105321 Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_WARNING.opus differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_ZERO.mp3 b/config/_default_cfg_src_/res/cn/SOUND_ZERO.mp3 deleted file mode 100644 index 925a109..0000000 Binary files a/config/_default_cfg_src_/res/cn/SOUND_ZERO.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/cn/SOUND_ZERO.opus b/config/_default_cfg_src_/res/cn/SOUND_ZERO.opus new file mode 100644 index 0000000..47ef70d Binary files /dev/null and b/config/_default_cfg_src_/res/cn/SOUND_ZERO.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ALEXA_START.mp3 b/config/_default_cfg_src_/res/en/SOUND_ALEXA_START.mp3 deleted file mode 100644 index 874420f..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_ALEXA_START.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ALEXA_START.opus b/config/_default_cfg_src_/res/en/SOUND_ALEXA_START.opus new file mode 100644 index 0000000..e5c0536 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_ALEXA_START.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ALEXA_STOP.mp3 b/config/_default_cfg_src_/res/en/SOUND_ALEXA_STOP.mp3 deleted file mode 100644 index 171f31f..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_ALEXA_STOP.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ALEXA_STOP.opus b/config/_default_cfg_src_/res/en/SOUND_ALEXA_STOP.opus new file mode 100644 index 0000000..b614015 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_ALEXA_STOP.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ANSWER.mp3 b/config/_default_cfg_src_/res/en/SOUND_ANSWER.mp3 deleted file mode 100644 index 5e0ecfa..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_ANSWER.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ANSWER.opus b/config/_default_cfg_src_/res/en/SOUND_ANSWER.opus new file mode 100644 index 0000000..c17129c Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_ANSWER.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_CHARGE_FINISH.mp3 b/config/_default_cfg_src_/res/en/SOUND_CHARGE_FINISH.mp3 deleted file mode 100644 index 8b8f91c..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_CHARGE_FINISH.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_CHARGE_FINISH.opus b/config/_default_cfg_src_/res/en/SOUND_CHARGE_FINISH.opus new file mode 100644 index 0000000..6d1451e Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_CHARGE_FINISH.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_CHARGE_PLEASE.mp3 b/config/_default_cfg_src_/res/en/SOUND_CHARGE_PLEASE.mp3 deleted file mode 100644 index bc24106..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_CHARGE_PLEASE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_CHARGE_PLEASE.opus b/config/_default_cfg_src_/res/en/SOUND_CHARGE_PLEASE.opus new file mode 100644 index 0000000..fa52033 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_CHARGE_PLEASE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_CONNECTED.mp3 b/config/_default_cfg_src_/res/en/SOUND_CONNECTED.mp3 deleted file mode 100644 index 0a78513..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_CONNECTED.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_CONNECTED.opus b/config/_default_cfg_src_/res/en/SOUND_CONNECTED.opus new file mode 100644 index 0000000..2197c1f Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_CONNECTED.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_DIS_CONNECT.mp3 b/config/_default_cfg_src_/res/en/SOUND_DIS_CONNECT.mp3 deleted file mode 100644 index 96bf7fc..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_DIS_CONNECT.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_DIS_CONNECT.opus b/config/_default_cfg_src_/res/en/SOUND_DIS_CONNECT.opus new file mode 100644 index 0000000..a2771de Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_DIS_CONNECT.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_EIGHT.mp3 b/config/_default_cfg_src_/res/en/SOUND_EIGHT.mp3 deleted file mode 100644 index 8d5af24..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_EIGHT.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_EIGHT.opus b/config/_default_cfg_src_/res/en/SOUND_EIGHT.opus new file mode 100644 index 0000000..ee2d63e Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_EIGHT.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_FINDME.mp3 b/config/_default_cfg_src_/res/en/SOUND_FINDME.mp3 deleted file mode 100644 index feb51a3..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_FINDME.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_FINDME.opus b/config/_default_cfg_src_/res/en/SOUND_FINDME.opus new file mode 100644 index 0000000..880245e Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_FINDME.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_FIVE.mp3 b/config/_default_cfg_src_/res/en/SOUND_FIVE.mp3 deleted file mode 100644 index e630c52..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_FIVE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_FIVE.opus b/config/_default_cfg_src_/res/en/SOUND_FIVE.opus new file mode 100644 index 0000000..86d42d8 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_FIVE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_FOUR.mp3 b/config/_default_cfg_src_/res/en/SOUND_FOUR.mp3 deleted file mode 100644 index 12aba1c..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_FOUR.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_FOUR.opus b/config/_default_cfg_src_/res/en/SOUND_FOUR.opus new file mode 100644 index 0000000..e0c0e8c Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_FOUR.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_CLOSE.mp3 b/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_CLOSE.mp3 deleted file mode 100644 index c7ce440..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_CLOSE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_CLOSE.opus b/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_CLOSE.opus new file mode 100644 index 0000000..4a2f128 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_CLOSE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_OPEN.mp3 b/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_OPEN.mp3 deleted file mode 100644 index 89474fe..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_OPEN.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_OPEN.opus b/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_OPEN.opus new file mode 100644 index 0000000..000b3e2 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_GSOUND_MIC_OPEN.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_GSOUND_NC.mp3 b/config/_default_cfg_src_/res/en/SOUND_GSOUND_NC.mp3 deleted file mode 100644 index a160d32..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_GSOUND_NC.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_GSOUND_NC.opus b/config/_default_cfg_src_/res/en/SOUND_GSOUND_NC.opus new file mode 100644 index 0000000..94fe15f Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_GSOUND_NC.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_HUNG_UP.mp3 b/config/_default_cfg_src_/res/en/SOUND_HUNG_UP.mp3 deleted file mode 100644 index eb4c3e4..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_HUNG_UP.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_HUNG_UP.opus b/config/_default_cfg_src_/res/en/SOUND_HUNG_UP.opus new file mode 100644 index 0000000..f64d392 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_HUNG_UP.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_INCOMING_CALL.mp3 b/config/_default_cfg_src_/res/en/SOUND_INCOMING_CALL.mp3 deleted file mode 100644 index e2ad252..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_INCOMING_CALL.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_INCOMING_CALL.opus b/config/_default_cfg_src_/res/en/SOUND_INCOMING_CALL.opus new file mode 100644 index 0000000..961fe4d Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_INCOMING_CALL.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_LANGUAGE_SWITCH.mp3 b/config/_default_cfg_src_/res/en/SOUND_LANGUAGE_SWITCH.mp3 deleted file mode 100644 index eb4c3e4..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_LANGUAGE_SWITCH.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_LANGUAGE_SWITCH.opus b/config/_default_cfg_src_/res/en/SOUND_LANGUAGE_SWITCH.opus new file mode 100644 index 0000000..5723003 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_LANGUAGE_SWITCH.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_MUTE.opus b/config/_default_cfg_src_/res/en/SOUND_MUTE.opus new file mode 100644 index 0000000..9ea6899 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_MUTE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_NINE.mp3 b/config/_default_cfg_src_/res/en/SOUND_NINE.mp3 deleted file mode 100644 index 2b1a06d..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_NINE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_NINE.opus b/config/_default_cfg_src_/res/en/SOUND_NINE.opus new file mode 100644 index 0000000..be3a6a7 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_NINE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ONE.mp3 b/config/_default_cfg_src_/res/en/SOUND_ONE.mp3 deleted file mode 100644 index 1fc1d35..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_ONE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ONE.opus b/config/_default_cfg_src_/res/en/SOUND_ONE.opus new file mode 100644 index 0000000..4c4d13e Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_ONE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_OVER.mp3 b/config/_default_cfg_src_/res/en/SOUND_OVER.mp3 deleted file mode 100644 index e8f597c..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_OVER.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_OVER.opus b/config/_default_cfg_src_/res/en/SOUND_OVER.opus new file mode 100644 index 0000000..6a59b3b Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_OVER.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIRING.mp3 b/config/_default_cfg_src_/res/en/SOUND_PAIRING.mp3 deleted file mode 100644 index 0818c88..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_PAIRING.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIRING.opus b/config/_default_cfg_src_/res/en/SOUND_PAIRING.opus new file mode 100644 index 0000000..438d77f Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_PAIRING.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIRING_FAIL.mp3 b/config/_default_cfg_src_/res/en/SOUND_PAIRING_FAIL.mp3 deleted file mode 100644 index 1cd48d6..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_PAIRING_FAIL.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIRING_FAIL.opus b/config/_default_cfg_src_/res/en/SOUND_PAIRING_FAIL.opus new file mode 100644 index 0000000..d7b7eee Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_PAIRING_FAIL.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIRING_SUCCESS.mp3 b/config/_default_cfg_src_/res/en/SOUND_PAIRING_SUCCESS.mp3 deleted file mode 100644 index e7cfee0..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_PAIRING_SUCCESS.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIRING_SUCCESS.opus b/config/_default_cfg_src_/res/en/SOUND_PAIRING_SUCCESS.opus new file mode 100644 index 0000000..b918823 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_PAIRING_SUCCESS.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIR_ENABLE.mp3 b/config/_default_cfg_src_/res/en/SOUND_PAIR_ENABLE.mp3 deleted file mode 100644 index 0818c88..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_PAIR_ENABLE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_PAIR_ENABLE.opus b/config/_default_cfg_src_/res/en/SOUND_PAIR_ENABLE.opus new file mode 100644 index 0000000..30f2880 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_PAIR_ENABLE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_POWER_OFF.mp3 b/config/_default_cfg_src_/res/en/SOUND_POWER_OFF.mp3 deleted file mode 100644 index 5891aa9..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_POWER_OFF.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_POWER_OFF.opus b/config/_default_cfg_src_/res/en/SOUND_POWER_OFF.opus new file mode 100644 index 0000000..e731729 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_POWER_OFF.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_POWER_ON.mp3 b/config/_default_cfg_src_/res/en/SOUND_POWER_ON.mp3 deleted file mode 100644 index bc55724..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_POWER_ON.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_POWER_ON.opus b/config/_default_cfg_src_/res/en/SOUND_POWER_ON.opus new file mode 100644 index 0000000..12e0ea8 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_POWER_ON.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_REFUSE.mp3 b/config/_default_cfg_src_/res/en/SOUND_REFUSE.mp3 deleted file mode 100644 index 03a696f..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_REFUSE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_REFUSE.opus b/config/_default_cfg_src_/res/en/SOUND_REFUSE.opus new file mode 100644 index 0000000..543298f Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_REFUSE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_SEVEN.mp3 b/config/_default_cfg_src_/res/en/SOUND_SEVEN.mp3 deleted file mode 100644 index bc3690e..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_SEVEN.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_SEVEN.opus b/config/_default_cfg_src_/res/en/SOUND_SEVEN.opus new file mode 100644 index 0000000..f66369c Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_SEVEN.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_SIX.mp3 b/config/_default_cfg_src_/res/en/SOUND_SIX.mp3 deleted file mode 100644 index d556aa9..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_SIX.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_SIX.opus b/config/_default_cfg_src_/res/en/SOUND_SIX.opus new file mode 100644 index 0000000..a4eb0c8 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_SIX.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_THREE.mp3 b/config/_default_cfg_src_/res/en/SOUND_THREE.mp3 deleted file mode 100644 index 98d517e..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_THREE.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_THREE.opus b/config/_default_cfg_src_/res/en/SOUND_THREE.opus new file mode 100644 index 0000000..5a9ac39 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_THREE.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_TWO.mp3 b/config/_default_cfg_src_/res/en/SOUND_TWO.mp3 deleted file mode 100644 index 7ac8bbe..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_TWO.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_TWO.opus b/config/_default_cfg_src_/res/en/SOUND_TWO.opus new file mode 100644 index 0000000..057202d Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_TWO.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_WARNING.mp3 b/config/_default_cfg_src_/res/en/SOUND_WARNING.mp3 deleted file mode 100644 index eb4c3e4..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_WARNING.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_WARNING.opus b/config/_default_cfg_src_/res/en/SOUND_WARNING.opus new file mode 100644 index 0000000..fefdfa4 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_WARNING.opus differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ZERO.mp3 b/config/_default_cfg_src_/res/en/SOUND_ZERO.mp3 deleted file mode 100644 index 4001085..0000000 Binary files a/config/_default_cfg_src_/res/en/SOUND_ZERO.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/SOUND_ZERO.opus b/config/_default_cfg_src_/res/en/SOUND_ZERO.opus new file mode 100644 index 0000000..f66df33 Binary files /dev/null and b/config/_default_cfg_src_/res/en/SOUND_ZERO.opus differ diff --git a/config/_default_cfg_src_/res/en/dudu.mp3 b/config/_default_cfg_src_/res/en/dudu.mp3 deleted file mode 100644 index df2c622..0000000 Binary files a/config/_default_cfg_src_/res/en/dudu.mp3 and /dev/null differ diff --git a/config/_default_cfg_src_/res/en/dudu.opus b/config/_default_cfg_src_/res/en/dudu.opus new file mode 100644 index 0000000..f73b7b8 Binary files /dev/null and b/config/_default_cfg_src_/res/en/dudu.opus differ diff --git a/convert.sh b/convert.sh index ef58349..e6be442 100755 --- a/convert.sh +++ b/convert.sh @@ -1,74 +1,79 @@ #!/bin/sh + txt_to_wav() { - hash=$(echo $arg1 | md5sum | cut -d" " -f1) - xxd -r -p $arg1 > out-$hash.sbc - # sbcinfo out-$hash.sbc + hash="$(md5sum "$1" | cut -d ' ' -f 1)" + filename="out-$hash.sbc" + + xxd -r -p "$1" > "$filename" + ffmpeg -y \ - -v quiet `# verbosity - other options are "quiet", "error", "panic"` \ - -f sbc `# accept SBC format` \ - -ac 1 `# audio channel: #1` \ - -i ./out-$hash.sbc `# input file: out.raw` \ - $arg2 `# output to $arg2` - rm out-$hash.sbc + -v quiet `# verbosity - other options are "quiet", "error", "panic"` \ + -f sbc `# accept SBC format` \ + -ac 1 `# audio channel: #1` \ + -i "$filename" `# input file: out-$hash.sbc` \ + "$2" `# output to $2` + + rm "$filename" } audio_to_txt() { - hash=$(echo $arg1 | md5sum | cut -d" " -f1) - ffmpeg -y \ - -v quiet `# verbosity - other options are "quiet", "error", "panic"` \ - -i $arg1 `#input file: $arg1` \ - -f sbc `#output format: SBC` \ - -ar 16000 `# audio rate: 16 kHz` \ - -ac 1 `# audio channel: #1` \ - -aq 16 `# audio quality: 16 (for SBC this means bitpool=16)` \ - -map_metadata -1 `# ????` \ - out-$hash.sbc `# output to out.raw` + hash="$(md5sum "$1" | cut -d ' ' -f 1)" + filename="out-$hash.sbc" - # sbcinfo out-$hash.sbc - xxd -i out-$hash.sbc `# output in C include file style` \ + ffmpeg -y \ + -v quiet `# verbosity - other options are "quiet", "error", "panic"` \ + -i "$1" `# input file: $1` \ + -f sbc `# output format: SBC` \ + -ar 16000 `# audio rate: 16 kHz` \ + -ac 1 `# audio channel: #1` \ + -aq 16 `# audio quality: 16 (for SBC this means bitpool=16)` \ + -map_metadata -1 `# strip metadata` \ + "$filename" `# output to out-$hash.sbc` + + xxd -i "$filename" `# output in C include file style` \ | head -n -2 `# skip last two xxd outline lines (skip C formatting)` \ | tail -n +2 `# start output on line 2 of xxd output (skip C formatting)` \ | sed 's/ //g' `# remove spaces` \ | tr --delete '\n' `# remove newlines` \ | sed 's/,/\,\n/16; P; D' `# collect into lines with the right length` \ - > $arg2 - rm out-$hash.sbc + > "$2" + + rm "$filename" } audio_to_cpp() { - hash=$(echo $arg1 | md5sum | cut -d" " -f1) - filename="out-$hash.sbc" - varname=$(echo $arg1 | rev | cut -c5- | cut -d"/" -f1 | rev | tr '[:lower:]' '[:upper:]' | tr "/" _) + varname="$(basename "$1" | rev | cut -f 2- -d '.' | rev | tr '[:lower:]/' '[:upper:]_')" + ffmpeg -y \ - -v quiet `# verbosity - other options are "quiet", "error", "panic"` \ - -i $arg1 `#input file: $arg1` \ - -f sbc `#output format: SBC` \ - -ar 16000 `# audio rate: 16 kHz` \ - -ac 1 `# audio channel: #1` \ - -aq 16 `# audio quality: 16 (for SBC this means bitpool=16)` \ - -map_metadata -1 `# ????` \ - $varname `# output to something like EN_SOUND_POWER_ON` + -v quiet `# verbosity - other options are "quiet", "error", "panic"` \ + -i "$1" `# input file: $1` \ + -f sbc `# output format: SBC` \ + -ar 16000 `# audio rate: 16 kHz` \ + -ac 1 `# audio channel: #1` \ + -aq 16 `# audio quality: 16 (for SBC this means bitpool=16)` \ + -map_metadata -1 `# strip metadata` \ + "$varname" `# output to something like EN_SOUND_POWER_ON` - echo "#include \n" > $arg2 + printf '#include \n' > "$2" - # sbcinfo out-$hash.sbc - xxd -i $varname `# output in C include file style` \ - >> $arg2 + xxd -i "$varname" `# output in C include file style` \ + >> "$2" - sed -i "s/unsigned char/uint8_t/g" $arg2 - - #rm $filename + sed -i 's/unsigned char/uint8_t/g' "$2" + + rm "$varname" } -[ "${1}" = "-T" ] || [ "${1}" = "--txt-to-wav" ] && shift 1 && args=$@ && arg1=$(echo $args | cut -d" " -f1) && arg2=$(echo $args | cut -d" " -f2) && txt_to_wav && exit -[ "${1}" = "-A" ] || [ "${1}" = "--audio-to-txt" ] && shift 1 && args=$@ && arg1=$(echo $args | cut -d" " -f1) && arg2=$(echo $args | cut -d" " -f2) && audio_to_txt && exit -[ "${1}" = "-C" ] || [ "${1}" = "--audio-to-cpp" ] && shift 1 && args=$@ && arg1=$(echo $args | cut -d" " -f1) && arg2=$(echo $args | cut -d" " -f2) && audio_to_cpp && exit +[ "$1" = '-T' ] || [ "$1" = '--txt-to-wav' ] && shift 1 && txt_to_wav "$@" && exit +[ "$1" = '-A' ] || [ "$1" = '--audio-to-txt' ] && shift 1 && audio_to_txt "$@" && exit +[ "$1" = '-C' ] || [ "$1" = '--audio-to-cpp' ] && shift 1 && audio_to_cpp "$@" && exit + echo " Sound format converter: Usage: - ./convert.sh [option] [input-file] [output-file] + $0 [option] [input-file] [output-file] Options: --T or --txt-to-wav Converts the text file to a wav audio file --A or --audio-to-txt Converts a wav file to a file readable by the old pinebuds firmware --C or --audio-to-cpp Converts a wav file to a file compilable into the pinebuds firmware + -T or --txt-to-wav Converts the text file to a wav audio file + -A or --audio-to-txt Converts an audio file to a file readable by the old pinebuds firmware + -C or --audio-to-cpp Converts an audio file to a file compilable into the pinebuds firmware " diff --git a/scripts/build.mk b/scripts/build.mk index 25c60cc..cd64b88 100644 --- a/scripts/build.mk +++ b/scripts/build.mk @@ -244,11 +244,11 @@ $(obj)/%.i: $(src)/%.cpp FORCE $(obj)/%.i: $(src)/%.cc FORCE $(call if_changed_dep,cc_i_c++) -# Convert sounds (.mp3 to .txt) +# Convert sounds (audio to .cpp) # --------------------------------------------------------------------------- -%.snd.cpp: %.mp3 FORCE - ../.././convert.sh -C $< $@ +%.snd.cpp: % FORCE + ../../convert.sh -C $< $@ # $(call if_changed_dep,as_s_S) TODO! Reference, delete once implemented below diff --git a/services/bt_app/Makefile b/services/bt_app/Makefile index c5624b9..45335d7 100644 --- a/services/bt_app/Makefile +++ b/services/bt_app/Makefile @@ -9,9 +9,9 @@ ifeq ($(VOICE_DATAPATH_TYPE),gsound) obj_cpp += $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)/app_voice/app_$(VOICE_DATAPATH_TYPE)/*.cpp)) endif -obj_mp3 := $(patsubst $(cur_dir)%,%,$(wildcard ../../config/_default_cfg_src_/res/$(AUDIO)/*.mp3)) +obj_snd := $(patsubst $(cur_dir)%,%,$(wildcard ../../config/_default_cfg_src_/res/$(AUDIO)/*)) -obj-y := $(obj_mp3:.mp3=.snd.o) $(obj_mp3:.mp3=.snd.cpp) $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o) +obj-y := $(obj_snd:=.snd.o) $(obj_snd:=.snd.cpp) $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o) obj-y += a2dp_codecs/ diff --git a/services/bt_app/app_media_player.cpp b/services/bt_app/app_media_player.cpp index 52256a6..b76e63d 100644 --- a/services/bt_app/app_media_player.cpp +++ b/services/bt_app/app_media_player.cpp @@ -123,21 +123,15 @@ typedef struct tMediaSoundMap { } _tMediaSoundMap; const tMediaSoundMap media_sound_map[MAX_SOUND_NUMBER] = { - {(U8 *)SOUND_ZERO, SOUND_ZERO_len}, - {(U8 *)SOUND_ONE, SOUND_ONE_len}, - {(U8 *)SOUND_TWO, SOUND_TWO_len}, - {(U8 *)SOUND_THREE, SOUND_THREE_len}, - {(U8 *)SOUND_FOUR, SOUND_FOUR_len}, - {(U8 *)SOUND_FIVE, SOUND_FIVE_len}, - {(U8 *)SOUND_SIX, SOUND_SIX_len}, - {(U8 *)SOUND_SEVEN, SOUND_SEVEN_len}, - {(U8 *)SOUND_EIGHT, SOUND_EIGHT_len}, - {(U8 *)SOUND_NINE, SOUND_NINE_len}, + {(U8 *)SOUND_ZERO, SOUND_ZERO_len}, {(U8 *)SOUND_ONE, SOUND_ONE_len}, + {(U8 *)SOUND_TWO, SOUND_TWO_len}, {(U8 *)SOUND_THREE, SOUND_THREE_len}, + {(U8 *)SOUND_FOUR, SOUND_FOUR_len}, {(U8 *)SOUND_FIVE, SOUND_FIVE_len}, + {(U8 *)SOUND_SIX, SOUND_SIX_len}, {(U8 *)SOUND_SEVEN, SOUND_SEVEN_len}, + {(U8 *)SOUND_EIGHT, SOUND_EIGHT_len}, {(U8 *)SOUND_NINE, SOUND_NINE_len}, }; -const uint8_t BT_MUTE[] = { -#include "res/SOUND_MUTE.txt" -}; +extern const uint8_t SOUND_MUTE[]; +extern const unsigned SOUND_MUTE_len; char Media_player_number[MAX_PHB_NUMBER]; @@ -449,149 +443,149 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr, uint32_t *len) { switch (id) { case AUD_ID_POWER_ON: - g_app_audio_data = (U8*)SOUND_POWER_ON; // aud_get_reouce((AUD_ID_ENUM)id, - // &g_app_audio_length, &type); + g_app_audio_data = (U8 *)SOUND_POWER_ON; // aud_get_reouce((AUD_ID_ENUM)id, + // &g_app_audio_length, &type); g_app_audio_length = SOUND_POWER_ON_len; break; case AUD_ID_POWER_OFF: - g_app_audio_data = (U8*)SOUND_POWER_OFF; + g_app_audio_data = (U8 *)SOUND_POWER_OFF; g_app_audio_length = SOUND_POWER_OFF_len; break; case AUD_ID_BT_PAIR_ENABLE: - g_app_audio_data = (U8*)SOUND_PAIR_ENABLE; + g_app_audio_data = (U8 *)SOUND_PAIR_ENABLE; g_app_audio_length = SOUND_PAIR_ENABLE_len; break; case AUD_ID_BT_PAIRING: - g_app_audio_data = (U8*)SOUND_PAIRING; + g_app_audio_data = (U8 *)SOUND_PAIRING; g_app_audio_length = SOUND_PAIRING_len; break; case AUD_ID_BT_PAIRING_SUC: - g_app_audio_data = (U8*)SOUND_PAIRING_SUCCESS; + g_app_audio_data = (U8 *)SOUND_PAIRING_SUCCESS; g_app_audio_length = SOUND_PAIRING_SUCCESS_len; break; case AUD_ID_BT_PAIRING_FAIL: - g_app_audio_data = (U8*)SOUND_PAIRING_FAIL; + g_app_audio_data = (U8 *)SOUND_PAIRING_FAIL; g_app_audio_length = SOUND_PAIRING_FAIL_len; break; case AUD_ID_BT_CALL_REFUSE: - g_app_audio_data = (U8*)SOUND_REFUSE; + g_app_audio_data = (U8 *)SOUND_REFUSE; g_app_audio_length = SOUND_REFUSE_len; break; case AUD_ID_BT_CALL_OVER: - g_app_audio_data = (U8*)SOUND_OVER; + g_app_audio_data = (U8 *)SOUND_OVER; g_app_audio_length = SOUND_OVER_len; break; case AUD_ID_BT_CALL_ANSWER: - g_app_audio_data = (U8*)SOUND_ANSWER; + g_app_audio_data = (U8 *)SOUND_ANSWER; g_app_audio_length = SOUND_ANSWER_len; break; case AUD_ID_BT_CALL_HUNG_UP: - g_app_audio_data = (U8*)SOUND_HUNG_UP; + g_app_audio_data = (U8 *)SOUND_HUNG_UP; g_app_audio_length = SOUND_HUNG_UP_len; break; case AUD_ID_BT_CALL_INCOMING_CALL: - g_app_audio_data = (U8*)SOUND_INCOMING_CALL; + g_app_audio_data = (U8 *)SOUND_INCOMING_CALL; g_app_audio_length = SOUND_INCOMING_CALL_len; break; case AUD_ID_BT_CHARGE_PLEASE: - g_app_audio_data = (U8*)SOUND_CHARGE_PLEASE; + g_app_audio_data = (U8 *)SOUND_CHARGE_PLEASE; g_app_audio_length = SOUND_CHARGE_PLEASE_len; break; case AUD_ID_BT_CHARGE_FINISH: - g_app_audio_data = (U8*)SOUND_CHARGE_FINISH; + g_app_audio_data = (U8 *)SOUND_CHARGE_FINISH; g_app_audio_length = SOUND_CHARGE_FINISH_len; break; case AUD_ID_BT_CONNECTED: - g_app_audio_data = (U8*)SOUND_CONNECTED; + g_app_audio_data = (U8 *)SOUND_CONNECTED; g_app_audio_length = SOUND_CONNECTED_len; break; case AUD_ID_BT_DIS_CONNECT: - g_app_audio_data = (U8*)SOUND_DIS_CONNECT; + g_app_audio_data = (U8 *)SOUND_DIS_CONNECT; g_app_audio_length = SOUND_DIS_CONNECT_len; break; case AUD_ID_BT_WARNING: - g_app_audio_data = (U8*)SOUND_WARNING; + g_app_audio_data = (U8 *)SOUND_WARNING; g_app_audio_length = SOUND_WARNING_len; break; case AUDIO_ID_BT_ALEXA_START: - g_app_audio_data = (U8*)SOUND_ALEXA_START; + g_app_audio_data = (U8 *)SOUND_ALEXA_START; g_app_audio_length = SOUND_ALEXA_START_len; break; case AUDIO_ID_BT_ALEXA_STOP: case AUDIO_ID_FIND_MY_BUDS: case AUDIO_ID_FIND_TILE: - g_app_audio_data = (U8*)SOUND_ALEXA_STOP; + g_app_audio_data = (U8 *)SOUND_ALEXA_STOP; g_app_audio_length = SOUND_ALEXA_STOP_len; break; case AUDIO_ID_BT_GSOUND_MIC_OPEN: - g_app_audio_data = (U8*)SOUND_GSOUND_MIC_OPEN; + g_app_audio_data = (U8 *)SOUND_GSOUND_MIC_OPEN; g_app_audio_length = SOUND_GSOUND_MIC_OPEN_len; break; case AUDIO_ID_BT_GSOUND_MIC_CLOSE: - g_app_audio_data = (U8*)SOUND_GSOUND_MIC_CLOSE; + g_app_audio_data = (U8 *)SOUND_GSOUND_MIC_CLOSE; g_app_audio_length = SOUND_GSOUND_MIC_CLOSE_len; break; case AUDIO_ID_BT_GSOUND_NC: - g_app_audio_data = (U8*)SOUND_GSOUND_NC; + g_app_audio_data = (U8 *)SOUND_GSOUND_NC; g_app_audio_length = SOUND_GSOUND_NC_len; break; case AUD_ID_LANGUAGE_SWITCH: - g_app_audio_data = (U8*)SOUND_LANGUAGE_SWITCH; + g_app_audio_data = (U8 *)SOUND_LANGUAGE_SWITCH; g_app_audio_length = SOUND_LANGUAGE_SWITCH_len; break; case AUDIO_ID_BT_MUTE: - g_app_audio_data = (U8 *)BT_MUTE; - g_app_audio_length = sizeof(BT_MUTE); + g_app_audio_data = (U8 *)SOUND_MUTE; + g_app_audio_length = SOUND_MUTE_len; break; case AUD_ID_NUM_0: - g_app_audio_data = (U8*)SOUND_ZERO; + g_app_audio_data = (U8 *)SOUND_ZERO; g_app_audio_length = SOUND_ZERO_len; break; case AUD_ID_NUM_1: - g_app_audio_data = (U8*)SOUND_ONE; + g_app_audio_data = (U8 *)SOUND_ONE; g_app_audio_length = SOUND_ONE_len; break; case AUD_ID_NUM_2: - g_app_audio_data = (U8*)SOUND_TWO; + g_app_audio_data = (U8 *)SOUND_TWO; g_app_audio_length = SOUND_TWO_len; break; case AUD_ID_NUM_3: - g_app_audio_data = (U8*)SOUND_THREE; + g_app_audio_data = (U8 *)SOUND_THREE; g_app_audio_length = SOUND_THREE_len; break; case AUD_ID_NUM_4: - g_app_audio_data = (U8*)SOUND_FOUR; + g_app_audio_data = (U8 *)SOUND_FOUR; g_app_audio_length = SOUND_FOUR_len; break; case AUD_ID_NUM_5: - g_app_audio_data = (U8*)SOUND_FIVE; + g_app_audio_data = (U8 *)SOUND_FIVE; g_app_audio_length = SOUND_FIVE_len; break; case AUD_ID_NUM_6: - g_app_audio_data = (U8*)SOUND_SIX; + g_app_audio_data = (U8 *)SOUND_SIX; g_app_audio_length = SOUND_SIX_len; break; case AUD_ID_NUM_7: - g_app_audio_data = (U8*)SOUND_SEVEN; + g_app_audio_data = (U8 *)SOUND_SEVEN; g_app_audio_length = SOUND_SEVEN_len; break; case AUD_ID_NUM_8: - g_app_audio_data = (U8*)SOUND_EIGHT; + g_app_audio_data = (U8 *)SOUND_EIGHT; g_app_audio_length = SOUND_EIGHT_len; break; case AUD_ID_NUM_9: - g_app_audio_data = (U8*)SOUND_NINE; + g_app_audio_data = (U8 *)SOUND_NINE; g_app_audio_length = SOUND_NINE_len; break; #ifdef __BT_WARNING_TONE_MERGE_INTO_STREAM_SBC__ case AUD_ID_RING_WARNING: - g_app_audio_data = (U8*)RES_AUD_RING_SAMPRATE_16000; + g_app_audio_data = (U8 *)RES_AUD_RING_SAMPRATE_16000; g_app_audio_length = RES_AUD_RING_SAMPRATE_16000; break; #endif #ifdef __INTERACTION__ case AUD_ID_BT_FINDME: - g_app_audio_data = (U8*)SOUND_FINDME; + g_app_audio_data = (U8 *)SOUND_FINDME; g_app_audio_length = SOUND_FINDME_len; break; #endif diff --git a/services/bt_app/res_audio_data.h b/services/bt_app/res_audio_data.h index cac08fb..bdbdcb2 100644 --- a/services/bt_app/res_audio_data.h +++ b/services/bt_app/res_audio_data.h @@ -1,3 +1,5 @@ +#pragma once + /*************************************************************************** * * Copyright 2015-2019 BES. @@ -13,148 +15,75 @@ * trademark and other intellectual property rights. * ****************************************************************************/ - #ifdef MEDIA_PLAYER_SUPPORT -extern const uint8_t SOUND_POWER_ON []; - -extern const uint8_t SOUND_POWER_OFF []; - +extern const uint8_t SOUND_POWER_ON[]; +extern const uint8_t SOUND_POWER_OFF[]; extern const uint8_t SOUND_ZERO[]; - extern const uint8_t SOUND_ONE[]; - extern const uint8_t SOUND_TWO[]; - extern const uint8_t SOUND_THREE[]; - extern const uint8_t SOUND_FOUR[]; - extern const uint8_t SOUND_FIVE[]; - extern const uint8_t SOUND_SIX[]; - -extern const uint8_t SOUND_SEVEN []; - -extern const uint8_t SOUND_EIGHT []; - -extern const uint8_t SOUND_NINE []; - +extern const uint8_t SOUND_SEVEN[]; +extern const uint8_t SOUND_EIGHT[]; +extern const uint8_t SOUND_NINE[]; extern const uint8_t SOUND_PAIR_ENABLE[]; - extern const uint8_t SOUND_PAIRING[]; - extern const uint8_t SOUND_PAIRING_FAIL[]; - extern const uint8_t SOUND_PAIRING_SUCCESS[]; - extern const uint8_t SOUND_REFUSE[]; - extern const uint8_t SOUND_OVER[]; - extern const uint8_t SOUND_ANSWER[]; - extern const uint8_t SOUND_HUNG_UP[]; - -extern const uint8_t SOUND_CONNECTED []; - -extern const uint8_t SOUND_DIS_CONNECT []; - +extern const uint8_t SOUND_CONNECTED[]; +extern const uint8_t SOUND_DIS_CONNECT[]; extern const uint8_t SOUND_INCOMING_CALL[]; - extern const uint8_t SOUND_CHARGE_PLEASE[]; - extern const uint8_t SOUND_CHARGE_FINISH[]; - extern const uint8_t SOUND_LANGUAGE_SWITCH[]; - extern const uint8_t SOUND_WARNING[]; - extern const uint8_t SOUND_ALEXA_START[]; - extern const uint8_t SOUND_ALEXA_STOP[]; - extern const uint8_t SOUND_GSOUND_MIC_OPEN[]; - extern const uint8_t SOUND_GSOUND_MIC_CLOSE[]; - extern const uint8_t DUDU[]; - extern const uint8_t SOUND_GSOUND_NC[]; - - - - - - -extern unsigned int SOUND_POWER_ON_len; - -extern unsigned int SOUND_POWER_OFF_len; - -extern unsigned int SOUND_ZERO_len; - -extern unsigned int SOUND_ONE_len; - -extern unsigned int SOUND_TWO_len; - -extern unsigned int SOUND_THREE_len; - -extern unsigned int SOUND_FOUR_len; - -extern unsigned int SOUND_FIVE_len; - -extern unsigned int SOUND_SIX_len; - -extern unsigned int SOUND_SEVEN_len; - -extern unsigned int SOUND_EIGHT_len; - -extern unsigned int SOUND_NINE_len; - -extern unsigned int SOUND_PAIR_ENABLE_len; - -extern unsigned int SOUND_PAIRING_len; - -extern unsigned int SOUND_PAIRING_FAIL_len; - -extern unsigned int SOUND_PAIRING_SUCCESS_len; - -extern unsigned int SOUND_REFUSE_len; - -extern unsigned int SOUND_OVER_len; - -extern unsigned int SOUND_ANSWER_len; - -extern unsigned int SOUND_HUNG_UP_len; - -extern unsigned int SOUND_CONNECTED_len; - -extern unsigned int SOUND_DIS_CONNECT_len; - -extern unsigned int SOUND_INCOMING_CALL_len; - -extern unsigned int SOUND_CHARGE_PLEASE_len; - -extern unsigned int SOUND_CHARGE_FINISH_len; - -extern unsigned int SOUND_LANGUAGE_SWITCH_len; - -extern unsigned int SOUND_WARNING_len; - -extern unsigned int SOUND_ALEXA_START_len; - -extern unsigned int SOUND_ALEXA_STOP_len; - -extern unsigned int SOUND_GSOUND_MIC_OPEN_len; - -extern unsigned int SOUND_GSOUND_MIC_CLOSE_len; - -extern unsigned int DUDU_len; - -extern unsigned int SOUND_GSOUND_NC_len; - - +extern const unsigned SOUND_POWER_ON_len; +extern const unsigned SOUND_POWER_OFF_len; +extern const unsigned SOUND_ZERO_len; +extern const unsigned SOUND_ONE_len; +extern const unsigned SOUND_TWO_len; +extern const unsigned SOUND_THREE_len; +extern const unsigned SOUND_FOUR_len; +extern const unsigned SOUND_FIVE_len; +extern const unsigned SOUND_SIX_len; +extern const unsigned SOUND_SEVEN_len; +extern const unsigned SOUND_EIGHT_len; +extern const unsigned SOUND_NINE_len; +extern const unsigned SOUND_PAIR_ENABLE_len; +extern const unsigned SOUND_PAIRING_len; +extern const unsigned SOUND_PAIRING_FAIL_len; +extern const unsigned SOUND_PAIRING_SUCCESS_len; +extern const unsigned SOUND_REFUSE_len; +extern const unsigned SOUND_OVER_len; +extern const unsigned SOUND_ANSWER_len; +extern const unsigned SOUND_HUNG_UP_len; +extern const unsigned SOUND_CONNECTED_len; +extern const unsigned SOUND_DIS_CONNECT_len; +extern const unsigned SOUND_INCOMING_CALL_len; +extern const unsigned SOUND_CHARGE_PLEASE_len; +extern const unsigned SOUND_CHARGE_FINISH_len; +extern const unsigned SOUND_LANGUAGE_SWITCH_len; +extern const unsigned SOUND_WARNING_len; +extern const unsigned SOUND_ALEXA_START_len; +extern const unsigned SOUND_ALEXA_STOP_len; +extern const unsigned SOUND_GSOUND_MIC_OPEN_len; +extern const unsigned SOUND_GSOUND_MIC_CLOSE_len; +extern const unsigned DUDU_len; +extern const unsigned SOUND_GSOUND_NC_len; #ifdef __INTERACTION__ extern const uint8_t SOUND_FINDME[];