# Inference API error with Whisper, return\_timestamps parameter

**URL:** <https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043>\
**Category:** Inference Endpoints on the Hub\
**Created:** [April 12, 2025, 2:08am UTC](https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043 "2025-04-12T02:08:35Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![TOOTHED](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/toothed/32/47096_2.png) [@TOOTHED](https://discuss.huggingface.co/u/TOOTHED)\
**Post date:** [April 25, 2025, 3:29am UTC](https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043/13 "2025-04-25T03:29:51Z")

</div>

Right now the problem was finally solved - it is working correctly on the HF website and with API request.

_ **However** _ another change appears in API: **no more Auto-detection of audio format, content-type needs to be explitely stated**. Briefly in my case: previously I could pass the “application/octet-stream” type (raw bytes) and HF would auto detect it as OGG. But now it causes error “Content type “None” not supported.” . So the solution is to explitely state that it is “audio/ogg” content-type.

I believe in raw API request it was always the case, but I used _huggingface.js Inference Client_ which did not require explicit content-type before.

---

_[View the full topic](https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043)._
