Yannick.
07/29/2024, 4:03 PMVapi
07/29/2024, 4:04 PMVapi
07/29/2024, 4:04 PMYannick.
07/29/2024, 5:34 PMVapi
07/29/2024, 5:34 PMjson
{
"response": "Sure, we have a whole list of products. Product number 1 is a sports shoe. Product number 2 is a jacket. Product number 3 is a hat. Product number 4 is a backpack. Product number 5 is a water bottle. Product number 6 is a pair of sunglasses. Product number 7 is a tent. Product number 8 is a sleeping bag. Product number 9 is a portable stove. Product number 10 is a beach bag. Would you like to know more about any of these products?"
}
In this example, the response key contains a plain text string that lists all the products. Vapi would then take this text and convert it into spoken words.
If you are using markdown or other formatting within your response, it's important to strip that out and provide only the text you want spoken. If you need to send structured data alongside the text (for example, product IDs or details), you can include that in the JSON as well, but make sure the text meant for speech is plain and easily readable.
If you continue to experience issues, it might be helpful to check the documentation for any character or length limitations in the speech synthesis and adjust your responses accordingly. If the problem persists, please reach out to Vapi support for further assistance.Shubham Bajaj
07/29/2024, 6:20 PM