Skip to content

audio: ASR outputs the literal text <|nospeech|> into the LLM prompt #165

Open

Description

@aviv1ron1

Problem

On audio with no speech in it (silence, noise, a pure tone), the multilingual release of ibm-granite/granite-speech-5.0-470m-turboctc (the Hub repo's main since 2026-10-21) outputs the literal text <|nospeech|>.

The transformers CTC pipeline decodes with skip_special_tokens=False, so the transcript returned by ASRTranscriber._run_pipeline (src/granite_switch/vllm/audio/asr.py) is the string <|nospeech|>. That string is not empty, so it does not take the empty-transcript path in GraniteSwitchASRMultiModalProcessor._transcribe (src/granite_switch/vllm/audio/processor.py). It is tokenized and replaces the <|audio|> marker in the prompt, so the LLM receives <|nospeech|> as if the user had said it.

Who is affected

Reproduce

Transcribe one second of a 440 Hz tone, or of silence, with the multilingual release through ASRTranscriber. The returned text is <|nospeech|>.

Found while investigating #155 (see "Other findings" there).

Activity

  1. added
    bug
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions