-
Notifications
You must be signed in to change notification settings - Fork 3
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
How to convert local tests to Web Platform Tests? #3
Comments
Manual tests are fine if nothing else is possible, just name them foo-manual.html. https://github.com/w3c/web-platform-tests/tree/master/speech-api is the directory for Web Speech API. As for SSML, it looks like Chromium doesn't support that, does any implementation? |
Browsers do not come shipped with an SSML parser that am aware of. Tried to find such existing code https://softwareengineering.stackexchange.com/questions/362911/how-to-extract-ssml-parsing-code-of-espeak-to-implement-ssml-parsing-at-speechsy before began composing the parser in JavaScript; see also https://stackoverflow.com/a/48504311/. The code at https://github.com/guest271314/SpeechSynthesisSSMLParser implements an SSML parser (to the point have reached as to the standardized elements and attributes) following the specification using JavaScript. The concern that have is the use of arrow functions, |
I was about to file an issue about SSML not being implemented, but used WICG/speech-api#10 instead. Since the spec doesn't actually say how it should work I don't know how to write tests for it, and more importantly, if nobody is inclined to implement it then the tests will just be failing forever. |
Not sure what you mean? |
The spec doesn't spell out what test should be performed on the input to determine whether it is SSML or should be treated as plain text. |
Yes, that is unclear. |
When re-reading the specification the requirement is spelled out 5.2.3 SpeechSynthesisUtterance Attributes
|
Have composed several tests relevant to Web Speech API web-platform-tests/wpt#8795 and SSML parsing web-platform-tests/wpt#8712, https://github.com/guest271314/SpeechSynthesisSSMLParser.
What is the canonical approach to incorporate these tests into the respective Web Platform Tests folder, or create the folder (SSML)?
Would the tests (manual) be useful for the Web Platform Tests repository?
(Asked same question at http://irc.w3.org/ #testing though did not get a response before submitting this issue.)
The text was updated successfully, but these errors were encountered: