<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How do I add a pause to the beginning of a text-to-speech callout? in Voice API</title>
    <link>https://community.sinch.com/t5/Voice-API/How-do-I-add-a-pause-to-the-beginning-of-a-text-to-speech/ta-p/9918</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;When making a Text-to-Speech callout, the synthesized voice starts speaking as soon as the call is answered. In some cases, this may not be desireable. Using &lt;A href="https://developer.amazon.com/en-US/docs/alexa/custom-skills/speech-synthesis-markup-language-ssml-reference.html" target="_blank" rel="noopener"&gt;Speech Synthesis Markup Language&lt;/A&gt; (or SSML), you can add a pause to the start of the speech so that the synthesized voice waits for a configurable period of time before speaking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;To learn how to make a Text-to-Speech callout, see our &lt;A href="https://developers.sinch.com/docs/voice/getting-started/" target="_blank" rel="noopener"&gt;getting started&lt;/A&gt; guides on our developer portal!&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding a pause is as simple as adding a few SSML tags to the &lt;FONT face="courier new,courier" color="#FF6600"&gt;prompt&lt;/FONT&gt;&amp;nbsp;property of the &lt;FONT face="courier new,courier" color="#FF6600"&gt;ttsCallout&lt;/FONT&gt;&amp;nbsp;request body:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;{
  "method": "ttsCallout",
  "ttsCallout": {
    "cli": "&amp;lt;YOUR_phone_number&amp;gt;",
    "destination": {
      "type": "number",
      "endpoint": "&amp;lt;destination_phone_number&amp;gt;" },
    "locale": "en-US", "prompts": "#ssml[&amp;lt;speak&amp;gt;&amp;lt;break time="3s"/&amp;gt;Hello, this is a phone call from Sinch.&amp;lt;/speak&amp;gt;]"
    }
}&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above code will result in a 3-second pause before the synthesized voice says the prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use SSML tags for many other things in Text-to-Speech calls. Sinch's &lt;A href="https://developers.sinch.com/docs/voice/" target="_blank" rel="noopener"&gt;Voice API&lt;/A&gt; supports the SSML tags defined in the &lt;A href="https://www.w3.org/TR/2010/REC-speech-synthesis11-20100907/" target="_blank" rel="noopener"&gt;RFC&lt;/A&gt;. Some of the available &lt;A href="https://developers.sinch.com/docs/voice/api-reference/voice-locales/" target="_blank" rel="noopener"&gt;Voice IDs&lt;/A&gt; may have limited support of the defined SSML tags.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 12 Apr 2023 16:03:35 GMT</pubDate>
    <dc:creator>Alex_Sberna</dc:creator>
    <dc:date>2023-04-12T16:03:35Z</dc:date>
    <item>
      <title>How do I add a pause to the beginning of a text-to-speech callout?</title>
      <link>https://community.sinch.com/t5/Voice-API/How-do-I-add-a-pause-to-the-beginning-of-a-text-to-speech/ta-p/9918</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;When making a Text-to-Speech callout, the synthesized voice starts speaking as soon as the call is answered. In some cases, this may not be desireable. Using &lt;A href="https://developer.amazon.com/en-US/docs/alexa/custom-skills/speech-synthesis-markup-language-ssml-reference.html" target="_blank" rel="noopener"&gt;Speech Synthesis Markup Language&lt;/A&gt; (or SSML), you can add a pause to the start of the speech so that the synthesized voice waits for a configurable period of time before speaking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;To learn how to make a Text-to-Speech callout, see our &lt;A href="https://developers.sinch.com/docs/voice/getting-started/" target="_blank" rel="noopener"&gt;getting started&lt;/A&gt; guides on our developer portal!&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding a pause is as simple as adding a few SSML tags to the &lt;FONT face="courier new,courier" color="#FF6600"&gt;prompt&lt;/FONT&gt;&amp;nbsp;property of the &lt;FONT face="courier new,courier" color="#FF6600"&gt;ttsCallout&lt;/FONT&gt;&amp;nbsp;request body:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;{
  "method": "ttsCallout",
  "ttsCallout": {
    "cli": "&amp;lt;YOUR_phone_number&amp;gt;",
    "destination": {
      "type": "number",
      "endpoint": "&amp;lt;destination_phone_number&amp;gt;" },
    "locale": "en-US", "prompts": "#ssml[&amp;lt;speak&amp;gt;&amp;lt;break time="3s"/&amp;gt;Hello, this is a phone call from Sinch.&amp;lt;/speak&amp;gt;]"
    }
}&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above code will result in a 3-second pause before the synthesized voice says the prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use SSML tags for many other things in Text-to-Speech calls. Sinch's &lt;A href="https://developers.sinch.com/docs/voice/" target="_blank" rel="noopener"&gt;Voice API&lt;/A&gt; supports the SSML tags defined in the &lt;A href="https://www.w3.org/TR/2010/REC-speech-synthesis11-20100907/" target="_blank" rel="noopener"&gt;RFC&lt;/A&gt;. Some of the available &lt;A href="https://developers.sinch.com/docs/voice/api-reference/voice-locales/" target="_blank" rel="noopener"&gt;Voice IDs&lt;/A&gt; may have limited support of the defined SSML tags.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Apr 2023 16:03:35 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Voice-API/How-do-I-add-a-pause-to-the-beginning-of-a-text-to-speech/ta-p/9918</guid>
      <dc:creator>Alex_Sberna</dc:creator>
      <dc:date>2023-04-12T16:03:35Z</dc:date>
    </item>
  </channel>
</rss>

