首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >用POST提交,提示缺少Version?

用POST提交,提示缺少Version?

提问于 2019-11-05 14:05:59
回答 3关注 0查看 986

代码:

$data = [

'Action' => 'TextToVoice',

'Version' => '2017-03-12',

'Region' => 'ap-beijing',

'Text' => '你好',

'SessionId' => $this->guid(),

'Volume' => 5,

'Speed' => 0,

'ProjectId' => 0,

'ModelType' => 1,

'VoiceType' => 0,

'PrimaryLanguage' => 1,

'SampleRate' => 16000,

'Codec' => 'mp3',

'Signature' => $sgin

];

header('Content-Type: application/x-www-form-urlencoded');

$result = post_data('https://tts.tencentcloudapi.com',$data);

返回结果

"{"Response":{"Error":{"Code":"MissingParameter","Message":"The request is missing a required parameter `Version`."},"RequestId":"d04d479d-e6a1-49ef-bf09-badc9ceaf00b"}}"

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档