daisy / pipeline-modules

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

Add ability to get a "preview" of a voice #89

Closed bertfrees closed 1 month ago

bertfrees commented 3 months ago

We discussed the following:

bertfrees commented 2 months ago

This is done except for localizing stock message.

bertfrees commented 2 months ago

Note that it is not possible to post a TTS config file with the /voices/[ID] and /voices/[ID]/preview endpoints. Only the global settings are used. This is a reasonable limitation, because setting properties inside a TTS config file is deprecated, and the rest of the TTS config file can not influence the voices.

Also note that /voices/[ID] and /voices/[ID]/preview calls need to be preceded by a /voices call. (This is needed to get the preview links.) Settings may not be changed after the last /voices call.

This last limitation might not be RESTful, but it was done in order to be able to do the necessary caching to make the whole thing snappy enough. It should be improved later. E.g. the caching should be done per client.

bertfrees commented 1 month ago

Fixed in 2be91f131