Skip to content

[Bug]: azure_tts_v1 403 #816

@WangConveyGit

Description

@WangConveyGit

问题描述 | Current Behavior

生成视频时,总是报错tts 403错误,这是要配置tts的key?readme中说明要key啊,使用的是azure_tts_v1,也没有设置key的地方啊,看配置项说v2才需要key啊,有没有大佬和我一样的问题啊

重现步骤 | Steps to Reproduce

生成视频时,总是报错tts 403错误,这是要配置tts的key?readme中说明要key啊,使用的是azure_tts_v1,也没有设置key的地方啊,看配置项说v2才需要key啊,有没有大佬和我一样的问题啊

错误日志 | Error Logs

2026-01-30 10:42:13.941 | INFO | main::1042 - 开始生成视频

2026-01-30 10:42:13.942 | INFO | main::1043 - {
"video_subject": "人为什么要跑步?",
"video_script": "",
"video_terms": "",
"video_aspect": "9:16",
"video_concat_mode": "random",
"video_transition_mode": "None",
"video_clip_duration": 3,
"video_count": 1,
"video_source": "pexels",
"video_materials": null,
"custom_audio_file": null,
"video_language": "",
"voice_name": "zh-CN-XiaoxiaoNeural-Female",
"voice_volume": 1.0,
"voice_rate": 1.0,
"bgm_type": "random",
"bgm_file": "",
"bgm_volume": 0.2,
"subtitle_enabled": true,
"subtitle_position": "bottom",
"custom_position": 70.0,
"font_name": "MicrosoftYaHeiBold.ttc",
"text_fore_color": "#FFFFFF",
"text_background_color": true,
"font_size": 60,
"stroke_color": "#000000",
"stroke_width": 1.5,
"n_threads": 2,
"paragraph_number": 1
}

2026-01-30 10:42:13.946 | INFO | app.services.task:start:247 - start task: 5166fb7a-c6cd-464e-af81-75ce00109550, stop_at: video

2026-01-30 10:42:13.947 | INFO | app.services.task:generate_script:17 -

generating video script

2026-01-30 10:42:13.949 | INFO | app.services.llm:generate_script:358 - subject: 人为什么要跑步?

2026-01-30 10:42:13.950 | INFO | app.services.llm:_generate_response:21 - llm provider: qwen

2026-01-30 10:42:19.694 | SUCCESS | app.services.llm:generate_script:401 - completed:
跑步是一种简单而有效的锻炼方式,它能够增强心肺功能,促进血液循环,提高身体的代谢率,帮助燃烧脂肪和减少体重。此外,跑步还能释放内啡肽,这是一种能够让人感到快乐和放松的化学物质,有助于缓解压力和改善心情。

2026-01-30 10:42:19.696 | INFO | app.services.task:generate_terms:37 -

generating video terms

2026-01-30 10:42:19.697 | INFO | app.services.llm:generate_terms:432 - subject: 人为什么要跑步?

2026-01-30 10:42:19.699 | INFO | app.services.llm:_generate_response:21 - llm provider: qwen

2026-01-30 10:42:22.522 | SUCCESS | app.services.llm:generate_terms:465 - completed:
['running benefits', 'heart health', 'fat burning', 'stress relief', 'endorphin release']

2026-01-30 10:42:22.525 | INFO | app.services.task:generate_audio:84 -

generating audio

2026-01-30 10:42:22.527 | INFO | app.services.task:generate_audio:92 - no custom audio file provided, using TTS to generate audio.

2026-01-30 10:42:22.529 | INFO | app.services.voice:azure_tts_v1:1178 - start, voice name: zh-CN-XiaoxiaoNeural, try: 1

2026-01-30 10:42:24.457 | ERROR | app.services.voice:azure_tts_v1:1201 - failed, error: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&Sec-MS-GEC=4657A8CC2A6AE20DC2C238756FC6C736B7F0E8522FB13565904F15A57E4296C5&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=43e99ca9186c46b99231dc14355eb414'

2026-01-30 10:42:24.459 | INFO | app.services.voice:azure_tts_v1:1178 - start, voice name: zh-CN-XiaoxiaoNeural, try: 2

2026-01-30 10:42:26.645 | ERROR | app.services.voice:azure_tts_v1:1201 - failed, error: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&Sec-MS-GEC=4657A8CC2A6AE20DC2C238756FC6C736B7F0E8522FB13565904F15A57E4296C5&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=6736694ce96b4c8db96b250911be1642'

2026-01-30 10:42:26.646 | INFO | app.services.voice:azure_tts_v1:1178 - start, voice name: zh-CN-XiaoxiaoNeural, try: 3

2026-01-30 10:42:28.819 | ERROR | app.services.voice:azure_tts_v1:1201 - failed, error: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&Sec-MS-GEC=4657A8CC2A6AE20DC2C238756FC6C736B7F0E8522FB13565904F15A57E4296C5&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=0a8d8083c83d4ac0b3115ee5bc127636'

2026-01-30 10:42:28.820 | ERROR | app.services.task:generate_audio:102 - failed to generate audio:

  1. check if the language of the voice matches the language of the video script.
  2. check if the network is available. If you are in China, it is recommended to use a VPN and enable the global traffic mode.

2026-01-30 10:42:28.822 | ERROR | main::1049 - 视频生成失败

Python 版本 | Python Version

3.11

操作系统 | Operating System

Windows10

MoneyPrinterTurbo 版本 | Version

1.2.6

补充信息 | Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions