This utility class implements functions to builder Speech Synthesis Markup Language(SSML) with a fluent interface design. It contains tag supoorted by Amazon Polly,GoogleTTS ans Microsoft Watsons.
Install from source:
pip install .Or install in development mode:
pip install -e .This utility class affords user to append SSML tags in a fluent interface fashion:
from ssml_builder import Speech
speech = Speech()
speech.say("Hello, My name is Amazon Polly.").pause("1s")
print(speech.ssml(False))
# Output: "<speak>Hello, My name is Amazon Polly.<break time='1s'/></speak>"<amazon:effect vocal-tract-length>tag for timbre adjustment<mark name='custom_tag_name'/>tag<prosody>tag
- clone this repo to your local (
git clone https://github.com/user3301/ssml-builder.git) - Create your own branch (
git checkout -b my-new-branch) - Commit changes (
git commit -am ":sparkles:my feature") - Push (
git push origin my-new-branch) - Pull request
- User3301 :e-mail: base64 c3Rhbl9nYWlASG90bWFpbC5jb20=