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

tts报错,日志如下 #110

Closed
binghan2000 opened this issue Jun 19, 2024 · 5 comments
Closed

tts报错,日志如下 #110

binghan2000 opened this issue Jun 19, 2024 · 5 comments

Comments

@binghan2000
Copy link

下载mp3不好用

🔥 /api/tts.mp3
stdout: 735518c5 ❌ Error code: 3001
stdout: 735518c5 ❌ Error message: {"reqid":"735518c5-45f7-46a2-8ca8-57d4d8d37c51","message":"extract request resource id: get resource id: access denied","code":403,"backend_code":0}
stdout: 735518c5 ❌ Generate failed!
stderr: node:events:510
stderr: throw err; // Unhandled 'error' event
stderr: ^
stderr:
stderr: Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('error')
stderr: at Readable.emit (node:events:508:17)
stderr: at emitErrorNT (node:internal/streams/destroy:169:8)
stderr: at emitErrorCloseNT (node:internal/streams/destroy:128:3)
stderr: at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
stderr: code: 'ERR_UNHANDLED_ERROR',
stderr: context: 'error'
stderr: }
stderr:
stderr: Node.js v20.14.0

环境:

TTS_DEFAULT_SPEAKER=BV002_streamin
VOLCANO_TTS_APP_ID=XXX
VOLCANO_TTS_ACCESS_TOKEN=XXX
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
NODE_VERSION=20.14.0
YARN_VERSION=1.22.22

@idootop
Copy link
Owner

idootop commented Jun 19, 2024

检查你的 app id 和 token 是否是有效的语音合成凭证,或者配置一下你的 user_id 环境变量试试看。

@binghan2000
Copy link
Author

看火山,发现没有调用?

@idootop
Copy link
Owner

idootop commented Jun 19, 2024

感觉是你配置的环境变量没生效

@idootop idootop closed this as completed Jun 20, 2024
@idootop idootop reopened this Jun 20, 2024
@idootop
Copy link
Owner

idootop commented Jun 20, 2024

参考下官方文档的说明:https://www.volcengine.com/docs/6561/79823

图片

@idootop
Copy link
Owner

idootop commented Jun 21, 2024

@binghan2000 检查下你开通的服务是不是【语音合成】,以及是否开启了【试用】音色。

image

检查你的语音合成服务的 cluster ID 是否为volcano_tts

image

@idootop idootop closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants