element-x-ada/libraries/voicerecorder/impl/src
Marco Romano 00d24ce4b1
Include waveform when sending voice messages (#1650)
- New `AudioLevelCalculator` that outputs dB0v rescaled to the [0;1] range.
- `VoiceRecorder` now stores the audio levels sampled while recording, then resamples them to 100 samples to use as waveform preview.
- Waveform data is carried all the way as a `List<Float>` and converted to `List<Int>` in the [0;1024] range as per matrix spec only before sending it.
2023-10-26 17:37:24 +02:00
..
main/kotlin/io/element/android/libraries/voicerecorder/impl Include waveform when sending voice messages (#1650) 2023-10-26 17:37:24 +02:00
test/kotlin/io/element/android/libraries/voicerecorder Include waveform when sending voice messages (#1650) 2023-10-26 17:37:24 +02:00