The tool enables character voice differentiation through multi-stage techniques:
Role identification phase
- (of a computer) run
saveBookJson.py
Scripts that use AI models to analyze chapter content and mark the characters to which the dialog belongs. - Outputs a JSON file to record the correspondence of role dialogs.
Sound distribution strategy
- Manually assigning the main character voice: via
createUser.py
Set the fixed tones for the main character and the narrator. - Intelligent assignment of secondary characters: characters with more than 50 lines are assigned independent voices, while less than 50 lines use the narrator's voice.
- Supports a wide selection of tone libraries for models such as CosyVoice2.
Realization effects
The resulting MP3 file will have a similar aural effect to a radio drama, with different characters having recognizable vocal characteristics, such as a low male voice for the protagonist and a mild female voice for the narrator in the test case.
This answer comes from the articleTool to automatically crawl novels and generate multi-character audiobooksThe