Closed boltomli closed 4 years ago
This is related to https://github.com/muschellij2/text2speech/issues/2. Currently I have to mix text2speech
and mscstts
, aws.polly
together in https://github.com/boltomli/shiny-speech.
With #11, short name can be used as voice, though the actual voice name attribute is still in long format in the actual payload. It's easy to change the behaviour as well but I would like to keep it as it is now for minimal change.
Short name is added to be usable in official request. The check is too strict and limit the usage now.
Also, if the specified voice is not in embedded voice list (which is not region aware and may not align with the actual voice list from endpoint), synthesize will fail early. It could be a warning if failing this check and continue. Then if it's really not correct, service can return error.