Jump to content

Template:TTS

From Philosophical Research
Revision as of 21:15, 26 September 2025 by Reversedragon (talk | contribs) (escape page name)

Demo

{{#switch: | = pronounced displayed string, plus this text put first to be more TTS-friendly | = [{{{href}}} pronounced displayed string, plus this text put first to be more TTS-friendly] | = pronounced displayed string, plus this text put first to be more TTS-friendly | = [https://research.moraleconomy.au/index.php?title=

  1. default = pronounced displayed string, plus this text put first to be more TTS-friendly

{{#switch: | = pronounced displayed string in older style, plus this text only displayed to TTS | = [{{{href}}} pronounced displayed string in older style, plus this text only displayed to TTS] | = pronounced displayed string in older style, plus this text only displayed to TTS | = [https://research.moraleconomy.au/index.php?title=

  1. default = pronounced displayed string in older style, plus this text only displayed to TTS

oddly-pronounced word demo: {{#switch: | = pronounced leet | = [{{{href}}} pronounced leet] | = pronounced leet | = [https://research.moraleconomy.au/index.php?title=

  1. default = pronounced leet

wiki link demo: {{#switch: | Q617 = pronounced leet | Q617 = [{{{href}}} pronounced leet] | Q617 = pronounced leet | = pronounced leet

external link demo: {{#switch: | https://en.wikipedia.org/wiki/Leet = pronounced leet | = pronounced leet | https://en.wikipedia.org/wiki/Leet = pronounced leet | https://en.wikipedia.org/wiki/Leet = [https://research.moraleconomy.au/index.php?title=

  1. default = pronounced leet

thesis portal demo: {{#switch: | MDem/5.3/1655 judy-hopps = thesis portal entry | MDem/5.3/1655 judy-hopps = [{{{href}}} thesis portal entry] | MDem/5.3/1655 judy-hopps = thesis portal entry | = [https://research.moraleconomy.au/index.php?title=Philosophical_Research:MDem/5.3/1655_judy-hopps

  1. default = thesis portal entry

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

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.