Legacy Dev Forum Posts

 View Only

Sign Up

Text to Speech From Array Result from API

  • 1.  Text to Speech From Array Result from API

    Posted 06-05-2025 18:40

    Mateo_Kolenda | 2017-08-17 20:00:57 UTC | #1

    Hello

    I'd like the call flow to read the contents of an array returns to it from a web service. The response from the bridge action is

    { "$schema": "http://json-schema.org/draft-04/schema#", "title": "Default User Action Schema", "description": "Default schema for a user action.", "type": "object", "properties": { "paymentconfirmationcodes": { "type": "array", "description": "This is an array", "items": { "type": "string" } } }, "additionalProperties": true } An example array return would be something like ["23030", "23031"]

    How would I make the Pure Cloud system say "Your payment was successful, the confirmation codes are 23030, 23031". I tried to select the output variable Flow.paymentconfirmationcodes as a Data type in an Audio Sequence in architect but that variable did not appear in the list.

    Thanks in advance

    Mateo


    tim.smith | 2017-08-18 16:04:09 UTC | #2

    You can play everything in an array via a loop. Here's an example:

    <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/542e4f9b5bf4ec72d937c67e9a4710b64eb04949.png" width="302" height="306">

    array values (this would be set by Call Bridge Action in your case): <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/449294a323ab40090cd939557bdc186742d039ef.png" width="690" height="347">

    loop config: <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/0ee92ab86f0701541ac396ed3de737aca128b985.png" width="286" height="274">

    play audio: <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/371f802a8fde57d432879bbfa44d3975957410f3.png" width="683" height="436">


    system | 2017-09-18 16:02:34 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 1695