Experimenting with audio input and output for the OpenAI Chat Completion API

from blog Simon Willison's Weblog, | ↗ original
OpenAI promised this at DevDay a few weeks ago and now it's here: their Chat Completion API can now accept audio as input and return it as output. OpenAI still recommend their WebSocket-based Realtime API for audio tasks, but the Chat Completion API is a whole lot easier to write code against. Generating audio Audio input via a Bash script ...