src/API/Implementation/TTS/TtsApiAbstract.php
public function textToSpeech(
        string $text,
        Language $language,
        TtsAudioFormat $format,
        array $additionalData = []
    ): TtsResponse {
        /** @var TtsResponse $response */
        $response = $this->callApi(__FUNCTION__, func_get_args());

        return $response;
    }
public function textToSpeech(
        string $text,
        Language $language,
        TtsAudioFormat $format,
        array $additionalData = []
    ): TtsResponse {
        /** @var TtsResponse $response */
        $response = $this->callApi(__FUNCTION__, func_get_args());

        return $response;
    }
public function textToSpeech ( string $ text , Language $ language , TtsAudioFormat $ format , array $ additionalData = [ ] ) : TtsResponse { /** @var TtsResponse $response */ $ response = $ this -> callApi ( __FUNCTION__ , func_get_args ( ) ) ; return $ response ; }
Gets TTS raw data, that can be saved afterwards

@param string         $text
@param Language       $language
@param TtsAudioFormat $format
@param array          $additionalData

@throws TransportException
@throws ResponseContextException
@throws BadResponseContextException
@throws MethodDoesNotExistException

@return TtsResponse
Gets TTS raw data that can be saved afterwards