protected function prepareTextToSpeechResponse(ResponseContextAbstract $context): TtsResponse
    {
        $response = new TtsResponse(
            $context->getRaw(),
            $this->getAudioFormatByContentTypeHeader($context->headers()),
            json_decode($context->getRequestContext()->getData(), true)['text']
        );

        return $response;
    }