GitHunt
US

user3301/ssml_builder

:sound: a general SSML(Speech Synthesis Markup Language) builder

SSML Builder

License: GPL
Codacy Badge

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.

Installation

Install from source:

pip install .

Or install in development mode:

pip install -e .

Usage Example

Basic Usage

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>"

TODOs

  • <amazon:effect vocal-tract-length> tag for timbre adjustment
  • <mark name='custom_tag_name'/> tag
  • <prosody> tag

Contributing

  • 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

Author

  • User3301
    ๐Ÿ“ง base64 c3Rhbl9nYWlASG90bWFpbC5jb20=

Languages

Python100.0%

Contributors

Other
Created February 5, 2018
Updated November 20, 2025
user3301/ssml_builder | GitHunt