mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #16378] [CLOSED] feat: add SSML "Voice Note" speech blocks #24113
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16378
Author: @jcbyte
Created: 8/8/2025
Status: ❌ Closed
Base:
dev← Head:ssml-blocks📝 Commits (7)
9c7492bfix: create tts queuef652222feat: add ssml blocks521a481renamed override call friendly name to be shorter6f36083add admin panel default voice block settings94a66eafix missing imports12b2970interpret environment variables correctly as booleans3df30e5apply prettier formatting standard📊 Changes
16 files changed (+904 additions, -199 deletions)
View changed files
📝
backend/open_webui/config.py(+18 -0)📝
backend/open_webui/main.py(+12 -0)📝
backend/open_webui/routers/audio.py(+33 -2)📝
src/lib/apis/audio/index.ts(+4 -2)📝
src/lib/components/admin/Settings/Audio.svelte(+44 -0)📝
src/lib/components/chat/MessageInput/CallOverlay.svelte(+7 -0)📝
src/lib/components/chat/Messages/Markdown.svelte(+2 -0)📝
src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte(+3 -0)➕
src/lib/components/chat/Messages/Markdown/SsmlRenderer.svelte(+177 -0)➕
src/lib/components/chat/Messages/Markdown/VoiceVisualiser.svelte(+61 -0)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+57 -194)📝
src/lib/components/chat/Settings/Audio.svelte(+90 -0)📝
src/lib/components/chat/SettingsModal.svelte(+12 -1)📝
src/lib/stores/index.ts(+1 -0)➕
src/lib/utils/marked/ssml-extension.ts(+38 -0)➕
src/lib/utils/tts.ts(+345 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Created "Voice Note" style blocks to display the contents of the tags; these can be played, cancelled or queued (due to my last PR #16152 ). The motivation is to allow for a mixed output of text and audio simultaneously from models.
Added three new settings:
Added three new admin panel configs (and corresponding environment variables) to set the default settings for new users.
Added
Changed
None
Deprecated
None
Removed
None
Fixed
None
Security
None
Breaking Changes
None
Additional Information
Screenshots or Videos
Speech Blocks:

https://github.com/user-attachments/assets/4094d8a5-7dae-41a9-b460-6b549603d290
Settings:

Admin Configs:

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.