-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No audio output from deployed app #38
Comments
Are you experiencing the error with the deployed endpoint or the development server? |
I have the same problem. I tried deploying the app with the whole |
Do you see anything in the logs from the development server? Typically you'd see some thing from the web socket like 400 or 429. |
The only output I get is in the console but nothing from web sockets. The last two GET-Calls in the console are to audio-processor-worklet.js and audio-playback-worklet.js so it looks like it's trying to give output but it can't. |
Thanks for the tips, @pamelafox! I was following the docs and hoping for Entra-ID-based auth. At startup, it seems identity-based credentials are being successfully retrieved:
but given the 401 error, maybe I'm misreading those info lines. I had to set the keys to the OpenAI and AI Search services in app/backend/.env, and change the value of the search semantic configuration in order to get the local development deployment running. How does one modify a .env file that works when running locally to one that will work in the cloud with
plus maybe the following?
It's hard to debug azd deployments because it seems that each change and retest costs about 30 minutes, 10 minutes for |
The endpoint deployed to Azure without complaint but the resulting app doesn't respond. I checked the container app logs and found the 401 error again, so it seems the api key isn't being set as an environment variable, and fallback to developer CLI credential or default credential is also failing. I'm unclear how or whether main.bicep interacts with .azure/<my-azd-env-name>/.env to set environment variables. app/backend/app.py doesn't read them directly with In the repo instructions it seems that environment variables need to be set manually with command line calls to
Is there a file-based way of setting these environment variables, either with the .env file (preferred for consistency with the development approach), or a shell script? |
Here is the code that sets the environment variables for the ACA deployment: aisearch-openai-rag-audio/infra/main.bicep Line 201 in a05971e
We typically don't use .env files in production, since often our local environment might differ from the production variables, and the Bicep is the preferred way to set them. You can then see the values in the Portal when you click on a container and view its environment variables. If the auth is failing on the portal, that means the role access did not get set up correctly. Roles are set here: aisearch-openai-rag-audio/infra/main.bicep Line 351 in a05971e
If you used azd up to create all the resources, then that role access should have gone through. You can open the OpenAI resource in the Portal, click the Access control tab, and view the roles there to confirm you see the app identity. |
I've deployed the app using the dev container approach. I've not yet received an audio response from the app and am not sure where the app is breaking down. I'd be grateful for guidance in debugging my deployment.
The text was updated successfully, but these errors were encountered: