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

Conversational AI Example Bug - AudioContext Construction Failure #123

Open
araaday opened this issue Dec 13, 2024 · 3 comments
Open

Conversational AI Example Bug - AudioContext Construction Failure #123

araaday opened this issue Dec 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@araaday
Copy link

araaday commented Dec 13, 2024

Encountered an issue when following the JavaScript example provided for conversational AI. The app fails to start a connect to Elevenlabs and throws an error related to the AudioContext construction.

Steps to Reproduce

  1. Follow the JavaScript example provided for conversational AI.
  2. Attempt to start a conversation using the provided code.
  3. Observe the error in the console.

bundle.js:1 Error starting conversation: TypeError: Failed to construct 'AudioContext': Failed to read the 'sampleRate' property from 'AudioContextOptions': The provided float value is non-finite. at c.create (bundle.js:1:6019) at p.startSession (bundle.js:1:8357) at async HTMLButtonElement.<anonymous> (bundle.js:1:14599)

@louisjoecodes
Copy link
Collaborator

Hi there! Sorry you experienced this - which sampleRate is your agent currently configured to use?

@louisjoecodes louisjoecodes added the bug Something isn't working label Dec 17, 2024
@Charles-de-Montigny
Copy link

I got the exact same error. When I console log the value of the sample rate it is set to 16000 which is supposed to be a valid value.

@ritzy1978
Copy link

The only codec that I could get working was "u-law 8000hz". All the others, I just get static.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants