This error occurs because a dubbing/TTS task was started without specifying a voice role (配音角色). pyVideoTrans requires you to choose a concrete voice role whenever the pipeline needs to generate speech.
To resolve it:
In the main window, open the “配音渠道” (TTS channel) dropdown and pick a channel, e.g. Edge-TTS(免费).
Then open the “配音角色” (voice role) dropdown and select an actual voice name (e.g. en-US-GuyNeural, zh-CN-XiaoxiaoNeural).
If your task is not meant to be dubbed at all, choose No as the voice role – this will skip dubbing and avoid the error.
If you are using the CLI, make sure you pass --voice_role <name>; it is mandatory for TTS (tts) and video translation (vtv) tasks.
The error message “Voice role selection required” is exactly the guard for this missing selection. After setting a proper role, restart the task.
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.