Jump to content

Template:TTS: Difference between revisions

From Philosophical Research
m category
revisit title parameter
Line 1: Line 1:
{{HueCSS}}
{{HueCSS}}
<pre style="display: none;"><onlyinclude><{{{html|span}}} class="tts {{{class|}}}" {{#if: {{{lang|}}} | lang="{{{lang}}}" }}{{#if: {{{title|}}} | title="{{{title}}}" }}{{#if: {{{wtitle|}}} | title="{{{2}}}" }}><span class="visual" aria-hidden="true">{{{1}}}</span><span class="help"> (pronounced </span><i class="aural">{{{2}}}</i><span class="help">)</span></{{{html|span}}}></onlyinclude></pre>
<pre style="display: none;"><onlyinclude><{{{html|span}}} class="tts {{{class|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"|}} {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{tts|}}}{{{2|}}}=title{{=}}""|{{{tts|}}}=title{{=}}"{{{2|}}}"|{{{2|}}}=title{{=}}"{{{tts|}}}"}}><span class="visual" aria-hidden="true">{{{1}}}</span><span class="help"> (pronounced </span><i class="aural">{{#switch: {{{tts|}}} | {{{tts}}} | {{{2}}} }}</i><span class="help">)</span></{{{html|span}}}></onlyinclude></pre>


== Demo ==
== Demo ==


{{TTS|displayed string|displayed string, plus this text only displayed to TTS|title=this demo will be pronounced: displayed string, plus this text only displayed to TTS}}
{{TTS|displayed string|displayed string, plus this text only displayed to TTS|title=this demo will be pronounced: displayed string, plus this text only displayed to TTS}}
{{TTS|tts=displayed string in older style, plus this text put first to be more TTS-friendly|displayed string in older style|title=this demo will be pronounced: displayed string in older style, plus this text put first to be more TTS-friendly}}
oddly-pronounced word demo: {{TTS|tts=leet|1337|lang=en}}


== Description ==
== Description ==
Line 10: Line 14:
This is a template for giving bits of text a TTS pronunciation.
This is a template for giving bits of text a TTS pronunciation.


Earlier, <code>aria-label</code> was mistakenly used for this, but it turns out that text substitution for speaking-machines is something that is generally not 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.)


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

Revision as of 22:27, 27 July 2025

<onlyinclude><{{{html|span}}} class="tts {{{class|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"|}} {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{tts|}}}{{{2|}}}=title{{=}}""|{{{tts|}}}=title{{=}}"{{{2|}}}"|{{{2|}}}=title{{=}}"{{{tts|}}}"}}><span class="visual" aria-hidden="true">{{{1}}}</span><span class="help"> (pronounced </span><i class="aural">{{#switch: {{{tts|}}} | {{{tts}}} | {{{2}}} }}</i><span class="help">)</span></{{{html|span}}}></onlyinclude>

Demo

(pronounced displayed string, plus this text only displayed to TTS)

(pronounced {{{2}}})

oddly-pronounced word demo: (pronounced {{{2}}})

Description

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.)