Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Cleanup sounds (switch to mp3, encode at lower bitrate).' (#12507)
bgrozev99955df5c8df
diff --git a/react/features/base/participants/sounds.ts b/react/features/base/participants/sounds.tsindex 9e71942ee1..e0c571a9b4 100644--- a/react/features/base/participants/sounds.ts+++ b/react/features/base/participants/sounds.ts@@ -2,10 +2,10 @@* The name of the bundled sound file which will be played when new participant* joins the conference.*/-export const PARTICIPANT_JOINED_FILE = 'joined.wav';+export const PARTICIPANT_JOINED_FILE = 'joined.mp3';/*** The name of the bundled sound file which will be played when any participant* leaves the conference.*/-export const PARTICIPANT_LEFT_FILE = 'left.wav';+export const PARTICIPANT_LEFT_FILE = 'left.mp3';diff --git a/react/features/chat/sounds.ts b/react/features/chat/sounds.tsindex 1b113cb50b..e46e180daa 100644--- a/react/features/chat/sounds.ts+++ b/react/features/chat/sounds.ts@@ -4,4 +4,4 @@** @type {string}*/-export const INCOMING_MSG_SOUND_FILE = 'incomingMessage.wav';+export const INCOMING_MSG_SOUND_FILE = 'incomingMessage.mp3';diff --git a/react/features/device-selection/components/AudioOutputPreview.js b/react/features/device-selection/components/AudioOutputPreview.jsindex dbc6f47b87..73633d6016 100644--- a/react/features/device-selection/components/AudioOutputPreview.js+++ b/react/features/device-selection/components/AudioOutputPreview.js@@ -5,7 +5,7 @@ import React, { Component } from 'react';import { translate } from '../../base/i18n/functions';import Audio from '../../base/media/components/Audio';-const TEST_SOUND_PATH = 'sounds/ring.wav';+const TEST_SOUND_PATH = 'sounds/ring.mp3';/*** The type of the React {@code Component} props of {@link AudioOutputPreview}.diff --git a/react/features/invite/sounds.js b/react/features/invite/sounds.jsindex b75e292bb7..5cb71ab7ec 100644--- a/react/features/invite/sounds.js+++ b/react/features/invite/sounds.js@@ -16,13 +16,13 @@ export const sounds = new Map([* The name of the sound file which will be played when outgoing call is* expired.*/- [ OUTGOING_CALL_EXPIRED_SOUND_ID, { file: 'rejected.wav' } ],+ [ OUTGOING_CALL_EXPIRED_SOUND_ID, { file: 'rejected.mp3' } ],/*** The name of the sound file which will be played when outgoing call is* rejected.*/- [ OUTGOING_CALL_REJECTED_SOUND_ID, { file: 'rejected.wav' } ],+ [ OUTGOING_CALL_REJECTED_SOUND_ID, { file: 'rejected.mp3' } ],/*** The name of the sound file which will be played when the status of an@@ -31,7 +31,7 @@ export const sounds = new Map([[OUTGOING_CALL_RINGING_SOUND_ID,{- file: 'outgoingRinging.wav',+ file: 'outgoingRinging.mp3',options: { loop: true }}],@@ -40,5 +40,5 @@ export const sounds = new Map([* The name of the sound file which will be played when outgoing call is* started.*/- [ OUTGOING_CALL_START_SOUND_ID, { file: 'outgoingStart.wav' } ]+ [ OUTGOING_CALL_START_SOUND_ID, { file: 'outgoingStart.mp3' } ]]);diff --git a/react/features/settings/components/web/audio/SpeakerEntry.js b/react/features/settings/components/web/audio/SpeakerEntry.jsindex bc5bbb596c..ae9878cee7 100644--- a/react/features/settings/components/web/audio/SpeakerEntry.js+++ b/react/features/settings/components/web/audio/SpeakerEntry.js@@ -7,7 +7,7 @@ import logger from '../../../logger';import AudioSettingsEntry from './AudioSettingsEntry';import TestButton from './TestButton';-const TEST_SOUND_PATH = 'sounds/ring.wav';+const TEST_SOUND_PATH = 'sounds/ring.mp3';/*** The type of the React {@code Component} props of {@link SpeakerEntry}.diff --git a/resources/encode-sound.sh b/resources/encode-sound.shnew file mode 100755index 0000000000..a3de494ece--- /dev/null+++ b/resources/encode-sound.sh@@ -0,0 +1,50 @@+#!/bin/bash++usage() {+ echo "Usage: $0 [--mp3] [--opus] [--stereo] <input file ...>"+ exit 1+}++for arg in "$@"; do+ case "$arg" in+ --stereo)+ STEREO=true+ shift+ ;;+ --mp3)+ MP3=true+ shift+ ;;+ --opus)+ OPUS=true+ shift+ ;;+ esac+done++if [ $# -lt 1 ] ;then+ usage+fi++if [ "$MP3" != "true" ] ;then+ if [ "$OPUS" != "true" ] ;then+ echo "At least one of --mp3 or --opus is required"+ usage+ fi+fi++echo "STEREO=$STEREO MP3=$MP3 OPUS=$OPUS"++AC1="-ac 1"+if [ "$STEREO" = "true" ] ;then+ AC1=""+fi++for i in "$@" ;do+ if [ "$MP3" = "true" ] ;then+ ffmpeg -i "$i" -codec:a libmp3lame -qscale:a 9 -map_metadata -1 $AC1 "${i%.*}.mp3"+ fi+ if [ "$OPUS" = "true" ] ;then+ ffmpeg -i "$i" -c:a libopus -b:a 30k -vbr on -compression_level 10 -map_metadata -1 $AC1 "${i%.*}.opus"+ fi+donediff --git a/sounds/README.md b/sounds/README.mdnew file mode 100644index 0000000000..49e414e62b--- /dev/null+++ b/sounds/README.md@@ -0,0 +1,2 @@+We are trying to keep these files relatively small. Use `resources/encode-sound.sh` to+encode a file in the same way (use --stereo if stereo is needed).diff --git a/sounds/asked-unmute.mp3 b/sounds/asked-unmute.mp3index af79c9035e..2dc91dc223 100644Binary files a/sounds/asked-unmute.mp3 and b/sounds/asked-unmute.mp3 differdiff --git a/sounds/asked-unmute.opus b/sounds/asked-unmute.opusnew file mode 100644index 0000000000..ff91fc16e5Binary files /dev/null and b/sounds/asked-unmute.opus differdiff --git a/sounds/e2eeOff.mp3 b/sounds/e2eeOff.mp3index 8c22f38f91..be320d0038 100644Binary files a/sounds/e2eeOff.mp3 and b/sounds/e2eeOff.mp3 differdiff --git a/sounds/e2eeOff.opus b/sounds/e2eeOff.opusnew file mode 100644index 0000000000..e12772b08eBinary files /dev/null and b/sounds/e2eeOff.opus differdiff --git a/sounds/e2eeOn.mp3 b/sounds/e2eeOn.mp3index 48b810e34f..1ceed00c64 100644Binary files a/sounds/e2eeOn.mp3 and b/sounds/e2eeOn.mp3 differdiff --git a/sounds/e2eeOn.opus b/sounds/e2eeOn.opusnew file mode 100644index 0000000000..d4ea680085Binary files /dev/null and b/sounds/e2eeOn.opus differdiff --git a/sounds/incomingMessage.mp3 b/sounds/incomingMessage.mp3new file mode 100644index 0000000000..0029d2c80bBinary files /dev/null and b/sounds/incomingMessage.mp3 differdiff --git a/sounds/incomingMessage.opus b/sounds/incomingMessage.opusnew file mode 100644index 0000000000..5e0e27e4a0Binary files /dev/null and b/sounds/incomingMessage.opus differdiff --git a/sounds/joined.mp3 b/sounds/joined.mp3new file mode 100644index 0000000000..975e3a77aeBinary files /dev/null and b/sounds/joined.mp3 differdiff --git a/sounds/joined.opus b/sounds/joined.opusnew file mode 100644index 0000000000..4379b91d2aBinary files /dev/null and b/sounds/joined.opus differdiff --git a/sounds/knock.mp3 b/sounds/knock.mp3index 116fd32bd2..6b68ec601e 100644Binary files a/sounds/knock.mp3 and b/sounds/knock.mp3 differdiff --git a/sounds/knock.opus b/sounds/knock.opusnew file mode 100644index 0000000000..a24da2204aBinary files /dev/null and b/sounds/knock.opus differdiff --git a/sounds/left.mp3 b/sounds/left.mp3new file mode 100644index 0000000000..d0780a9498Binary files /dev/null and b/sounds/left.mp3 differdiff --git a/sounds/left.opus b/sounds/left.opusnew file mode 100644index 0000000000..7a2c25f348Binary files /dev/null and b/sounds/left.opus differdiff --git a/sounds/liveStreamingOff.mp3 b/sounds/liveStreamingOff.mp3index 186129b2b1..db7e1b8fc2 100644Binary files a/sounds/liveStreamingOff.mp3 and b/sounds/liveStreamingOff.mp3 differdiff --git a/sounds/liveStreamingOff.opus b/sounds/liveStreamingOff.opusnew file mode 100644index 0000000000..2835863c7aBinary files /dev/null and b/sounds/liveStreamingOff.opus differdiff --git a/sounds/liveStreamingOn.mp3 b/sounds/liveStreamingOn.mp3index 5bc3193014..0a1ec4982d 100644Binary files a/sounds/liveStreamingOn.mp3 and b/sounds/liveStreamingOn.mp3 differdiff --git a/sounds/liveStreamingOn.opus b/sounds/liveStreamingOn.opusnew file mode 100644index 0000000000..a7febdad32Binary files /dev/null and b/sounds/liveStreamingOn.opus differdiff --git a/sounds/noAudioSignal.mp3 b/sounds/noAudioSignal.mp3index cf07fb704c..d80cc726c6 100644Binary files a/sounds/noAudioSignal.mp3 and b/sounds/noAudioSignal.mp3 differdiff --git a/sounds/noAudioSignal.opus b/sounds/noAudioSignal.opusnew file mode 100644index 0000000000..e9eb636acaBinary files /dev/null and b/sounds/noAudioSignal.opus differdiff --git a/sounds/noisyAudioInput.mp3 b/sounds/noisyAudioInput.mp3index cf07fb704c..d80cc726c6 100644Binary files a/sounds/noisyAudioInput.mp3 and b/sounds/noisyAudioInput.mp3 differdiff --git a/sounds/noisyAudioInput.opus b/sounds/noisyAudioInput.opusnew file mode 100644index 0000000000..2282eca920Binary files /dev/null and b/sounds/noisyAudioInput.opus differdiff --git a/sounds/outgoingRinging.mp3 b/sounds/outgoingRinging.mp3new file mode 100644index 0000000000..f1103a0a73Binary files /dev/null and b/sounds/outgoingRinging.mp3 differdiff --git a/sounds/outgoingRinging.opus b/sounds/outgoingRinging.opusnew file mode 100644index 0000000000..e8f7fcaeeaBinary files /dev/null and b/sounds/outgoingRinging.opus differdiff --git a/sounds/outgoingStart.mp3 b/sounds/outgoingStart.mp3new file mode 100644index 0000000000..398ebed05dBinary files /dev/null and b/sounds/outgoingStart.mp3 differdiff --git a/sounds/outgoingStart.opus b/sounds/outgoingStart.opusnew file mode 100644index 0000000000..1dfe03163cBinary files /dev/null and b/sounds/outgoingStart.opus differdiff --git a/sounds/reactions-applause.mp3 b/sounds/reactions-applause.mp3index 39c7642c30..2254bd2fda 100644Binary files a/sounds/reactions-applause.mp3 and b/sounds/reactions-applause.mp3 differdiff --git a/sounds/reactions-applause.opus b/sounds/reactions-applause.opusnew file mode 100644index 0000000000..9e560b459cBinary files /dev/null and b/sounds/reactions-applause.opus differdiff --git a/sounds/reactions-boo.mp3 b/sounds/reactions-boo.mp3index 40e7d4f147..6ed9114116 100644Binary files a/sounds/reactions-boo.mp3 and b/sounds/reactions-boo.mp3 differdiff --git a/sounds/reactions-boo.opus b/sounds/reactions-boo.opusnew file mode 100644index 0000000000..80dc0e99a2Binary files /dev/null and b/sounds/reactions-boo.opus differdiff --git a/sounds/reactions-crickets.mp3 b/sounds/reactions-crickets.mp3index 135a747997..7e3a6c3764 100644Binary files a/sounds/reactions-crickets.mp3 and b/sounds/reactions-crickets.mp3 differdiff --git a/sounds/reactions-crickets.opus b/sounds/reactions-crickets.opusnew file mode 100644index 0000000000..f92f058a5dBinary files /dev/null and b/sounds/reactions-crickets.opus differdiff --git a/sounds/reactions-laughter.mp3 b/sounds/reactions-laughter.mp3index a84ff6ca47..772c38115b 100644Binary files a/sounds/reactions-laughter.mp3 and b/sounds/reactions-laughter.mp3 differdiff --git a/sounds/reactions-laughter.opus b/sounds/reactions-laughter.opusnew file mode 100644index 0000000000..2375b647aeBinary files /dev/null and b/sounds/reactions-laughter.opus differdiff --git a/sounds/reactions-raised-hand.mp3 b/sounds/reactions-raised-hand.mp3index e06a2d7e2a..2fd2f1e380 100644Binary files a/sounds/reactions-raised-hand.mp3 and b/sounds/reactions-raised-hand.mp3 differdiff --git a/sounds/reactions-raised-hand.opus b/sounds/reactions-raised-hand.opusnew file mode 100644index 0000000000..2c431daaa1Binary files /dev/null and b/sounds/reactions-raised-hand.opus differdiff --git a/sounds/reactions-surprise.mp3 b/sounds/reactions-surprise.mp3index 07ea6cdf03..63d48fa964 100644Binary files a/sounds/reactions-surprise.mp3 and b/sounds/reactions-surprise.mp3 differdiff --git a/sounds/reactions-surprise.opus b/sounds/reactions-surprise.opusnew file mode 100644index 0000000000..ad358a8dddBinary files /dev/null and b/sounds/reactions-surprise.opus differdiff --git a/sounds/reactions-thumbs-up.mp3 b/sounds/reactions-thumbs-up.mp3index 9ac1460986..92491a1229 100644Binary files a/sounds/reactions-thumbs-up.mp3 and b/sounds/reactions-thumbs-up.mp3 differdiff --git a/sounds/reactions-thumbs-up.opus b/sounds/reactions-thumbs-up.opusnew file mode 100644index 0000000000..989a301072Binary files /dev/null and b/sounds/reactions-thumbs-up.opus differdiff --git a/sounds/recordingOff.mp3 b/sounds/recordingOff.mp3index 7ac24a278b..3c89861824 100644Binary files a/sounds/recordingOff.mp3 and b/sounds/recordingOff.mp3 differdiff --git a/sounds/recordingOff.opus b/sounds/recordingOff.opusnew file mode 100644index 0000000000..1dad098d72Binary files /dev/null and b/sounds/recordingOff.opus differdiff --git a/sounds/recordingOn.mp3 b/sounds/recordingOn.mp3index c3f60d2015..e8b9e85995 100644Binary files a/sounds/recordingOn.mp3 and b/sounds/recordingOn.mp3 differdiff --git a/sounds/recordingOn.opus b/sounds/recordingOn.opusnew file mode 100644index 0000000000..f02bde895bBinary files /dev/null and b/sounds/recordingOn.opus differdiff --git a/sounds/rejected.mp3 b/sounds/rejected.mp3new file mode 100644index 0000000000..857acda524Binary files /dev/null and b/sounds/rejected.mp3 differdiff --git a/sounds/rejected.opus b/sounds/rejected.opusnew file mode 100644index 0000000000..46a52311faBinary files /dev/null and b/sounds/rejected.opus differdiff --git a/sounds/ring.mp3 b/sounds/ring.mp3new file mode 100644index 0000000000..937ef63865Binary files /dev/null and b/sounds/ring.mp3 differdiff --git a/sounds/ring.ogg b/sounds/ring.oggdeleted file mode 100644index ea3d614b9f..0000000000Binary files a/sounds/ring.ogg and /dev/null differdiff --git a/sounds/ring.opus b/sounds/ring.opusnew file mode 100644index 0000000000..8592011fe0Binary files /dev/null and b/sounds/ring.opus differdiff --git a/sounds/talkWhileMuted.mp3 b/sounds/talkWhileMuted.mp3index cf07fb704c..d80cc726c6 100644Binary files a/sounds/talkWhileMuted.mp3 and b/sounds/talkWhileMuted.mp3 differdiff --git a/sounds/talkWhileMuted.opus b/sounds/talkWhileMuted.opusnew file mode 100644index 0000000000..46caa7fd0bBinary files /dev/null and b/sounds/talkWhileMuted.opus differ