public function getData()
{
$res = ['recipient' => ['id' => $this->recipient]];
$attachment = new Attachment(Attachment::TYPE_AUDIO);
if (strpos($this->text, 'http://') === 0 || strpos($this->text, 'https://') === 0) {
$attachment->setPayload(array('url' => $this->text));
} else {
$attachment->setFileData($this->getCurlValue($this->text, mime_content_type($this->text), basename($this->text)));
}
$res['message'] = $attachment->getData();
return $res;
}