[GH-ISSUE #17761] issue: audio mime types #18389

Closed
opened 2026-04-20 00:36:29 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @rbb-dev on GitHub (Sep 25, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17761

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.30

Ollama Version (if applicable)

No response

Operating System

Ubuntu 24.04

Browser (if applicable)

iOS Safari, Edge

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Open WebUI should parse and normalise media types, treating whitespace around separators as insignificant, so strings like audio/webm;codecs=opus and audio/webm; codecs=opus are considered equivalent and match correctly.

Actual Behavior

During dictation, Open WebUI logs show different Content‑Type values depending on the browser. Edge results in file.content_type = "audio/webm;codecs=opus" (no space), while iOS Safari results in file.content_type = "audio/webm; codecs=opus" (space after the semicolon). Because whitespace is treated as significant, the Safari variant is rejected as unsupported

2025-09-26 08:22:10.886 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm;codecs=opus

2025-09-26 08:22:24.591 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm; codecs=opus

Steps to Reproduce

1 - set mime type to: audio/webm;codecs=opus iOS Safari unable to use dictate function
2 - set mime type to: audio/webm; codecs=opus Win11 Edge unable to use dictate function
3 - Set mime type to: audio/webm;codecs=opus,audio/webm; codecs=opus. Both Safari and Edge work.

Logs & Screenshots

2025-09-26 08:22:10.886 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm;codecs=opus
2025-09-26 08:22:24.591 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm; codecs=opus

Additional Information

No response

Originally created by @rbb-dev on GitHub (Sep 25, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17761 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.30 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 24.04 ### Browser (if applicable) iOS Safari, Edge ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Open WebUI should parse and normalise media types, treating whitespace around separators as insignificant, so strings like `audio/webm;codecs=opus` and `audio/webm; codecs=opus` are considered equivalent and match correctly. ### Actual Behavior During dictation, Open WebUI logs show different Content‑Type values depending on the browser. Edge results in file.content_type = "audio/webm;codecs=opus" (no space), while iOS Safari results in file.content_type = "audio/webm; codecs=opus" (space after the semicolon). Because whitespace is treated as significant, the Safari variant is rejected as unsupported `2025-09-26 08:22:10.886 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm;codecs=opus` `2025-09-26 08:22:24.591 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm; codecs=opus ` ### Steps to Reproduce 1 - set mime type to: `audio/webm;codecs=opus` iOS Safari unable to use dictate function 2 - set mime type to: `audio/webm; codecs=opus` Win11 Edge unable to use dictate function 3 - Set mime type to: `audio/webm;codecs=opus,audio/webm; codecs=opus`. Both Safari and Edge work. ### Logs & Screenshots 2025-09-26 08:22:10.886 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm;codecs=opus 2025-09-26 08:22:24.591 | INFO | open_webui.routers.audio:transcription:944 - file.content_type: audio/webm; codecs=opus ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-20 00:36:29 -05:00
Author
Owner

@ShirasawaSama commented on GitHub (Sep 26, 2025):

Could you tell me which iOS version you're using and which speech-to-text engine you're using?

<!-- gh-comment-id:3336982554 --> @ShirasawaSama commented on GitHub (Sep 26, 2025): Could you tell me which iOS version you're using and which speech-to-text engine you're using?
Author
Owner

@ShirasawaSama commented on GitHub (Sep 26, 2025):

#17771

<!-- gh-comment-id:3337049868 --> @ShirasawaSama commented on GitHub (Sep 26, 2025): #17771
Author
Owner

@Classic298 commented on GitHub (Dec 14, 2025):

This should have been solved now in dev

<!-- gh-comment-id:3652218307 --> @Classic298 commented on GitHub (Dec 14, 2025): This should have been solved now in dev
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#18389