> For the complete documentation index, see [llms.txt](https://docs.aibrary.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aibrary.dev/audio-features/speech-to-text.md).

# Speech To Text

{% tabs %}
{% tab title="Speech to Text" %}

```python
from aibrary import AiBrary

aibrary = AiBrary()
aibrary.audio.transcriptions.create(
    model="whisper-1", file=open("path/to/audio", "rb")
)
```

{% endtab %}
{% endtabs %}

{% openapi src="/files/Dw2lhls9PkqDudu910qL" path="/v0/audio/transcriptions" method="post" %}
[openapi.json](https://2030775142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp4IwQOR0zSJQKAC7b7hY%2Fuploads%2F4Z0rHZNC7ipANhpX4HEf%2Fopenapi.json?alt=media\&token=525b1926-3989-474c-baed-7a15958ec382)
{% endopenapi %}
