Skip to content
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

error:No ephemeral key #12

Open
Orange117 opened this issue Jan 24, 2025 · 1 comment
Open

error:No ephemeral key #12

Orange117 opened this issue Jan 24, 2025 · 1 comment

Comments

@Orange117
Copy link

When I start the service, it always shows "No ephemeral key provided by the server." It seems to be related to the realtime API, but I don’t know how to resolve it. Requesting help.

@paulgeorge
Copy link

I think this is the same as the error I was seeing, which was something like 'cannot connect to device'. Or maybe 'cannot read properties of undefined (reading 'getUserMedia')

This happened in Chrome and Edge, if I opened the browser developer console, and clicked on the link to the .ts file, it would jump to the line for EPHEMERAL_KEY in App.tsx

Resolution

I was connected to the Windows 11 machine via remote desktop (RDP). When the browser session is started and using RDP, I was not prompted to allow the browser to access audio devices (microphone), instead it just fails to find any microphone, and presents these errors.

When I tried again directly on the machine running the browser, the browser prompted me to allow microphone access, which then allowed the example to run as expected. It is not obvious from the readme that this example requires audio access, I was expecting a typed chat example.

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants