SSML: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
(Created page with "== Overview == SSML(Speech Synthesis Markup Language) 내용정리. == Basic == SSML은 Markup 언어의 종류로서, 음성을 언어로 표현한 방법의 하나이다....")
 
Line 12: Line 12:
== google ==
== google ==
* https://developers.google.com/actions/reference/ssml
* https://developers.google.com/actions/reference/ssml
=== speak ===
The root element of the SSML response.
<pre>
<speak>
  my SSML content
</speak>
</pre>
=== break ===
<pre>
<speak>
  Step 1, take a deep breath. <break time="200ms"/>
  Step 2, exhale.
  Step 3, take a deep breath again. <break strength="weak"/>
  Step 4, exhale.
</speak>
</pre>
=== say-as ===
Lets you indicate information about the type of text construct that is contained within the element. It also helps specify the level of detail for rendering the contained text.
* cardinal
: The following example is spoken as "Twelve thousand three hundred forty five" (for US English) or "Twelve thousand three hundred and forty five (for UK English)".
<pre>
<speak>
  <say-as interpret-as="cardinal">12345</say-as>
</speak>
</pre>


== Reference ==
== Reference ==

Revision as of 15:48, 25 June 2019

Overview

SSML(Speech Synthesis Markup Language) 내용정리.

Basic

SSML은 Markup 언어의 종류로서, 음성을 언어로 표현한 방법의 하나이다.

이를 이용하면 TTS(Text to Speech) 서비스시 더욱 다양하고 정확한 음성을 생성할 수 있다.

Amazon polly

google

speak

The root element of the SSML response.

<speak>
  my SSML content
</speak>

break

<speak>
  Step 1, take a deep breath. <break time="200ms"/>
  Step 2, exhale.
  Step 3, take a deep breath again. <break strength="weak"/>
  Step 4, exhale.
</speak>

say-as

Lets you indicate information about the type of text construct that is contained within the element. It also helps specify the level of detail for rendering the contained text.

  • cardinal
The following example is spoken as "Twelve thousand three hundred forty five" (for US English) or "Twelve thousand three hundred and forty five (for UK English)".
<speak>
  <say-as interpret-as="cardinal">12345</say-as>
</speak>

Reference