SSML is not working for VOICE call responses and it fact it makes the agent crash (the voice call just drops). The documentation suggest that Text and Output audio text support SSML, but no matter how I configure it either crashed (drops the call) or it doesn't recognized it and I hear "Less than speak greater than... etc etc"
Ref: Fulfillments | Dialogflow CX | Google Cloud
Solved! Go to Solution.
After checking with Support, the logs indicated that the voice I was using does not support SSML - I haven't found documentation on which voices do or do not support SSML
Hi @IV-rol.,
Welcome to Google Cloud Community!
You're experiencing a common issue with SSML in Dialogflow CX voice calls. Although the documentation indicates that SSML is supported for text and output audio, there are certain limitations and potential misconfigurations that can cause call drops or unexpected outputs like the "less than, greater than" readout.
Here’s a summary of potential problems and troubleshooting steps:
1. SSML Compatibility and Implementation:
2. Troubleshooting Steps:
<speak>Thank you, $session.params.Name. The number I heard was $session.params.phonenumber. Is that correct?</speak>
While less elegant, this approach may be more reliable if SSML fails.
Example of Improved SSML:
<speak>Thank you <say-as interpret-as="name">$session.params.Name</say-as>. The number I heard was <say-as interpret-as="telephone">
<say-as interpret-as="digits">$session.params.phonenumber</say-as>
</say-as>. Is that correct?</speak>
This example uses nested <say-as> tags to clarify the number as digits and then as a telephone number. Adjust the formatting for different regional numbers to enhance compatibility with speech synthesis.
Please refer to the SSML document for examples and tips for using SSML or in Text-to-Speech public docs.
I hope the above information is helpful.
Hi @dawnberdan, thanks for responding.
I unfortunately already tried simple SSML configuration without success. and even using a static value like you suggested.
Where could I find the logs that will indicate the underlying problem? What is see under Conversation History does not help.
Hi @IV-rol,
The issue likely lies not within the SSML itself, but rather in how your Dialogflow agent processes the $session.params.NewPhoneContact.ANI
parameter. The SSML is properly formatted to include the parameter; the concern is whether that parameter is populated correctly before the response is generated.
You should review the logs related to your Dialogflow agent's execution to find the context in which the agent attempts to evaluate $session.params.NewPhoneContact.ANI
. The exact location of these logs depends on your Dialogflow deployment and logging configuration, so there isn’t a single universal location.
Here’s how to troubleshoot:
1. Verify Parameter Population: Ensure theNewPhoneContact.ANI
parameter is correctly set within your Dialogflow agent before this response is triggered. It likely needs to be populated by a previous intent or webhook interaction.
2. Check Dialogflow Logs: Look for detailed logs in the Dialogflow console. The location may vary depending on your project setup, but generally, you should look for:
NewPhoneContact.ANI
, check the logs from your webhook’s environment (e.g., Cloud Functions logs, your server’s logs) to see what value it sends to Dialogflow.3. Debugging Techniques:
$session.params.NewPhoneContact.ANI
in your Dialogflow agent with a hardcoded test value (like "555-1212"). If that works, it indicates the SSML and response configuration are correct, and the issue lies with parameterization.NewPhoneContact.ANI
before it’s sent to Dialogflow to verify the data.$session.params.NewPhoneContact
first to confirm that part exists. Then check if ANI
is a property of that object.I hope it helps!
I appreciate the explanation, but this is surely an SSML problem. The variable has data, I can see the result on the chat test and while calling I have a previous fulfillment that say "Your number is one million, two thousand etc etc".
The conversation history does not how an error it stops at the previous response "what is your name?" I respond Bob Smith and then the call drops. The Logs Explorer doesn't show anything either.
I'll try to open a support ticket - Thanks.
After checking with Support, the logs indicated that the voice I was using does not support SSML - I haven't found documentation on which voices do or do not support SSML
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |