<break> Inconsistencies?

0

It seems that there is some inconsistencies in how the Amazon Polly Console (and files processed through the CLI or API) is handling non-coded pauses when using <break> or where the </speak> is placed in the file.

Here are some examples to illustrate the problem - it doesn't matter if a neural voice or standard voice is used.

Example 1:

<speak>Article 1
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</speak
>```

A pause is inserted after Article 1 since there is a paragraph break which is the expected result.  
  
Example 2:

<speak>Article 1 Video provides a powerful way to help you prove your point. When you click Online Video <break time = ".3s"/> you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document. </speak

A <break> is inserted in place of the comma. When this occurs, the paragraph break after Article 1 is ignored so there is no pause between Article 1 and Video. This is unexpected.

Example 3:

<speak>Article 1
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.</speak
>```

Similar to Example 1, a pause **should ** occur after Article 1 since there is a paragraph break.  This does not occur.  Notice that there is no line break before </speak>.  
  
Any clarification would be most helpful as results are inconsistent now and it would be time consuming to have to insert
`<p></p>`
 throughout to get expected results.  
  
Edited by: vabtm on Jul 3, 2020 1:57 PM
vabtm
질문됨 4년 전223회 조회
3개 답변
0

Hi vabtm,

Thank you for reaching out to us. A single newline doesn't enforce a paragraph break, it may happen that the text is split to multiple chunks which could result in having a pause after "Article 1", our recommendation is to use either p tag or more than one single newline to introduce the pause. Examples:

<speak>
<p>Article 1</p>
<p>Video provides a powerful way to help you prove your point. When you click Online Video <break time = ".3s"/> you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.</p>
</speak>

or

<speak>
Article 1

Video provides a powerful way to help you prove your point. When you click Online Video <break time = ".3s"/> you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</speak>

Thanks,
Tarek

답변함 4년 전
0

Thanks for responding, Tarek. I did some additional testing to confirm by using this example:

<speak>Apple Oranges Grapes</speak
>```

That produces what you would expect - "Apple Oranges Grapes"

<speak>Apple Oranges Grapes</speak

This also produces "Apple Oranges Grapes" as in the example above.

To get the break, you need to have at least two newlines to create a pause as in this example.

<speak>Apple 

Oranges 

Grapes</speak
>```

vabtm
답변함 4년 전
0

Hi Vabtm,

Yes, your examples shows how it works indeed. Please reach out to us, if you have any other related issues.

Best,
Fatih

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠