I see that there is an option to select
speaker_id within a voice file like libritts
https://github.com/rhasspy/piper#json-input
Maybe we could integrate into calibre to use different speaker_id.. with libritts it would add 900 other high quality voices to english.
Quote:
Optional fields include:
speaker - string
Name of the speaker to use from speaker_id_map in config (multi-speaker voices only)
speaker_id - number
Id of speaker to use from 0 to number of speakers - 1 (multi-speaker voices only, overrides "speaker")
output_file - string
Path to output WAV file
The following example writes two sentences with different speakers to different files:
Code:
{ "text": "First speaker.", "speaker_id": 0, "output_file": "/tmp/speaker_0.wav" }
{ "text": "Second speaker.", "speaker_id": 1, "output_file": "/tmp/speaker_1.wav" }
|