public function sendVoice($to, $content = null, $tempId = null, array $data = [], $code = null, $fileId = null, array $params = [])
    {
        $this->reset();
        $this->params($params, true);
        $to = $this->formatMobile(Util::formatMobiles($to));

        if ($tempId && $this instanceof TemplateVoice) {
            $this->sendTemplateVoice($to, $tempId, $data);
        } elseif ($fileId && $this instanceof FileVoice) {
            $this->sendFileVoice($to, $fileId);
        } elseif ($code && $this instanceof VoiceCode) {
            $this->sendVoiceCode($to, $code);
        } elseif ($content && $this instanceof ContentVoice) {
            $this->sendContentVoice($to, $content);
        }
    }
public function sendVoice($to, $content = null, $tempId = null, array $data = [], $code = null, $fileId = null, array $params = [])
    {
        $this->reset();
        $this->params($params, true);
        $to = $this->formatMobile(Util::formatMobiles($to));

        if ($tempId && $this instanceof TemplateVoice) {
            $this->sendTemplateVoice($to, $tempId, $data);
        } elseif ($fileId && $this instanceof FileVoice) {
            $this->sendFileVoice($to, $fileId);
        } elseif ($code && $this instanceof VoiceCode) {
            $this->sendVoiceCode($to, $code);
        } elseif ($content && $this instanceof ContentVoice) {
            $this->sendContentVoice($to, $content);
        }
    }
public function sendVoice ( $ to , $ content = null , $ tempId = null , array $ data = [ ] , $ code = null , $ fileId = null , array $ params = [ ] ) { $ this -> reset ( ) ; $ this -> params ( $ params , true ) ; $ to = $ this -> formatMobile ( Util :: formatMobiles ( $ to ) ) ; if ( $ tempId && $ this instanceof TemplateVoice ) { $ this -> sendTemplateVoice ( $ to , $ tempId , $ data ) ; } elseif ( $ fileId && $ this instanceof FileVoice ) { $ this -> sendFileVoice ( $ to , $ fileId ) ; } elseif ( $ code && $ this instanceof VoiceCode ) { $ this -> sendVoiceCode ( $ to , $ code ) ; } elseif ( $ content && $ this instanceof ContentVoice ) { $ this -> sendContentVoice ( $ to , $ content ) ; } }
Voice send process.

@param       $to
@param       $content
@param       $tempId
@param array $data
@param       $code
@param       $fileId
@param array $params
Voice send process .