vintasoftware / django-ai-assistant

Integrate AI Assistants with Django to build intelligent applications
https://vintasoftware.github.io/django-ai-assistant/
MIT License
204 stars 12 forks source link

Consider implementing OpenAI speech-to-text #88

Open pamella opened 2 months ago

pamella commented 2 months ago

Description

From OpenAI docs:

The Speech API provides support for real time audio streaming using chunk transfer encoding. This means that the audio is able to be played before the full file has been generated and made accessible.

Based on that, we could have something like an OpenAIAssistant that inherits from AIAssistant and implement a speech method that returns bytes. In addition, we could have a Django endpoint that returns a StreamingHttpResponse.


Related resources: