> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bakbak.si/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bakbak.si/_mcp/server.

# Bakbak Speech-to-Text (STT) API

**Bakbak STT** transcribes speech audio into text. You can use it over:

* HTTPS (`POST https://hub.getraya.app/transcribe`) for `multipart/form-data`
* WebSocket (`wss://hub.getraya.app/transcribe`) for low-latency transcription

## Base URL

HTTPS base URL:

```
https://hub.getraya.app
```

WebSocket endpoint:

```
wss://hub.getraya.app/transcribe
```

## Interactive API Reference

* HTTPS `POST /transcribe`: available in the **STT** OpenAPI reference.
* WSS `wss://hub.getraya.app/transcribe`: available in the **STT** AsyncAPI reference with an interactive WebSocket playground.

## Authentication

Include your API key in the `X-API-Key` header:

```bash
-H "X-API-Key: <YOUR_API_KEY>"
```

## Language Codes

Use one of the following language codes in the `language` field (HTTP) or `language` field (WebSocket):

```text
as, bn, brx, doi, en, gu, hi, kn, kok, ks, mai, ml, mni, mr, ne, or, pa, sa, sat, sd, ta, te, ur
```

## Response Format

Both HTTP and WebSocket successful responses return:

```json
{
  "transcript": "....",
  "status": "success"
}
```

## Next Steps

* [Getting Started](/get-started/stt-quickstart)
* [API Reference](https://docs.bakbak.si/api-reference/speech-to-text/transcribe)