https://github.com/enpit/ssml-validator
Automatically replaces invalid characters from a given SSML string
https://github.com/enpit/ssml-validator
alexa ssml validator
Last synced: 4 months ago
JSON representation
Automatically replaces invalid characters from a given SSML string
- Host: GitHub
- URL: https://github.com/enpit/ssml-validator
- Owner: enpit
- License: mit
- Created: 2017-02-14T15:17:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-07T11:21:15.000Z (almost 5 years ago)
- Last Synced: 2025-08-21T05:36:00.050Z (10 months ago)
- Topics: alexa, ssml, validator
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# ssml-validator
Automatically replaces invalid characters from a given SSML string.
Useful when creating a bot for Amazon's Alexa, which will refuse to speak when certain characters are contained in the string that you want her to read.
## API
### correct(ssmlString, [locale])
Replaces invalid characters from the given `ssmlString` and returns the new string.
If `locale` is set, language-specific replacements are used for some characters; defaults to English, currently only supports `de-DE`.