From e15b89af9889d94eca15380048fc2bf6bbc8e22e Mon Sep 17 00:00:00 2001 From: Tom Cooks Date: Wed, 30 Sep 2026 08:11:24 -0400 Subject: Fix transcription: streaming resampler trim could overrun the buffer (1.3.1-alpha) The resampler clamped nothing before Arrays.copyOfRange(buffer, drop, length), so when the fractional read position overshot the buffer end, drop could be length+1 and the copy threw IllegalArgumentException: 8194 > 8193. This broke every transcription (base and tiny, any language). Clamp drop to buffer.length. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 17bf0a0..0cf9692 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ on device. - **Transcription:** on-device, offline speech recognition with [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) using multilingual Whisper — works with **English and Italian** -- **Name:** RECCoon · **by** wuhei · **version** 1.3.0-alpha +- **Name:** RECCoon · **by** wuhei · **version** 1.3.1-alpha - **Icon:** raccoon with a microphone ## Requirements @@ -39,7 +39,7 @@ Outputs: - `app/build/outputs/apk/debug/app-debug.apk` - `app/build/outputs/apk/release/app-release.apk` -A prebuilt copy is available at `dist/RECCoon-1.3.0-alpha.apk`. Note that the +A prebuilt copy is available at `dist/RECCoon-1.3.1-alpha.apk`. Note that the sherpa-onnx AAR in `app/libs/` and the APK in `dist/` are **not** tracked in git because they are large; see `TODO.md`. -- cgit v1.2.3