Skip to content

New Type TextPronunciation #2352

Merged
RichardWallis merged 2 commits intomasterfrom
issue-2108
Jan 2, 2020
Merged

New Type TextPronunciation #2352
RichardWallis merged 2 commits intomasterfrom
issue-2108

Conversation

@RichardWallis
Copy link
Contributor

@RichardWallis RichardWallis commented Sep 29, 2019

Implements proposal in issue (#2108 - Schema for specifying how to pronounce text) - see issue for discussion.

Adds new Type TextPronunciation and associated properties phoneticText, speechToTextMarkup and textValue.

Defined as a subtype of Text it could be used on any property that currently expects a Text value. Most common usage will probably be as additional values for name properties.

image

Examples include:

{
  "@context": "http://schema.org/",
  "@type": "City",
  "name": {
    "@type": "TextPronunciation",
    "inLanguage": "en-US",
    "textValue": "Worcester",
    "speechToTextMarkup": "IPA",
    "phoneticText": "/ˈwʊstɚ/"
  }
{
  "@context": "http://schema.org/",
  "@type": "RadioStation",
  "name": ["WKRP",
      {
        "@type": "TextPronunciation",
        "textValue": "WKRP",
        "speechToTextMarkup": "SSML",
        "phoneticText": "<speak><say-as interpret-as=\"characters\">WKRP</say-as>"
      }
  ]
}

@RichardWallis
Copy link
Contributor Author

Snippet for Pending section of releases.html:

<li id="2108"><a href="proxy.php?url=https://github.com/schemaorg/schemaorg/issues/2108">Issue #2108</a>:
(implemented in <a href="proxy.php?url=https://github.com/schemaorg/schemaorg/pull/2352">PR #2352</a>):
Introduced new pending type <a href="proxy.php?url=/TextPronunciation">TextPronunciation</a> enabling phonetic markup of text values.
</li>

@RichardWallis RichardWallis merged commit fd796f8 into master Jan 2, 2020
@danbri
Copy link
Contributor

danbri commented Jan 2, 2020

thanks for the fix @RichardWallis :)

@MatthiasWiesmann MatthiasWiesmann deleted the issue-2108 branch September 16, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants