Jump to content

Template:TTS: Difference between revisions

From Philosophical Research
m use external link for internal link
m NoTitle parameter
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{HueCSS}}
{{HueCSS}}
<pre style="display: none;"><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
<pre style="display: none;"><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
| {{{href|}}}{{{E|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}}
| {{{href|}}}{{{E|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}
| {{{E|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}}]
| {{{E|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]
| {{{href|}}} = <span class="plainlinks">[https://research.moraleconomy.au/index.php?title=Ontology:{{{E}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}}]</span>
| {{{href|}}}{{{oldid|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title=Ontology:{{{E}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span>
| #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}}
| {{{href|}}}{{{E|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span>
| #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}
}}</onlyinclude></pre>
}}</onlyinclude></pre>


Line 24: Line 25:


Earlier, <code>aria-label</code> was mistakenly used for this, but it turns out that text substitution for speaking-machines is something that is not currently well-supported in HTML. (This can be a problem when it comes to the temptation to turn everything into "AI" — understanding that every piece of text written by humans is made of arbitrary signifiers, it is incredibly tempting to simply build a [https://en.wikipedia.org/wiki/Speech_synthesis#Deep_learning-based_synthesis dynamic signifier-interpreting agent that actively learns all the exceptions to every rule] instead of properly building a system where "dumb" programs or bits of data can easily pass along less-ambiguous messages to each other.)
Earlier, <code>aria-label</code> was mistakenly used for this, but it turns out that text substitution for speaking-machines is something that is not currently well-supported in HTML. (This can be a problem when it comes to the temptation to turn everything into "AI" — understanding that every piece of text written by humans is made of arbitrary signifiers, it is incredibly tempting to simply build a [https://en.wikipedia.org/wiki/Speech_synthesis#Deep_learning-based_synthesis dynamic signifier-interpreting agent that actively learns all the exceptions to every rule] instead of properly building a system where "dumb" programs or bits of data can easily pass along less-ambiguous messages to each other.)
== Inner templates ==
* [[Template:TTS/aural]] - this renders basically the whole Template except the optional links, so if you're looking for the Template source go here.


[[Category:Templates for markup]] [[Category:Templates related to localization]]
[[Category:Templates for markup]] [[Category:Templates related to localization]]

Latest revision as of 07:09, 9 September 2025

<onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
| {{{href|}}}{{{E|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}
| {{{E|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]
| {{{href|}}}{{{oldid|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title=Ontology:{{{E}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span>
| {{{href|}}}{{{E|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span>
| #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}
}}</onlyinclude>

Demo[edit]

pronounced displayed string

pronounced displayed string in older style

oddly-pronounced word demo: pronounced 1337

wiki link demo: pronounced 1337

external link demo: pronounced 1337

Description[edit]

This is a template for giving bits of text a TTS pronunciation.

Earlier, aria-label was mistakenly used for this, but it turns out that text substitution for speaking-machines is something that is not currently well-supported in HTML. (This can be a problem when it comes to the temptation to turn everything into "AI" — understanding that every piece of text written by humans is made of arbitrary signifiers, it is incredibly tempting to simply build a dynamic signifier-interpreting agent that actively learns all the exceptions to every rule instead of properly building a system where "dumb" programs or bits of data can easily pass along less-ambiguous messages to each other.)

Inner templates[edit]

  • Template:TTS/aural - this renders basically the whole Template except the optional links, so if you're looking for the Template source go here.