Commit graph

12 commits

Author SHA1 Message Date
Richard van der Hoff
3fda0299a5
Move mediaDevices mock out of setupManualMocks ()
* Move `mediaDevices` mock out of `setupManualMocks`

This doesn't work well in test suites with multiple tests, because the
`mockReturnValue` is reset for subsequent tests.

In any case, having it mocked out automagically is *magical*. Let's make it
opt-in.

* clarify ts-ignore
2023-08-16 08:29:34 +00:00
Michael Telatynski
e1f7b0af2c
Offload some more waveform processing onto a worker () 2023-04-27 11:02:20 +01:00
Michael Telatynski
e8b92b308b
Conform more code to strict null checking ()
* Conform more code to strict null checking

* delint

* Iterate

* delint

* Fix bad test
2023-02-16 09:38:44 +00:00
Michael Weimann
526645c791
Apply prettier formatting 2022-12-12 12:24:14 +01:00
László Várady
75c2c1a572
Honor advanced audio processing settings when recording voice messages ()
* VoiceRecordings: honor advanced audio processing settings

Audio processing settings introduced in  is now taken into account
when recording a voice message.

Signed-off-by: László Várady <laszlo.varady@protonmail.com>

* VoiceRecordings: add higher-quality audio recording

When recording non-voice audio (e.g. music, FX), a different Opus encoder
application should be specified. It is also recommended to increase the
bitrate to 64-96 kb/s for musical use.

Note: the HQ mode is currently activated when noise suppression is
turned off. This is a very arbitrary condition.

Signed-off-by: László Várady <laszlo.varady@protonmail.com>

* RecorderWorklet: fix type mismatch

src/audio/VoiceRecording.ts:129:67 - Argument of type 'null' is not
assignable to parameter of type 'string | URL'.

Signed-off-by: László Várady <laszlo.varady@protonmail.com>

* VoiceRecording: test audio settings

Signed-off-by: László Várady <laszlo.varady@protonmail.com>

* Fix typos

Signed-off-by: László Várady <laszlo.varady@protonmail.com>

* VoiceRecording: refactor using destructuring assignment

Signed-off-by: László Várady <laszlo.varady@protonmail.com>

* VoiceRecording: add comments about constants and non-trivial conditions

Signed-off-by: László Várady <laszlo.varady@protonmail.com>

Signed-off-by: László Várady <laszlo.varady@protonmail.com>
2022-12-05 11:19:50 -05:00
Michael Telatynski
04bc8fb71c
Optimise Jest run in CI () 2022-11-04 10:48:08 +00:00
Michael Weimann
9096bd82d6
Extract PlaybackInterface () 2022-11-02 09:46:42 +01:00
Michael Weimann
d4f1c573ad
Fix voice broadcast recording limit () 2022-10-22 13:07:39 +02:00
Michael Telatynski
8b54be6f48
Move from browser-request to fetch () 2022-10-12 18:59:07 +01:00
Michael Weimann
c182c1c706
Generalise VoiceRecording () 2022-09-21 18:46:28 +02:00
Travis Ralston
a987ead7d2 Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
Kerry
4bf42babc7
dont re-prepare voice messages ()
* dont reprepare voice messages

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove debug

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test Playback

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test RecordingPlayback

Signed-off-by: Kerry Archibald <kerrya@element.io>

* forgotten copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-01 09:43:32 +01:00