Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TTS报错 #5801

Open
SuiYunsy opened this issue Nov 10, 2024 · 3 comments
Open

[Bug] TTS报错 #5801

SuiYunsy opened this issue Nov 10, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@SuiYunsy
Copy link

📦 Deployment Method

Vercel

📌 Version

v2.15.7

💻 Operating System

Windows

📌 System Version

Win10

🌐 Browser

Edge

📌 Browser Version

130

🐛 Bug Description

某些情况下,一些文本会导致TTS朗读失败,具体信息为:

ConsoleMsg:
[OpenAI Speech] DOMException: Failed to execute 'decodeAudioData' on 'BaseAudioContext': Unable to decode audio data

PopTips:
image

例1:

image

例2:

容斥原理(Inclusion-Exclusion Principle)是组合数学中的一个重要工具,用于计算多个集合的并集的大小。它的基本思想是通过逐步添加和减去各个集合的大小来避免重复计算。

假设有 \( n \) 个集合 \( A_1, A_2, \ldots, A_n \),容斥原理可以用以下公式表示:

\[
|A_1 \cup A_2 \cup \ldots \cup A_n| = \sum_{i=1}^{n} |A_i| - \sum_{1 \leq i < j \leq n} |A_i \cap A_j| + \sum_{1 \leq i < j < k \leq n} |A_i \cap A_j \cap A_k| - \ldots + (-1)^{n+1} |A_1 \cap A_2 \cap \ldots \cap A_n|
\]

反例(此例能够正常朗读):

我们可以使用容斥原理来解决这个问题。设:

- \( |A| \) 为参加游泳的人数,\( |A| = 17 \)
- \( |B| \) 为参加跑步的人数,\( |B| = 20 \)
- \( |C| \) 为参加跳绳的人数,\( |C| = 22 \)
- \( |A \cap B| + |A \cap C| + |B \cap C| = 24 \)(同时参加两个项目的人数)

我们需要找出同时参加三个项目的人数,设为 \( x \)(即 \( |A \cap B \cap C| = x \))。

根据容斥原理,我们可以写出以下公式:

\[
|A \cup B \cup C| = |A| + |B| + |C| - (|A \cap B| + |A \cap C| + |B \cap C|) + |A \cap B \cap C|
\]

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@SuiYunsy SuiYunsy added the bug Something isn't working label Nov 10, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] TTS error

@DDMeaqua
Copy link
Contributor

可以过几天再试试,目前bing那边有问题
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


You can try again in a few days. There is currently a problem with Bing.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants