Skip to content

Whisper onnxruntime exception on Android #633

Open
@GaryLaurenceauAva

Description

@GaryLaurenceauAva

Description

After invoking Whisper recognizer on Android multiple times consecutively, the following error is encountered:

[E:onnxruntime:, sequential_executor.cc:514 ExecuteKernel] Non-zero status code returned while running Expand node. Name:'/Expand' Status Message: invalid expand shape
Caught exception:
Non-zero status code returned while running Expand node. Name:'/Expand' Status Message: invalid expand shape
Return an empty result. Number of input frames: 300, Current tail paddings: 1000. If you see a lot of such exceptions, please consider using a larger --whisper-tail-paddings 

Reproduction Steps:

val sampleRateInHz = 16000
val samples = FloatArray(sampleRateInHz * 3)
// feed samples with 3 seconds of audio then send it for decoding.
...
sherpaOnnxOffline.decode(samples, sampleRateInHz)

Environment Details:

  • Android target API 34
  • Device arch: arm64-v8a, armeabi-v7a
  • Whisper-base.en-int8 is used
  • SherpaOnnx v1.9.11

Metadata

Metadata

Assignees

No one assigned

    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