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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/7797
Author: @ALIENvsROBOT
Created: 12/11/2024
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (2)
5c0ec49fix markdown to normal word conversion for openai-edge-ttsb6865e4fix 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.