---
title: "What is Ogg Opus? The WhatsApp voice note format | BroadRouter"
description: "Ogg Opus is Opus-coded audio in an Ogg container, the format of WhatsApp voice notes. What the RFCs define, and how to convert it to WAV for transcription."
url: https://broadrouter.com/glossary/ogg-opus/
lang: en
updated: 2026-11-15
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# Ogg Opus

Updated 2026-11-15

Ogg Opus is audio encoded with the Opus codec (RFC 6716) and stored in an Ogg container (RFC 7845). It is built for speech and interactive audio at low bitrates, and it is the format WhatsApp uses for voice notes, usually as .ogg or .opus files.

Also called: Opus codec, Opus audio, Ogg, OGG file, Ogg/Opus

Download a WhatsApp voice note and you get a small `.ogg` file. Inside is Opus audio, a codec designed for voice calls.

## How it works

There are two layers, each defined by an IETF RFC:

| Layer | Spec | What it does |
| --- | --- | --- |
| Opus codec | RFC 6716 | Compresses the audio. It combines a linear-prediction layer based on SILK with an MDCT layer based on CELT, and runs from 6 kbit/s narrowband speech up to 510 kbit/s stereo music |
| Ogg container | RFC 7845 | Wraps the Opus packets in a file, starting with an `OpusHead` identification header |

RFC 6716 lists five bandwidths, from narrowband (8 kHz [sample rate](https://broadrouter.com/glossary/sample-rate/)) to fullband (48 kHz). RFC 7845 says granule positions always count samples at 48 kHz, whatever rate the decoder outputs. It recommends the `.opus` extension and the `audio/ogg` media type, optionally `audio/ogg; codecs=opus`.

Meta’s WhatsApp Cloud API media reference lists OGG audio as `audio/ogg` with “Opus codec only”, mono, up to 16 MB.

## Why it matters

-   **Many APIs will not take it.** A speech-to-text endpoint that accepts only [WAV](https://broadrouter.com/glossary/wav/) or MP3 rejects a voice note until you convert it.
-   **Conversion is cheap.** One ffmpeg command decodes Opus to PCM. The result is much larger than the voice note, so watch file-size caps.
-   **Name confusion.** “Opus” is also a model name at other providers. In audio contexts it means the codec.

## On BroadNet Inference

BroadNet’s transcription endpoint accepts WAV (`audio/wav`) or MP3 (`audio/mpeg`) only, up to 26,214,400 bytes per file. Its docs convert a WhatsApp voice note in one step:

```bash
ffmpeg -i voice-note.ogg -ar 16000 -ac 1 voice-note.wav
```

`-ar` sets the audio sampling frequency and `-ac` the number of channels, per the ffmpeg documentation, so this writes 16 kHz mono WAV. Then send it with `language=ar` (or `en`) to [BroadNet Transcribe Arabic](https://broadrouter.com/models/cohere-transcribe-arabic/) or [BroadNet Transcribe](https://broadrouter.com/models/cohere-transcribe/). The [WhatsApp voice notes guide](https://broadrouter.com/guides/transcribe-whatsapp-voice-notes/) has a script that converts and transcribes a whole folder, and the [n8n guide](https://broadrouter.com/guides/n8n-whatsapp-voice-note-transcription/) does it inside a workflow. For a voice note too long for one file, the [audio splitter](https://broadrouter.com/tools/audio-splitter-ffmpeg/) works out the chunks.

## Common mistakes

-   **Renaming instead of converting.** Changing `.ogg` to `.wav` does not change the audio inside. Decode with ffmpeg.
-   **Skipping `-ac 1`.** Stereo doubles the WAV size without helping transcription.

## Questions

### Is an .ogg file always Opus?

No. Ogg is a container and can hold other codecs. WhatsApp's Cloud API accepts audio/ogg only with the Opus codec, and only mono, so WhatsApp voice notes are Ogg Opus.

### Can I send an .ogg voice note straight to BroadNet?

No. BroadNet's transcription endpoint accepts WAV and MP3. Convert first with ffmpeg -i voice-note.ogg -ar 16000 -ac 1 voice-note.wav.

### What is the difference between .ogg and .opus files?

RFC 7845 recommends the .opus extension for Ogg Opus files and audio/ogg as the media type. Many apps still use .ogg for the same content.

## See also

-   [WAV](https://broadrouter.com/glossary/wav/) (term)
-   [Sample rate](https://broadrouter.com/glossary/sample-rate/) (term)
-   [Speech-to-text](https://broadrouter.com/glossary/speech-to-text/) (term)
-   [Voice activity detection (VAD)](https://broadrouter.com/glossary/vad/) (term)
-   [Transcribe WhatsApp voice notes to text with an API](https://broadrouter.com/guides/transcribe-whatsapp-voice-notes/) (guide)
-   [Transcribe WhatsApp voice notes in n8n](https://broadrouter.com/guides/n8n-whatsapp-voice-note-transcription/) (guide)
-   [Voice notes to text for business: WhatsApp and Telegram to tickets](https://broadrouter.com/blog/voice-notes-to-text-for-business/) (article)
-   [Arabic WhatsApp chatbot architecture: voice notes to replies](https://broadrouter.com/blog/arabic-whatsapp-chatbot-architecture/) (article)

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=glossary-ogg-opus&utm_content=page-cta) ·

**Sources**

-   [IETF RFC 6716, Definition of the Opus Audio Codec (checked 2026-11-15)](https://www.rfc-editor.org/rfc/rfc6716)
-   [IETF RFC 7845, Ogg Encapsulation for the Opus Audio Codec (checked 2026-11-15)](https://www.rfc-editor.org/rfc/rfc7845)
-   [Meta for Developers, WhatsApp Cloud API media reference: supported audio types (checked 2026-11-15)](https://developers.facebook.com/docs/whatsapp/cloud-api/reference/media)
-   [BroadNet Inference API reference: WAV and MP3 upload, ffmpeg conversion of .ogg (checked 2026-11-15)](https://inference.broadnet.ai/docs?utm_source=broadrouter&utm_medium=referral&utm_campaign=glossary-ogg-opus&utm_content=sources)
