feat: Option to compress audio files by ~90%

Add option to reduce bandwidth (and potentially latency) by converting
voice recordings (wav) into a compressed audio format (webm or mp3).

Default behaviour is unchanged.

> File uploads are currently limited to 25 MB and the following input file
> types are supported: mp3, mp4, mpeg, mpga, m4a, wav, and webm.
>
> - https://platform.openai.com/docs/guides/speech-to-text
This commit is contained in:
Mike Bailey 2024-09-22 18:19:22 +10:00
parent f3ad683d70
commit 1cc30a22f9
6 changed files with 32 additions and 4 deletions

View file

@ -144,6 +144,8 @@ pydantic==2.9.2
# openai
pydantic-core==2.23.4
# via pydantic
pydub==0.25.1
# via -r requirements/requirements.in
pyflakes==3.2.0
# via flake8
pygments==2.18.0