Skip to content

Commit

Permalink
orb-ui: sound files in debian package (#220)
Browse files Browse the repository at this point in the history
orb-ui: sound files

Now that only orb-ui handles the sounds, we can include them in the deb package
  • Loading branch information
fouge authored Sep 18, 2024
1 parent b700af2 commit 05a5fc1
Show file tree
Hide file tree
Showing 81 changed files with 313 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.wav filter=lfs diff=lfs merge=lfs -text
22 changes: 22 additions & 0 deletions .github/workflows/check-sound-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check Sound Files

on:
push:
paths:
- 'orb-ui/sound/assets/**'
- '.github/workflows/check-sound-files.yaml'

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
with:
lfs: true
- run: sudo apt-get install -y sox
- name: Check sound files
run: |
bash ./orb-ui/sound/utils/check_sounds.sh orb-ui/sound/assets/
# ensure error code is 0
exit $?
1 change: 1 addition & 0 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ jobs:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
with:
token: ${{ secrets.GIT_HUB_TOKEN }}
lfs: true
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # pin@v27
with:
github_access_token: ${{ secrets.GIT_HUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions orb-ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ chrono = "0.4.35"

[package.metadata.deb]
maintainer-scripts = "debian/"
assets = [
["sound/assets/*.wav", "/home/worldcoin/data/sounds/", "644"]
]
systemd-units = [
{ unit-name = "worldcoin-ui" },
]
Expand Down
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/silence.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/silence__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_bootup.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_error.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_internet_connection_successful.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scan_success.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_01.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_01A.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_01B.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_01C.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_02.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_02A.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_02B.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_02C.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_03.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_03A.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_03B.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_iris_scanning_loop_03C.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_overheating.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_powering_down.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_qr_code_capture.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_qr_load_success.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_signup_success.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_start_idle.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_start_signup.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/sound_user_qr_load_success.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_biometrics_finished.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_biometrics_finished__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_face_detected.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_face_detected__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_face_not_found.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_face_not_found__es-ES.wav
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_detected_initiating_scan.wav
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_duplicates.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_duplicates__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_move_closer.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_move_closer__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_move_farther.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_move_farther__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_open.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_iris_open__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_network_unreachable.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_network_unreachable__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_overheating.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_overheating__es-ES.wav
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_please_do_not_shutdown.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_please_do_not_shutdown__es-ES.wav
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_qr_code_invalid.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_qr_code_invalid__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_qr_code_not_found.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_qr_code_not_found__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_server_error.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_server_error__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_show_wifi_hotspot_qr_code.wav
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_software_outdated.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_test_firmware_warning.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_test_firmware_warning__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_timeout.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_timeout__es-ES.wav
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_whole_pattern_is_visible.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_whole_pattern_is_visible__es-ES.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_wrong_qr_code_format.wav
Git LFS file not shown
3 changes: 3 additions & 0 deletions orb-ui/sound/assets/voice_wrong_qr_code_format__es-ES.wav
Git LFS file not shown
9 changes: 9 additions & 0 deletions orb-ui/sound/utils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Sound utils

## `check_sounds.sh`

Ensure that all sounds are `.wav` files with 16-bit/sample.

```shell
$ bash ./check_sounds.sh ../assets/
```
Loading

0 comments on commit 05a5fc1

Please sign in to comment.