Azure-Samples / aisearch-openai-rag-audio

A simple example implementation of the VoiceRAG pattern to power interactive voice generative AI experiences using RAG with Azure AI Search and Azure OpenAI's gpt-4o-realtime-preview model.
https://azure.microsoft.com/products/search
MIT License
211 stars 105 forks source link

Using Quart framework #36

Open madhubandru opened 3 hours ago

madhubandru commented 3 hours ago

Can the quart framework be used in place of aiohttp in this accelerator? Will there be any compatibility issues?

I am considering using azure openai real-time audio in my existing quart application.

Any references would be greatly appreciated.

pamelafox commented 3 hours ago

I would assume so, since quart does have support for websockets, as detailed here: https://quart.palletsprojects.com/en/latest/how_to_guides/websockets.html

@pablocastro Was there a particular reason for aiohttp / did you try other frameworks and encounter issues?

pablocastro commented 2 hours ago

No particular reason, aiohttp just did everything we needed, including both client- and server-side websockets, and it's easy to use. I haven't used Quart, but it looks like it has websockets support so it should be fine, though on quick look I didn't see it has a websocket client, if it indeed doesn't have one you'll need to use something else.