public function respondSsml(string $ssml, $endSession = false): Response
    {
        $outputSpeech = OutputSpeech::createBySsml($ssml);

        $this->responseBody->outputSpeech     = $outputSpeech;
        $this->responseBody->shouldEndSession = $endSession;

        return $this->response;
    }
public function respondSsml(string $ssml, $endSession = false): Response
    {
        $outputSpeech = OutputSpeech::createBySsml($ssml);

        $this->responseBody->outputSpeech     = $outputSpeech;
        $this->responseBody->shouldEndSession = $endSession;

        return $this->response;
    }
public function respondSsml ( string $ ssml , $ endSession = false ) : Response { $ outputSpeech = OutputSpeech :: createBySsml ( $ ssml ) ; $ this -> responseBody -> outputSpeech = $ outputSpeech ; $ this -> responseBody -> shouldEndSession = $ endSession ; return $ this -> response ; }
Add a ssml respond to response.

@param string $ssml
@param bool   $endSession

@return Response
Add a ssml respond to response .