flogy / gatsby-mdx-tts

🗣 Adds speech output to your Gatsby site using Amazon Polly.
https://gatsby-mdx-tts.netlify.com
MIT License
10 stars 2 forks source link

Allow adding voice parameters to SpeechOutput component #4

Closed flogy closed 4 years ago

flogy commented 4 years ago

Currently, one can define a defaultVoiceId as well as lexiconNames and defaultSsmlTags globally, inside the plugin configurations. It would be beneficial if there were some props for the <SpeechOutput> component to set e.g. the voiceId for just that specific speech output.

In this issue we should discuss, which props should be added and how they should be named, and then implement it afterwards.

flogy commented 4 years ago

I think the following optional props would be enough:

flogy commented 4 years ago

As the plugin options reflect the default settings we should align the lexiconNames plugin option with defaultVoiceId and defaultSsmlTags and thus rename it to defaultLexiconNames. Thsi would be a breaking change.

flogy commented 4 years ago

Implemented and released in v0.0.7.