daisy / pipeline-modules

Modules for the DAISY Pipeline project
4 stars 5 forks source link

Support standard CSS's `voice-family` property #92

Closed bertfrees closed 1 month ago

bertfrees commented 6 months ago

Pipeline supports voice-family, but a custom version of it. Make it compatible with standard CSS.

See https://www.w3.org/TR/css-speech-1/#voice-props-voice-family

bertfrees commented 3 months ago

As part of this issue, we will also do some refactoring and eliminate some XSLT code. The voice-family property will be parsed in Java to a VoiceFamilyList object, and this object will be passed to VoiceManager.findAvailableVoices(). The SSML will only have to contain "voice-family" attributes, instead of a combination of "voice-gender", "voice-age", "voice-selector1" and "voice-selector2".

Possible values of the voice-family property are: