[PR #7797] [CLOSED] Fixed: openai-edge-tts speaking markdown issue #8906

Closed
opened 2025-11-11 18:09:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/7797
Author: @ALIENvsROBOT
Created: 12/11/2024
Status: Closed

Base: devHead: dev


📝 Commits (2)

  • 5c0ec49 fix markdown to normal word conversion for openai-edge-tts
  • b6865e4 fix markdown to normal word conversion for openai-edge-tts. fix 2

📊 Changes

2 files changed (+22 additions, -0 deletions)

View changed files

📝 backend/open_webui/apps/audio/main.py (+21 -0)
📝 backend/requirements.txt (+1 -0)

📄 Description

I've used simple markdown2 and re libraries to convert AI response which is in markdown format to which leads to edge-tts voice starts with ("hashtag hashtag hashtag.... ") so I used Simple heuristic to detect Markdown and convert it to plain text


🔄 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/7797 **Author:** [@ALIENvsROBOT](https://github.com/ALIENvsROBOT) **Created:** 12/11/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (2) - [`5c0ec49`](https://github.com/open-webui/open-webui/commit/5c0ec49d92eecc3589b6378b8a1a5f41ef6864c0) fix markdown to normal word conversion for openai-edge-tts - [`b6865e4`](https://github.com/open-webui/open-webui/commit/b6865e44b8568313e7707ae4e88d3df5eb6f8794) fix markdown to normal word conversion for openai-edge-tts. fix 2 ### 📊 Changes **2 files changed** (+22 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/apps/audio/main.py` (+21 -0) 📝 `backend/requirements.txt` (+1 -0) </details> ### 📄 Description I've used simple markdown2 and re libraries to convert AI response which is in markdown format to which leads to edge-tts voice starts with ("hashtag hashtag hashtag.... <Ai response>") so I used Simple heuristic to detect Markdown and convert it to plain text --- <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 2025-11-11 18:09:11 -06: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#8906