Skip to content

Fix EdgeTTS 403 in Chinese mainland#45

Merged
canisminor1990 merged 1 commit intolobehub:masterfrom
NekokeCore:master
Mar 3, 2025
Merged

Fix EdgeTTS 403 in Chinese mainland#45
canisminor1990 merged 1 commit intolobehub:masterfrom
NekokeCore:master

Conversation

@NekokeCore
Copy link
Contributor

💻 变更类型 | Change Type

  • ✨ feat
  • [ x ] 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

In Chinese mainland, EdgeTTS can't be used because of two more authentication parameters, one is Sec-MS-GEC and the other is Sec-MS-GEC-Version, Sec-MS-GEC is changed every five minutes, and this RP brings Sec-MS-GEC generation algorithms to EdgeTTS for LobeTTS and at each request Pass this parameter into the url.

📝 补充信息 | Additional Information

Inspired by rany2/edge-tts#290

@lobehubbot
Copy link
Member

👍 @NekokeCore


Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@NekokeCore NekokeCore changed the title 🐛 fix: Fix EdgeTTS 401 in Chinese mainland Fix EdgeTTS 401 in Chinese mainland Feb 11, 2025
@NekokeCore NekokeCore changed the title Fix EdgeTTS 401 in Chinese mainland Fix EdgeTTS 403 in Chinese mainland Feb 11, 2025
@canisminor1990 canisminor1990 merged commit ed1d7f7 into lobehub:master Mar 3, 2025
3 of 4 checks passed
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 3, 2025

Open in Stackblitz

npm i https://pkg.pr.new/lobehub/lobe-tts/@lobehub/tts@45

commit: 1a7ba3d

@lobehubbot
Copy link
Member

❤️ Great PR @NekokeCore ❤️


The growth of project is inseparable from user feedback and contribution, thanks for your contribution!
项目的成长离不开用户反馈和贡献,感谢您的贡献!

github-actions bot pushed a commit that referenced this pull request Mar 3, 2025
### [Version 1.28.1](v1.28.0...v1.28.1)
<sup>Released on **2025-03-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix EdgeTTS 403 in Chinese mainland.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix EdgeTTS 403 in Chinese mainland, closes [#45](#45) ([ed1d7f7](ed1d7f7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.28.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@arvinxx
Copy link
Member

arvinxx commented Mar 3, 2025

使用了 node js 模块导致构建挂了,这个 PR 回滚

lobehub/lobehub#6656

arvinxx added a commit that referenced this pull request Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants