Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions assets/sounds/README.md
Original file line number Diff line number Diff line change
@@ -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`"
```
Binary file added assets/sounds/notification.mp3
Binary file not shown.
Binary file added assets/sounds/notification.webm
Binary file not shown.
17 changes: 17 additions & 0 deletions static/sounds/README.md
Original file line number Diff line number Diff line change
@@ -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`"
```
Binary file added static/sounds/notification.mp3
Binary file not shown.
Binary file added static/sounds/notification.webm
Binary file not shown.
4 changes: 4 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export default defineConfig({
src: "./assets/img/**",
dest: "static/img",
},
{
src: "./assets/sounds/**",
dest: "static/sounds",
},
],
hook: "writeBundle",
}),
Expand Down