[PR #14779] [MERGED] Add Audio HTML token support #46637

Closed
opened 2026-04-29 21:30:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/14779
Author: @GewoonJaap
Created: 6/8/2025
Status: Merged
Merged: 6/8/2025
Merged by: @tjbck

Base: devHead: feature/audio-html-component


📝 Commits (1)

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 src/lib/components/chat/Messages/Markdown/HTMLToken.svelte (+14 -0)

📄 Description

Changelog Entry

Description

This pull request introduces support for rendering HTML <audio> tags within the chat interface. Similar to how <video> tags are handled, this change allows users to embed and play audio content directly in their conversations. The implementation parses the src attribute from the <audio> tag and uses a standard HTML5 audio player for playback.

Sample audio: https://samplelib.com/lib/preview/mp3/sample-12s.mp3

Added

  • Rendering of audio tags in response

Screenshots or Videos

afbeelding
afbeelding

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/14779 **Author:** [@GewoonJaap](https://github.com/GewoonJaap) **Created:** 6/8/2025 **Status:** ✅ Merged **Merged:** 6/8/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feature/audio-html-component` --- ### 📝 Commits (1) - [`d269c4b`](https://github.com/open-webui/open-webui/commit/d269c4b8e6f2119ef9ed342b3de1333ca96a124d) Audio token ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Messages/Markdown/HTMLToken.svelte` (+14 -0) </details> ### 📄 Description # Changelog Entry ### Description This pull request introduces support for rendering HTML `<audio>` tags within the chat interface. Similar to how `<video>` tags are handled, this change allows users to embed and play audio content directly in their conversations. The implementation parses the `src` attribute from the `<audio>` tag and uses a standard HTML5 audio player for playback. Sample audio: https://samplelib.com/lib/preview/mp3/sample-12s.mp3 ### Added - Rendering of audio tags in response ### Screenshots or Videos ![afbeelding](https://github.com/user-attachments/assets/f24af91b-69d7-4f1a-aa33-a1e8519652da) ![afbeelding](https://github.com/user-attachments/assets/8c1afc0c-d4c4-4f3d-940e-26d8e0ccd565) ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 21:30:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#46637