SSML: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
 
Line 21: Line 21:
: x-strong: Sets a pause of the same duration as the pause after paragraph.
: x-strong: Sets a pause of the same duration as the pause after paragraph.


* time attribute
* time
: [number]s: The duration of the pause, in seconds. The maximum duration is 10s.
: [number]s: The duration of the pause, in seconds. The maximum duration is 10s.
: [number]ms: The duration of the pause, in milliseconds. The maximum duration is 10000ms.
: [number]ms: The duration of the pause, in milliseconds. The maximum duration is 10000ms.

Latest revision as of 15:53, 25 June 2019

Overview

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

Basic

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

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

Amazon polly

break

Attributes

  • strength
none: No pause. Use none to remove a normally occurring pause, such as after a period.
x-weak: Has the same strength as none, no pause.
weak: Sets a pause of the same duration as the pause after a comma.
medium: Has the same strenth as weak.
strong: Sets a pause of the same duration as the pause after a sentence.
x-strong: Sets a pause of the same duration as the pause after paragraph.
  • time
[number]s: The duration of the pause, in seconds. The maximum duration is 10s.
[number]ms: The duration of the pause, in milliseconds. The maximum duration is 10000ms.

Example

<speak>
     Mary had a little lamb <break time="3s"/>Whose fleece was white as snow.
</speak>

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