Comments (7)
For simplicity, the initial intention was to not support nesting. We can consider expanding the concept of sections to include additional (or maybe all) tags. Looking for feedback on this.
from speechmarkdown-js.
@rmtuckerphx Overall, ssml supports nested tags, why speechmarkdown shouldn't? Also, what do you mean by 'simplicity'? Is it library coding simplicity or speechmarkdown syntax simplicity that you are concerned with?
from speechmarkdown-js.
The primary users of speech markdown are content authors and designers and thirdly developers. Simplicity should always be framed with content authors in mind. It is true the SSML supports nesting. In some cases markdown also supports nesting, but it is towards markdown's simplicity that we should be leaning.
By allowing multiple tags in square braces, we remove the burden of nesting from the content author:
ex: My favorite chemical element is (Al)[sub:"aluminum";volume:"x-loud";rate:"slow";pitch:"low"]
Seems like the only issue might be with breaks. Trying to weigh which one would be better from a content author's perspective:
Option 1. (break after this [0.2s] another break after this [0.2s])[rate:"slow"]
Option 2. (break after this)[rate:"slow"] [0.2s] (another break after this)[rate:"slow"][0.2s]
My perspective is that Option 2 is simpler for content authors.
Would enjoy others to join in with their perspective.
from speechmarkdown-js.
Hullo. As a content creator, option 1 feels more intuitive to me and I nest tags fairly frequently (IPA combined with prosody is another good example), maybe worth asking a few others who write a lot of ssml what they think too?
from speechmarkdown-js.
@tomhewitson Thanks Tom for your feedback. You can already combine (which auto nests) IPA and prosody:
speech markdown: I say, (pecan)[ipa:"ˈpi.kæn";rate:"x-slow"].
converts to
SSML:
<speak>
I say, <prosody rate="x-slow"><phoneme alphabet="ipa" ph="ˈpi.kæn">pecan</phoneme></prosody>.
</speak>
from speechmarkdown-js.
Looks like there is no further conversation on this topic. Thanks for a good discussion and thanks for your involvement in this project.
I am open to nesting. That way those who want to use it can and those who don't are covered as well. We need someone to write the tests and implement.
from speechmarkdown-js.
Closing issue due to no activity.
from speechmarkdown-js.
Related Issues (20)
- Grammar - ipa does not recognize characters
- Grammar - plainText does not recognize minus sign HOT 1
- Formatters - sections adding extra line breaks in SSML & Plain Text
- Special characters are ignored by the formatters in the output HOT 2
- Limitation to Node engine below 11 HOT 3
- Grammar - emphasis short format HOT 1
- Support All US IPA Chars HOT 2
- Support umlauts and other languages HOT 3
- How to remove just Speechmarkdown markup but leave Markdown (i.e. NOT back to plain text)? HOT 5
- Fix "sub" tag so that it allows for words with spaces HOT 1
- Add dictionary to options for sub and phoneme HOT 1
- Support both double and single quotes HOT 1
- Add support of Microsoft Azure SSML HOT 1
- Ampersand leads to InvalidSsmlException
- Amazon Polly support HOT 3
- How to use speechmarkdown.min.js?
- How to use in python? HOT 1
- Dashes in dates get treated as emphasis HOT 1
- Modify output so code can run in a browser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speechmarkdown-js.