# No output from ASR Pipeline using Whisper

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-output-from-asr-pipeline-using-whisper%2F53995%3E%5C
**Category:** Beginners\
**Created:** [September 7, 2023, 7:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-output-from-asr-pipeline-using-whisper%2F53995 "2023-09-07T19:36:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![awesomefaec](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@awesomefaec](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fawesomefaec)%5C
**Post date:** [September 7, 2023, 7:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-output-from-asr-pipeline-using-whisper%2F53995%2F1 "2023-09-07T19:36:34Z")

</div>

Hello all,

I am attempting to using Whisper to transcribe long-form audio recordings using `pipeline()`. I followed the brief tutorial listed on the [openai/whisper-small.en](https://huggingface.co/openai/whisper-small.en) model page under the “Long-form Transcription” section.

When I run the pipeline, it returns an output of `{text: ''}` without any other error message or context. I have tried passing the path to the file (str) and the loaded audio’s waveform (array) and get the same result.

I also tried loading a model and processor, calling `model.generate()` and then decoding and the output comes back as an empty string like above.

I’m not sure what is happening that is causing it to output an empty string. I have verified these audio files work as I have successfully transcribed them using OpenAI’s Whisper library.

This is the code I am running:

```auto
DEVICE = '0' if torch.cuda.is_available() else -1
file_path = 'path/to/audio_file.wav'
model_path = '/path/to/model_dir/.' # contains all the same files in the openai/whisper-small.en repo

model = tf.WhisperForConditionalGeneration.from_pretrained(
   pretrained_model_name_or_path=model_path
   )
tokenizer = tf.WhisperTokenizerFast.from_pretrained(
   pretrained_model_name_or_path=model_path
   )
extractor = tf.WhisperFeatureExtractor.from_pretrained(
   pretrained_model_name_or_path=model_path
   )

pipe = pipeline(
   task='automatic-speech-recognition',
   model=model,
   tokenizer=tokenizer,
   extractor=extractor,
   device=DEVICE
   )

result = pipe(file_path)
print(result)

```

Output:

```auto
{text: ''}

```

---

<div class="post-metadata">

**Author:** ![awesomefaec](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@awesomefaec](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fawesomefaec)%5C
**Post date:** [September 8, 2023, 12:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-output-from-asr-pipeline-using-whisper%2F53995%2F2 "2023-09-08T00:49:15Z")

</div>

I resolved the issue, turns out there was an issue with one of the downloaded config files.
