Skip to content

Audio recording does not work on Safari #21

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

Open
dselman opened this issue Dec 18, 2024 · 3 comments
Open

Audio recording does not work on Safari #21

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

Comments

@dselman
Copy link

dselman commented Dec 18, 2024

Description of the bug:

There are no errors but audio recording doesn't seem to work on Safari. It works fine on Chrome.

Actual vs expected behavior:

Audio recording should work on all major browsers.

Any other information you'd like to share?

Safari Version 18.1.1 (20619.2.8.11.12) running on Mac OS Desktop Version 15.1.1 (24B91)

  1. Git clone
  2. Set Gemini API key in .env
  3. npm install
  4. npm start
  5. Open page in Safari
  6. Press the Play button to start streaming.
  7. No errors, but the recording level remains at zero

This seems to be a bug in utils.ts / audioContext. I will create a PR.

@marlonka
Copy link

Same issue in firefox.

Steps to Reproduce

  1. Open the application in Firefox (version 133.0.3 or later).
  2. Open the Firefox Developer Console (F12).
  3. Click the "Start Talking" button in the GenExplainer UI.

Expected Behavior:

The application should connect to the Multimodal Live API, and audio input/output should work correctly without any errors.

Actual Behavior:
In the UI error is shown: Uncaught runtime errors:
ERROR
AudioContext.createMediaStreamSource: Connecting AudioNodes from AudioContexts with different sample-rate is currently not supported.
./src/lib/audio-recorder.ts/start/this.starting<@http://localhost:3000/static/js/bundle.js:2500:39

The application connects to the API, but the AudioContext.createMediaStreamSource error is thrown in the console, and audio input (microphone) does not seem to function properly.

Environment

  • Browser: Firefox 133.0.3 (64-bit) (and potentially other Firefox versions)
  • Operating System: Windows (and potentially other OSes)
  • Branch: demos/genexplainer

@hapticdata hapticdata added the bug Something isn't working label Jan 2, 2025
@sreeshas
Copy link

sreeshas commented Mar 4, 2025

im running into same issue as well. audio recording or user microphone input does not work on safari especially on iphone.

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