The following procedure assumes the IMS session has been established and the bearer is through-connected, and the MRFC has received a trigger to play TTS, and the MRFP selected for the call has the capabilities to provide TTS.
After reception of a trigger to play TTS, the MRFC should initiate the Start TTS procedure.
If the MRFC receives a VXML script, the MRFC shall extract the SSML script or the SSML file identifier from the VXML script. If the MRFC receives plain text, the MRFC shall generate a SSML script that includes this plain text (<speak>) and the language type (xml:lang) used the basic SSML format. If the size of the SSML script is larger than the transport capability of the Mp interface, the MRFC shall stop the Start TTS procedure and return error.
Then the MRFC shall indicate to the MRFP the SSML script or the SSML file identifier to play the SSML text to one, one of many, multiple or all terminations in a context. If the MRFP does not support an element of the SSML, the MRFP may ignore the element.
The MRFC may request the MRFP to play the TTS in a loop continuously until requested to be stopped or in a loop with a fixed number of times. For the second case, if the fixed number of times is exhausted, the TTS is completed successfully.
The MRFC may request the MRFP to detect DTMF digit while playing a TTS, and may request the MRFP to stop TTS when a DTMF digit is detected. For the second case, only the TTS completion event is notified.
The MRFC may request the MRFP to detect the TTS completion and notify the completion event and cause to the MRFC. The TTS is completed when either of the following has occurred;
-
the TTS has been completed successfully or:
-
a DTMF digit is detected by the MRFP or:
-
the playing TTS is not successful.
On receipt of a trigger to stop TTS, the MRFC shall request the MRFP to stop the TTS.
When a TTS is completed, if the MRFC has requested the MRFP to notify the TTS completion, the MRFP shall notify the TTS completion event and the cause to the MRFC. The cause that the TTS is completed may be the TTS has been completed successfully, or a DTMF digit is detected by the MRFP, or the playing TTS is not successful. Then the MRFC may indicate to the AS that the TTS has been stopped.
Figure 6.2.3.5.1 shows the message sequence chart example for playing TTS.