Skip to content

The requested API version [18] is not available, only API versions [1, 17] #394

Description

@salva-imm

Hi ,I’m encountering an error while using kolasm 0.4.0 with the following dependencies in Cargo.toml:

[dependencies]
tokio = { version = "1.32.0", features = ["full"] }
kalosm = { version = "0.4.0", features = ["sound", "metal"] }

error:

The requested API version [18] is not available, only API versions [1, 17] are supported in this build. Current ORT Version is: 1.17.1

thread 'main' panicked at /Users/salva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.4/src/lib.rs:214:25:
assertion failed: !api.is_null()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The minimal example I’m running is:

use kalosm::sound::*;

#[tokio::main]
async fn main()  {
    let whisper = Whisper::builder()
        .with_source(WhisperSource::BaseEn) // Or Tiny
        .build()
        .await
        .expect("Failed to load Whisper");

    let mic = MicInput::default();
    let stream = mic.stream();

    let mut transcribe = stream.transcribe(whisper);

    while let Some(segment) = transcribe.next().await {
        let text = segment.text();
        if !text.trim().is_empty() {
            println!("Transcribed: {}", text);
        }
    }
}

platform: macOS / Apple silicon (m3 pro) / Sequoia 15.5

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