

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 숨소리 추가
<a name="breath-tag"></a>

*<amazon:breath> 및 <amazon:auto-breaths>*

표준 TTS 형식만 이 태그를 지원합니다.

자연스럽게 들리는 스피치에는 올바르게 말하는 단어와 숨소리가 모두 포함됩니다. 스피치 합성에 숨소리를 추가하면 더 자연스럽게 들리는 스피치를 만들 수 있습니다. `<amazon:breath>` 및 `<amazon:auto-breaths>` 태그는 숨소리를 제공합니다. 다음과 같은 옵션이 있습니다.
+  수동 모드: 사용자가 텍스트 내에 있는 숨소리의 위치, 길이, 볼륨을 설정합니다.
+  자동화 모드: Amazon Polly에서 숨소리를 스피치 출력에 자동으로 삽입합니다.
+  혼합 모드: 사용자와 Amazon Polly가 모두 숨소리를 추가합니다.

**수동 모드**  
수동 모드에서는 숨소리를 배치할 입력 텍스트에 `<amazon:breath/>` 태그를 지정합니다. `duration` 및 `volume` 속성을 각각 사용하여 숨소리의 길이와 볼륨을 사용자 지정할 수 있습니다.


+ `duration`: 숨소리의 길이를 제어합니다. 유효한 값은 `default`, `x-short`, `short`, `medium`, `long`, `x-long`입니다. 기본값은 `medium`입니다.
+ `volume`: 숨소리가 얼마나 크게 들리는지를 제어합니다. 유효한 값은 `default`, `x-soft`, `soft`, `medium`, `loud`, `x-loud`입니다. 기본값은 `medium`입니다.

**참고**  
각 속성 값의 정확한 길이와 볼륨은 사용되는 특정 Amazon Polly 음성에 따라 다릅니다.

기본값을 사용하여 숨소리를 설정하려면 속성 없이 `<amazon:breath/>`을(를) 사용합니다.

예를 들어, 속성을 사용하여 숨소리의 기간과 볼륨을 중간으로 설정하려면 속성을 다음과 같이 설정합니다.

```
<speak>
     Sometimes you want to insert only <amazon:breath duration="medium" volume="x-loud"/>a single breath.
</speak>
```

기본값을 사용하려면 태그만 사용합니다.

```
<speak>
     Sometimes you need <amazon:breath/>to insert one or more average breaths <amazon:breath/> so that the 
     text sounds correct.
</speak>
```

다음과 같이 구절 내에 개별 숨소리를 추가할 수 있습니다.

```
<speak>
     <amazon:breath duration="long" volume="x-loud"/> <prosody rate="120%"> <prosody volume="loud"> 
     Wow! <amazon:breath duration="long" volume="loud"/> </prosody> That was quite fast. <amazon:breath 
     duration="medium" volume="x-loud"/> I almost beat my personal best time on this track. </prosody>
</speak>
```

**자동화 모드**  
자동화 모드에서는 `<amazon:auto-breaths>` 태그를 사용하여 Amazon Polly에서 적절한 간격으로 숨소리 잡음을 자동으로 생성하도록 지정합니다. 간격의 빈도, 볼륨 및 기간을 설정할 수 있습니다. 자동화된 숨소리를 적용할 텍스트의 시작 부분에 `</amazon:auto-breaths>` 태그를 지정하고 끝 부분에 닫는 태그를 지정합니다.

**참고**  
수동 모드 태그인 `<amazon:breath/>`와는 달리, `<amazon:auto-breaths>` 태그에는 닫는 태그(`</amazon:auto-breaths>`)가 필요합니다.

다음과 같은 옵션 속성을 `<amazon:auto-breaths>` 태그와 함께 사용할 수 있습니다.
+ `volume`: 숨소리가 얼마나 크게 들리는지를 제어합니다. 유효한 값은 `default`, `x-soft`, `soft`, `medium`, `loud`, `x-loud`입니다. 기본값은 `medium`입니다.
+ `frequency`: 텍스트에서 숨소리가 얼마나 자주 들리는지를 제어합니다. 유효한 값은 `default`, `x-low`, `low`, `medium`, `high`, `x-high`입니다. 기본값은 `medium`입니다.
+ `duration`: 숨소리의 길이를 제어합니다. 유효한 값은 `default`, `x-short`, `short`, `medium`, `long`, `x-long`입니다. 기본값은 `medium`입니다.

기본적으로 숨소리의 빈도는 입력 텍스트에 따라 다릅니다. 하지만 주로 쉼표와 마침표 뒤에 숨소리가 들립니다.

다음 예제에서는 `<amazon:auto-breaths>` 태그를 사용하는 방법을 보여줍니다. 콘텐츠에 어떤 옵션을 사용할지 결정하려면 적용 가능한 예제를 Amazon Polly 콘솔에 복사하고 차이를 들어 봅니다.
+  옵션 파라미터 없이 자동화 모드를 사용합니다.

  ```
  <speak>
       <amazon:auto-breaths>Amazon Polly is a service that turns text into lifelike speech, 
       allowing you to create applications that talk and build entirely new categories of speech-
       enabled products. Amazon Polly is a text-to-speech service that uses advanced deep learning 
       technologies to synthesize speech that sounds like a human voice. With dozens of lifelike 
       voices across a variety of languages, you can select the ideal voice and build speech-
       enabled applications that work in many different countries.</amazon:auto-breaths>
  </speak>
  ```
+  볼륨 제어와 함께 자동화 모드를 사용합니다. 비지정 파라미터(`duration` 및 `frequency`)는 기본값(`medium`)으로 설정됩니다.

  ```
  <speak>
       <amazon:auto-breaths volume="x-soft">Amazon Polly is a service that turns text into lifelike 
       speech, allowing you to create applications that talk and build entirely new categories of 
       speech-enabled products. Amazon Polly is a text-to-speech service, that uses advanced deep 
       learning technologies to synthesize speech that sounds like a human voice. With dozens of 
       lifelike voices across a variety of languages, you can select the ideal voice and build speech-
       enabled applications that work in many different countries.</amazon:auto-breaths>
  </speak>
  ```
+  빈도 제어와 함께 자동화 모드를 사용합니다. 비지정 파라미터(`duration` 및 `volume`)는 기본값(`medium`)으로 설정됩니다.

  ```
  <speak>
       <amazon:auto-breaths frequency="x-low">Amazon Polly is a service that turns text into lifelike 
       speech, allowing you to create applications that talk and build entirely new categories of 
       speech-enabled products. Amazon Polly is a text-to-speech service, that uses advanced deep 
       learning technologies to synthesize speech that sounds like a human voice. With dozens of 
       lifelike voices across a variety of languages, you can select the ideal voice and build speech-
       enabled applications that work in many different countries.</amazon:auto-breaths>
  </speak>
  ```
+  다중 파라미터와 함께 자동화 모드를 사용합니다. 비지정 `Duration` 파라미터의 경우 Amazon Polly에서 기본값(`medium`)을 사용합니다.

  ```
  <speak>
       <amazon:auto-breaths volume="x-loud" frequency="x-low">Amazon Polly is a service that turns 
       text into lifelike speech, allowing you to create applications that talk and build entirely new 
       categories of speech-enabled products. Amazon Polly is a text-to-speech service, that uses 
       advanced deep learning technologies to synthesize speech that sounds like a human voice. With 
       dozens of lifelike voices across a variety of languages, you can select the ideal voice and build 
       speech-enabled applications that work in many different countries.</amazon:auto-breaths>
  </speak>
  ```

