Skip to content

mo.audio doesn't work in Safari #9460

Description

@yairchu

Describe the bug

mo.audio appears to work in Chrome and Firefox but in Safari it looks like this:

Image

Tested in Safari Version 26.2 (21623.1.14.11.9) on masOC 26.2 (25C56)

Will you submit a PR?

  • Yes

Environment

Details
{
  "marimo": "0.23.5",
  "editable": false,
  "location": "/Users/yairchu/dev/soundradix/Drum3D/.venv/lib/python3.13/site-packages/marimo",
  "OS": "Darwin",
  "OS Version": "25.2.0",
  "Processor": "arm",
  "Python Version": "3.13.1",
  "Locale": "C/C",
  "Binaries": {
    "Browser": "140.0.7339.134",
    "Node": "v23.11.0",
    "uv": "0.7.12 (dc3fd4647 2025-06-06)"
  },
  "Dependencies": {
    "click": "8.3.3",
    "docutils": "0.22.4",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.10.2",
    "narwhals": "2.20.0",
    "packaging": "26.2",
    "psutil": "7.2.2",
    "pygments": "2.20.0",
    "pymdown-extensions": "10.21.2",
    "pyyaml": "6.0.3",
    "starlette": "1.0.0",
    "tomlkit": "0.14.0",
    "typing-extensions": "4.15.0",
    "uvicorn": "0.46.0",
    "websockets": "16.0"
  },
  "Optional Dependencies": {
    "altair": "6.1.0",
    "loro": "1.10.3",
    "pandas": "3.0.2"
  },
  "Experimental Flags": {}
}

Code to reproduce

_sr = 44100
mo.audio(
    0.01 * np.sin(math.tau * np.cumsum(np.linspace(660, 110, 100000)) / _sr),
    _sr,
    normalize=False,
)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions