Compress notification sound more (#1625)

* Compress `notification.webm` to save some file size
This commit is contained in:
Kevin Chung
2020-09-20 02:45:10 -04:00
committed by GitHub
parent 72f9fa75c6
commit 722d45c73b
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Build uncompressed webm
```
ffmpeg -i notification.mp3 -c:a libopus notification.webm
```
## Build compressed webm
```
ffmpeg -i notification.mp3 -c:a libopus -vn -b:a 48K notification.webm
```
## To create a base64 blob of the sound file
```
echo "data:audio/webm;base64,`base64 -b 80 notification.webm`"
```