Webrtc with aiohttp works but not fastapi #11835
Unanswered
pushkarprasad007
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I have a sample application (https://github.com/pushkarprasad007/llm-aiortc) which uses aiortc, where User is supposed to send the audio and then its recorded on python server on backend, and then python server is supposed to respond with 3 different audio back to back (mimicing LLM behavior where token by token are returned in streaming fashion). This project is intended to serve as a reference to lot of people who might be trying to achieve the conversational app using LLM.
There are two files to run
When I use python3.12, and I run the aiohttp code, it works fine. However, with fastapi, it gets stuck some place. Since a lot of development these days is in fastapi, it would be of great help if this project works with fastapi as well. I've spent enough time to debug, before deciding to come on this forum.
Any directions or better still, if someone can help figure, would be helpful not just for me but a whole lot of community who spent countless hours trying to make this work. I hope my earnest attempt to achieve this goes to a logical conclusion.
Steps:
Operating System
Linux, macOS
Operating System Details
Mac M1
FastAPI Version
0.111.0
Pydantic Version
Not using
Python Version
3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions