<?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>topic VoiceApi - ttsCallout - runMenu in Discussion Forum</title>
    <link>https://community.sinch.com/t5/Discussion-Forum/VoiceApi-ttsCallout-runMenu/m-p/15983#M701</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm trying to implement a ttsCallout where i can run a menu with runMenu and receive the answer via a PIE callback.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My request looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;    request = %{
      method: "ttsCallout",
      ttsCallout: %{
        destination: %{
          type: "number",
          endpoint: message.to
        },
        locale: "Gabrielle",
        text: message.body,
        enablePie: true
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I'm looking at the&amp;nbsp;&lt;A href="https://developers.sinch.com/docs/voice/api-reference/voice/tag/Callouts/#tag/Callouts/operation/Callouts" target="_self"&gt;docs&lt;/A&gt;&amp;nbsp;for callouts and i can see in the request, for the `ttsCallout` key which is an object, there is a `enablePie` key which is a boolean. The description says:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;enablePie&lt;SPAN&gt;&amp;nbsp;is set to&amp;nbsp;&lt;/SPAN&gt;true&lt;SPAN&gt;&amp;nbsp;and the application has a callback URL specified, you will receive a PIE callback after the&amp;nbsp;&lt;/SPAN&gt;runMenu&lt;SPAN&gt;&amp;nbsp;action executes and after the configured menu timeout has elapsed with no input.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where in the request can i enter the SVAML to setup the runMenu action?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 00:02:08 GMT</pubDate>
    <dc:creator>Etienne</dc:creator>
    <dc:date>2024-08-28T00:02:08Z</dc:date>
    <item>
      <title>VoiceApi - ttsCallout - runMenu</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/VoiceApi-ttsCallout-runMenu/m-p/15983#M701</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm trying to implement a ttsCallout where i can run a menu with runMenu and receive the answer via a PIE callback.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My request looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;    request = %{
      method: "ttsCallout",
      ttsCallout: %{
        destination: %{
          type: "number",
          endpoint: message.to
        },
        locale: "Gabrielle",
        text: message.body,
        enablePie: true
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I'm looking at the&amp;nbsp;&lt;A href="https://developers.sinch.com/docs/voice/api-reference/voice/tag/Callouts/#tag/Callouts/operation/Callouts" target="_self"&gt;docs&lt;/A&gt;&amp;nbsp;for callouts and i can see in the request, for the `ttsCallout` key which is an object, there is a `enablePie` key which is a boolean. The description says:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;enablePie&lt;SPAN&gt;&amp;nbsp;is set to&amp;nbsp;&lt;/SPAN&gt;true&lt;SPAN&gt;&amp;nbsp;and the application has a callback URL specified, you will receive a PIE callback after the&amp;nbsp;&lt;/SPAN&gt;runMenu&lt;SPAN&gt;&amp;nbsp;action executes and after the configured menu timeout has elapsed with no input.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where in the request can i enter the SVAML to setup the runMenu action?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 00:02:08 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/VoiceApi-ttsCallout-runMenu/m-p/15983#M701</guid>
      <dc:creator>Etienne</dc:creator>
      <dc:date>2024-08-28T00:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: VoiceApi - ttsCallout - runMenu</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/VoiceApi-ttsCallout-runMenu/m-p/15984#M702</link>
      <description>&lt;P&gt;Hi Etienne,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ttsCallout is specifically for a text to speech call, so all it does is play a message. If you want to do more complex SVAML behavior, you should use the &lt;A href="https://developers.sinch.com/docs/voice/api-reference/voice/tag/Callouts/#tag/Callouts/operation/Callouts!path=customCallout&amp;amp;t=request" target="_self"&gt;custom callout&lt;/A&gt;. Here you can include &lt;A href="https://developers.sinch.com/docs/voice/api-reference/voice/tag/Callouts/#tag/Callouts/operation/Callouts!path=customCallout/ace&amp;amp;t=request" target="_self"&gt;ACE&lt;/A&gt; SVAML object that will allow you to configure your runMenu action when the call is answered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This &lt;A href="https://developers.sinch.com/docs/voice/tutorials/qualify-leads/java/amd-callout/" target="_self"&gt;tutorial&lt;/A&gt; uses the Java SDK for Voice to make a custom callout that starts a runMenu action, but the explanation for how it works applies to the REST API as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps and let me know if you have any further questions.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 03:04:15 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/VoiceApi-ttsCallout-runMenu/m-p/15984#M702</guid>
      <dc:creator>Alex_Sberna</dc:creator>
      <dc:date>2024-08-28T03:04:15Z</dc:date>
    </item>
  </channel>
</rss>

