Skip to content

**Title: [Bug] Windows: Local whisper.cpp STT fails with ClassCastException in whisper_h (v1.5.4)** #806

Closed

Description

@Michail-A389

Environment

  • Application: Askimo Desktop 1.5.4
  • Operating system: Windows, x64
  • Java runtime: 25.0.4 (reported environment)
  • Speech-to-Text provider: Local whisper.cpp (in-process)
  • Whisper model: ggml-small.bin

Problem

Local speech recognition fails when attempting to use the microphone. Askimo detects the Whisper model and attempts to load the bundled native library, but initialization of the Java Whisper bindings fails.

Text chat and text-to-speech work correctly. The issue appears specific to the local whisper.cpp speech-to-text integration.

Steps to reproduce

  1. Open Askimo Desktop 1.5.4 on Windows.
  2. Select the local in-process whisper.cpp speech-to-text provider.
  3. Download/select the Small Whisper model.
  4. Start a voice recording or transcription session.
  5. Observe that speech recognition fail.

Expected behavior

Speech should be transcribed locally using whisper.cpp.

Actual behavior

Whisper Java bindings fail during class initialization and transcription does not start.

Possible cause

The stack trace suggests an incorrect native type mapping or a mismatch in the generated Foreign Function & Memory API bindings, specifically an int layout being cast to ValueLayout.OfLong.

Could you please investigate whether the bundled whisper_h bindings are compatible with the Windows x64 native library and packaged Java runtime?

Thank you!

Activity

  1. self-assigned this
    on Nov 6, 2026
  2. haiphucnguyen commented on Nov 6, 2026

    @haiphucnguyen
    Collaborator

    Thank you @Michail-A389 . It is the different of how many bytes for Long value because this issue on windows. It will be addressed and fixed in the next release

  3. haiphucnguyen commented on Nov 10, 2026

    @haiphucnguyen
    Collaborator

    This issue has been resolved in the latest Askimo release 1.5.5. Please check and let me know if you are still experiencing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions