简单的 tts 网页应用 edge-tts-nextjs,基于 edge-tts 和 nextjs
简单的 tts 网页应用 edge-tts-nextjs,基于 edge-tts 和 nextjs
|
catMar 8, 2024
1
微软的 tts 不是可以直接请求吗,都用 node.js 做后端了,为啥还要依赖个 py 包
|
|
catMar 8, 2024
3
@animebing 我知道,我的意思是那个接口是可以直接请求的,不需要借助 python 来增加环境要求
https://github.com/search?q=6A5AA1D4EAFF4E9FB37E23D68491D6F4+language%3AJavaScript&type=code&l=JavaScript |
|
catMar 8, 2024
4
@animebing 你用的 edge-tts 也是去请求了相同的 wss 接口
https://github.com/rany2/edge-tts/blob/master/src/edge_tts/constants.py |
|
ioriluMar 8, 2024
5
这个是的, 反正都是调微软接口
你在 js 调不是更好 |
|
6
@cat 我懂你的意思了,那样做确实更方便一些,谢谢提醒哈。我在学习使用 nextjs 开发 webapp ,当时刚好看到了 edge-tts 这个 python 项目,就想放在一起做了,没有去想有没有 js 对应的实现。
|