Automatic Speech Recognition
Safetensors
Hebrew
qwen3_asr
asr
speech
hebrew
qwen
fine-tuned
speech-recognition
ozlabs

Unsupported language: Hebrew

#1
by yaniv91 - opened

i getting Unsupported language: Hebrew ?
anyone else is getting this? or am I missing something

Unsupported language: Hebrew. Supported: ['Chinese', 'English', 'Cantonese', 'Arabic', 'German', 'French', 'Spanish', 'Portuguese', 'Indonesian', 'Italian', 'Korean', 'Russian', 'Thai', 'Vietnamese', 'Japanese', 'Turkish', 'Hindi', 'Malay', 'Dutch', 'Swedish', 'Danish', 'Finnish', 'Polish', 'Czech', 'Filipino', 'Persian', 'Greek', 'Romanian', 'Hungarian', 'Macedonian']

this is my code πŸ˜€

import torch
from qwen_asr import Qwen3ASRModel

configure_cpu_threads(threads)
device = "cpu"
print("[1/2] Loading Caspi-1.7B...", flush=True)
load_started = time.perf_counter()
try:
    model = Qwen3ASRModel.from_pretrained(
        CASPI_MODEL,
        dtype=torch.float32,
        device_map=device,
        max_inference_batch_size=1,
    )
except Exception as error:
    raise ModelLoadError(str(error)) from error
load_time = time.perf_counter() - load_started

print("[1/2] Transcribing with Caspi...", flush=True)
transcription_started = time.perf_counter()
try:
    transcription = model.transcribe(audio=str(wav_path), language="Hebrew")
    transcript = transcription[0].text
finally:
    del model
Oz Labs org

Drop the language= argument:

transcription = model.transcribe(audio=str(wav_path))
transcript = transcription[0].text

Since Caspi is fine-tuned exclusively on Hebrew, the forced-language prefix has nothing to add to the model outputs Hebrew regardless.

guychuk changed discussion status to closed

Sign up or log in to comment