123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <?php
- // This file is auto-generated, don't edit it. Thanks.
- namespace AlibabaCloud\SDK\Dyvmsapi\V20170525\Models;
- use AlibabaCloud\Tea\Model;
- class SmartCallRequest extends Model
- {
- /**
- * @var int
- */
- public $ownerId;
- /**
- * @var string
- */
- public $resourceOwnerAccount;
- /**
- * @var int
- */
- public $resourceOwnerId;
- /**
- * @var string
- */
- public $calledShowNumber;
- /**
- * @var string
- */
- public $calledNumber;
- /**
- * @var string
- */
- public $voiceCode;
- /**
- * @var bool
- */
- public $recordFlag;
- /**
- * @var int
- */
- public $volume;
- /**
- * @var int
- */
- public $speed;
- /**
- * @var string
- */
- public $asrModelId;
- /**
- * @var int
- */
- public $pauseTime;
- /**
- * @var int
- */
- public $muteTime;
- /**
- * @var bool
- */
- public $actionCodeBreak;
- /**
- * @var string
- */
- public $outId;
- /**
- * @var string
- */
- public $dynamicId;
- /**
- * @var bool
- */
- public $earlyMediaAsr;
- /**
- * @var string
- */
- public $voiceCodeParam;
- /**
- * @var int
- */
- public $sessionTimeout;
- /**
- * @var int
- */
- public $actionCodeTimeBreak;
- /**
- * @var string
- */
- public $ttsStyle;
- /**
- * @var int
- */
- public $ttsVolume;
- /**
- * @var int
- */
- public $ttsSpeed;
- /**
- * @var bool
- */
- public $ttsConf;
- /**
- * @var string
- */
- public $asrBaseId;
- /**
- * @var int
- */
- public $streamAsr;
- protected $_name = [
- 'ownerId' => 'OwnerId',
- 'resourceOwnerAccount' => 'ResourceOwnerAccount',
- 'resourceOwnerId' => 'ResourceOwnerId',
- 'calledShowNumber' => 'CalledShowNumber',
- 'calledNumber' => 'CalledNumber',
- 'voiceCode' => 'VoiceCode',
- 'recordFlag' => 'RecordFlag',
- 'volume' => 'Volume',
- 'speed' => 'Speed',
- 'asrModelId' => 'AsrModelId',
- 'pauseTime' => 'PauseTime',
- 'muteTime' => 'MuteTime',
- 'actionCodeBreak' => 'ActionCodeBreak',
- 'outId' => 'OutId',
- 'dynamicId' => 'DynamicId',
- 'earlyMediaAsr' => 'EarlyMediaAsr',
- 'voiceCodeParam' => 'VoiceCodeParam',
- 'sessionTimeout' => 'SessionTimeout',
- 'actionCodeTimeBreak' => 'ActionCodeTimeBreak',
- 'ttsStyle' => 'TtsStyle',
- 'ttsVolume' => 'TtsVolume',
- 'ttsSpeed' => 'TtsSpeed',
- 'ttsConf' => 'TtsConf',
- 'asrBaseId' => 'AsrBaseId',
- 'streamAsr' => 'StreamAsr',
- ];
- public function validate()
- {
- }
- public function toMap()
- {
- $res = [];
- if (null !== $this->ownerId) {
- $res['OwnerId'] = $this->ownerId;
- }
- if (null !== $this->resourceOwnerAccount) {
- $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
- }
- if (null !== $this->resourceOwnerId) {
- $res['ResourceOwnerId'] = $this->resourceOwnerId;
- }
- if (null !== $this->calledShowNumber) {
- $res['CalledShowNumber'] = $this->calledShowNumber;
- }
- if (null !== $this->calledNumber) {
- $res['CalledNumber'] = $this->calledNumber;
- }
- if (null !== $this->voiceCode) {
- $res['VoiceCode'] = $this->voiceCode;
- }
- if (null !== $this->recordFlag) {
- $res['RecordFlag'] = $this->recordFlag;
- }
- if (null !== $this->volume) {
- $res['Volume'] = $this->volume;
- }
- if (null !== $this->speed) {
- $res['Speed'] = $this->speed;
- }
- if (null !== $this->asrModelId) {
- $res['AsrModelId'] = $this->asrModelId;
- }
- if (null !== $this->pauseTime) {
- $res['PauseTime'] = $this->pauseTime;
- }
- if (null !== $this->muteTime) {
- $res['MuteTime'] = $this->muteTime;
- }
- if (null !== $this->actionCodeBreak) {
- $res['ActionCodeBreak'] = $this->actionCodeBreak;
- }
- if (null !== $this->outId) {
- $res['OutId'] = $this->outId;
- }
- if (null !== $this->dynamicId) {
- $res['DynamicId'] = $this->dynamicId;
- }
- if (null !== $this->earlyMediaAsr) {
- $res['EarlyMediaAsr'] = $this->earlyMediaAsr;
- }
- if (null !== $this->voiceCodeParam) {
- $res['VoiceCodeParam'] = $this->voiceCodeParam;
- }
- if (null !== $this->sessionTimeout) {
- $res['SessionTimeout'] = $this->sessionTimeout;
- }
- if (null !== $this->actionCodeTimeBreak) {
- $res['ActionCodeTimeBreak'] = $this->actionCodeTimeBreak;
- }
- if (null !== $this->ttsStyle) {
- $res['TtsStyle'] = $this->ttsStyle;
- }
- if (null !== $this->ttsVolume) {
- $res['TtsVolume'] = $this->ttsVolume;
- }
- if (null !== $this->ttsSpeed) {
- $res['TtsSpeed'] = $this->ttsSpeed;
- }
- if (null !== $this->ttsConf) {
- $res['TtsConf'] = $this->ttsConf;
- }
- if (null !== $this->asrBaseId) {
- $res['AsrBaseId'] = $this->asrBaseId;
- }
- if (null !== $this->streamAsr) {
- $res['StreamAsr'] = $this->streamAsr;
- }
- return $res;
- }
- /**
- * @param array $map
- *
- * @return SmartCallRequest
- */
- public static function fromMap($map = [])
- {
- $model = new self();
- if (isset($map['OwnerId'])) {
- $model->ownerId = $map['OwnerId'];
- }
- if (isset($map['ResourceOwnerAccount'])) {
- $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
- }
- if (isset($map['ResourceOwnerId'])) {
- $model->resourceOwnerId = $map['ResourceOwnerId'];
- }
- if (isset($map['CalledShowNumber'])) {
- $model->calledShowNumber = $map['CalledShowNumber'];
- }
- if (isset($map['CalledNumber'])) {
- $model->calledNumber = $map['CalledNumber'];
- }
- if (isset($map['VoiceCode'])) {
- $model->voiceCode = $map['VoiceCode'];
- }
- if (isset($map['RecordFlag'])) {
- $model->recordFlag = $map['RecordFlag'];
- }
- if (isset($map['Volume'])) {
- $model->volume = $map['Volume'];
- }
- if (isset($map['Speed'])) {
- $model->speed = $map['Speed'];
- }
- if (isset($map['AsrModelId'])) {
- $model->asrModelId = $map['AsrModelId'];
- }
- if (isset($map['PauseTime'])) {
- $model->pauseTime = $map['PauseTime'];
- }
- if (isset($map['MuteTime'])) {
- $model->muteTime = $map['MuteTime'];
- }
- if (isset($map['ActionCodeBreak'])) {
- $model->actionCodeBreak = $map['ActionCodeBreak'];
- }
- if (isset($map['OutId'])) {
- $model->outId = $map['OutId'];
- }
- if (isset($map['DynamicId'])) {
- $model->dynamicId = $map['DynamicId'];
- }
- if (isset($map['EarlyMediaAsr'])) {
- $model->earlyMediaAsr = $map['EarlyMediaAsr'];
- }
- if (isset($map['VoiceCodeParam'])) {
- $model->voiceCodeParam = $map['VoiceCodeParam'];
- }
- if (isset($map['SessionTimeout'])) {
- $model->sessionTimeout = $map['SessionTimeout'];
- }
- if (isset($map['ActionCodeTimeBreak'])) {
- $model->actionCodeTimeBreak = $map['ActionCodeTimeBreak'];
- }
- if (isset($map['TtsStyle'])) {
- $model->ttsStyle = $map['TtsStyle'];
- }
- if (isset($map['TtsVolume'])) {
- $model->ttsVolume = $map['TtsVolume'];
- }
- if (isset($map['TtsSpeed'])) {
- $model->ttsSpeed = $map['TtsSpeed'];
- }
- if (isset($map['TtsConf'])) {
- $model->ttsConf = $map['TtsConf'];
- }
- if (isset($map['AsrBaseId'])) {
- $model->asrBaseId = $map['AsrBaseId'];
- }
- if (isset($map['StreamAsr'])) {
- $model->streamAsr = $map['StreamAsr'];
- }
- return $model;
- }
- }
|