Jump to content

Template:TTS: Difference between revisions

From Philosophical Research
wiki link parameter
m t1 and t3 parameters
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{HueCSS}}
{{HueCSS}}<includeonly><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{href|}}}{{{E|}}}{{{R|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}} | {{{E|}}}{{{R|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}] | {{{href|}}}{{{E|}}}{{{R|}}} = <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|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span> | {{{href|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{PAGENAMEE:{{{E}}}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span> | #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}} }}</onlyinclude></includeonly>
<pre style="display: none;"><onlyinclude>{{#if:{{{href|}}}|[{{{href}}} }}{{#if:{{{E|}}}|[[Ontology:{{{E}}}|}}<{{{html|span}}} {{#if:{{{lang|}}}|lang="{{{lang}}}"|}} class="tts {{{class|}}}" {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{tts|}}}{{{2|}}}{{{title|}}}=title{{=}}""|{{{tts|}}}{{{title|}}}=title{{=}}"{{{2|}}}"|{{{2|}}}{{{title|}}}=title{{=}}"{{{tts|}}}"|title{{=}}"{{{title|}}}"}}><span class="visual" aria-hidden="true">{{{1}}}</span><span class="help"> (pronounced </span><i {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{lang2|}}}{{{lang|}}}=data-lang{{=}}""|{{{lang|}}}=data-lang{{=}}"{{{lang2}}}"|{{{lang2|}}}=data-lang{{=}}"{{{lang}}}"|#default=data-lang{{=}}""}}class="aural">{{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{tts|}}}{{{2|}}} = error: TTS pronunciation missing | {{{tts|}}} = {{{2|error: TTS pronunciation missing}}} | {{{2|}}} = {{{tts|error: TTS pronunciation missing}}} | #default = {{{2|error: TTS pronunciation missing}}} }}</i><span class="help">)</span></{{{html|span}}}>{{#if:{{{href|}}}|]}}{{#if:{{{E|}}}|]]}}</onlyinclude></pre>
<!-- this has to be crammed into one line in order to be used in signatures.
put more readable version below:


{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
| {{{href|}}}{{{E|}}}{{{R|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}
| {{{E|}}}{{{R|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]
| {{{href|}}}{{{E|}}}{{{R|}}} = <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|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span>
| {{{href|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{PAGENAMEE:{{{E}}}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span>
| #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}
}}
-->
== Demo ==
== Demo ==


Line 9: Line 19:


oddly-pronounced word demo: {{TTS|tts=leet|1337|lang=en}}
oddly-pronounced word demo: {{TTS|tts=leet|1337|lang=en}}
wiki link demo: {{TTS|tts=leet|1337|lang=en|E=Q617}}
external link demo: {{TTS|tts=leet|1337|lang=en|href=https://en.wikipedia.org/wiki/Leet}}
thesis portal demo: {{TTS|html=cite|class=article|thesis portal entry|R=MDem/5.3/1655 judy-hopps}}


== Description ==
== Description ==
Line 15: Line 31:


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 21:10, 3 October 2025

Demo[edit]

pronounced displayed string, plus this text put first to be more TTS-friendly

pronounced displayed string in older style, plus this text only displayed to TTS

oddly-pronounced word demo: pronounced leet

wiki link demo: pronounced leet

external link demo: pronounced leet

thesis portal demo: thesis portal entry

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.