-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate SSML for Speech #158
Comments
|
@iMicknl Are you looking to validate the SSML or looking to build it without explicitly working with XML? I think we need both as options. |
My main point in #157 was removing the duplicate |
We can include the validation as optional and/or tie it to the environment (i.e., on for development; off for production). Could be a moot point though. Do you know if Alexa does some minor validation on its end? Last I checked the optional SSML in |
Possibly we could add SSML validation in a separate helper util, later on? Tying it to environments doesn't make sense for me.
Amazon does validation server side, which means that they reject your message. Thus the reason that the Alexa adapter is adding tags around the message if you are using |
@iMicknl Plenty of applications tie certain functionality to what environment you're running in. For example: Template compilation in the Express framework. ASP.NET Core does a few different things depending on environment too. My point was that if you're concerned about the overhead of validating against an XML Schema, you can either make the validation an optional check via a settings property, or you can explicitly validate in non-production environments, but skip the check in production, if there is any concern about developer overhead with the option setting. Only validating against the wrapped tags seems like a halfway solution. Do you know what happens if you put invalid tags in outside of the |
Mentioned by @iMicknl in #157--for speech-enabled functionality that accepts SSML, we should validate the data. XSD files can be found at: https://www.w3.org/TR/2009/REC-speech-synthesis-20090303/#AppD
The text was updated successfully, but these errors were encountered: