diff --git a/.idea/deployment.xml b/.idea/deployment.xml
deleted file mode 100644
index ee0a6e0..0000000
--- a/.idea/deployment.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/low-carbon-platform-php.iml b/.idea/low-carbon-platform-php.iml
deleted file mode 100644
index 877f80c..0000000
--- a/.idea/low-carbon-platform-php.iml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 8126e1a..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/php.xml b/.idea/php.xml
deleted file mode 100644
index 29059d0..0000000
--- a/.idea/php.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml
deleted file mode 100644
index 422c581..0000000
--- a/.idea/phpunit.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1dd..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 0daedaa..2879688 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -5,10 +5,4 @@
"settings.editor.selected.configurable": "configurable.group.appearance"
}
}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.openapi-generator/api-doc-php-sdk.sha256 b/.openapi-generator/api-doc-php-sdk.sha256
index 46c1084..eec60bb 100644
--- a/.openapi-generator/api-doc-php-sdk.sha256
+++ b/.openapi-generator/api-doc-php-sdk.sha256
@@ -1 +1 @@
-5126def6e9de093e395a81cb6734960c1beb6da52ca97e5c8f3ee4bc426bbb27
\ No newline at end of file
+7aa1ab54a417e6cdb4e9f511abbfe3db4baf6132dc44a77ef538ad40fdcd4689
\ No newline at end of file
diff --git a/README.md b/README.md
index 0c80ce6..5642d71 100644
--- a/README.md
+++ b/README.md
@@ -155,7 +155,7 @@ Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AiApi* | [**chat**](docs/Api/AiApi.md#chat) | **POST** /v1/ai/chat | 元梦ai-对话
*AiApi* | [**extractContent**](docs/Api/AiApi.md#extractcontent) | **POST** /v1/ai/extractContent | 元梦ai-提取上传文件的内容
-*AiApi* | [**speakerList**](docs/Api/AiApi.md#speakerlist) | **POST** /v1/ai/speakerList | 元梦ai-获取发音人列表
+*AiApi* | [**speakers**](docs/Api/AiApi.md#speakers) | **POST** /v1/ai/speakers | 元梦ai-获取发音人列表
*AiApi* | [**tokenCount**](docs/Api/AiApi.md#tokencount) | **POST** /v1/ai/tokenCount | 元梦ai-token统计
*AiApi* | [**voiceClone**](docs/Api/AiApi.md#voiceclone) | **POST** /v1/ai/voiceClone | 元梦ai-语音克隆
@@ -193,4 +193,4 @@ vendor/bin/phpunit
## 关于
- API version: `0.4.8`
- - Package version: `1.1.3`
+ - Package version: `1.1.5`
diff --git a/composer.json b/composer.json
index ba11381..70514a1 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
"name": "tsl3060/low-carbon-platform",
- "version": "1.1.4",
+ "version": "1.1.5",
"description": "碳丝路数据开放平台",
"keywords": [
"openapitools",
diff --git a/docs/Api/AiApi.md b/docs/Api/AiApi.md
index 9e5df4c..4f16237 100644
--- a/docs/Api/AiApi.md
+++ b/docs/Api/AiApi.md
@@ -4,7 +4,7 @@
| ------------- | ------------- | ------------- |
| [**chat()**](AiApi.md#chat) | **POST** /v1/ai/chat | 元梦ai-对话 |
| [**extractContent()**](AiApi.md#extractContent) | **POST** /v1/ai/extractContent | 元梦ai-提取上传文件的内容 |
-| [**speakerList()**](AiApi.md#speakerList) | **POST** /v1/ai/speakerList | 元梦ai-获取发音人列表 |
+| [**speakers()**](AiApi.md#speakers) | **POST** /v1/ai/speakers | 元梦ai-获取发音人列表 |
| [**tokenCount()**](AiApi.md#tokenCount) | **POST** /v1/ai/tokenCount | 元梦ai-token统计 |
| [**voiceClone()**](AiApi.md#voiceClone) | **POST** /v1/ai/voiceClone | 元梦ai-语音克隆 |
@@ -115,10 +115,10 @@ try {
[[返回模型列表]](../../README.md#模型文档)
[[返回README]](../../README.md)
-## `speakerList()`
+## `speakers()`
```php
-speakerList(): \OpenAPI\Client\Model\ResponseOpenAPISpeakerListResult
+speakers(): \OpenAPI\Client\Model\ResponseOpenAPISpeakerListResult
```
元梦ai-获取发音人列表
@@ -140,10 +140,10 @@ $apiInstance = new OpenAPI\Client\Api\AiApi(
);
try {
- $result = $apiInstance->speakerList();
+ $result = $apiInstance->speakers();
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling AiApi->speakerList: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling AiApi->speakers: ', $e->getMessage(), PHP_EOL;
}
```
diff --git a/docs/Model/Speaker.md b/docs/Model/Speaker.md
index cbda592..56f1de1 100644
--- a/docs/Model/Speaker.md
+++ b/docs/Model/Speaker.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | 发音人ID | [optional]
-**sex** | **string** | 性别[male(男性),female(女性)] | [optional]
+**gender** | **string** | 性别[male(男性),female(女性)] | [optional]
**year** | **string** | 年龄等级[A(小于14岁),B(14~25岁),C(26~40岁),D(大于41岁)] | [optional]
**accent** | **string** | 口音[north(北方),south(南方)] | [optional]
diff --git a/docs/Model/SpeakerListResult.md b/docs/Model/SpeakerListResult.md
index 7717d98..6ff2813 100644
--- a/docs/Model/SpeakerListResult.md
+++ b/docs/Model/SpeakerListResult.md
@@ -4,6 +4,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**speaker_list** | [**\OpenAPI\Client\Model\Speaker[]**](Speaker.md) | 发音人列表 | [optional]
+**speakers** | [**\OpenAPI\Client\Model\Speaker[]**](Speaker.md) | 发音人列表 | [optional]
[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md)
diff --git a/docs/Model/VoiceCloneParam.md b/docs/Model/VoiceCloneParam.md
index 2a9ce2f..ec90a15 100644
--- a/docs/Model/VoiceCloneParam.md
+++ b/docs/Model/VoiceCloneParam.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**wav** | **string** | 要克隆的音频文件URL地址,当type为custom该字段有效 | [optional]
**type** | **string** | 克隆类型,可选值[sys(系统预设), custom(用户自定义)] |
**speaker** | **string** | 发音人,当type为sys该字段有效 | [optional]
-**volume** | **int** | 音量,可选值[0 ~ 100] 默认50 | [optional]
-**speed** | **float** | 语速,倍速,可选值[0.5, 1, 1.5, 2, 2.5] 默认1 | [optional]
-**tone** | **float** | 音调,可选值[-1 ~ 1] 默认0 | [optional]
+**volume** | **int** | 音量,可选值[-20 ~ 20] 默认0 | [optional]
+**speed** | **float** | 语速,倍速,可选值[0.5 ~ 2.0] 默认1 | [optional]
+**tone** | **float** | 音调,可选值[0.5 ~ 1.5] 默认1 | [optional]
[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md)
diff --git a/docs/Model/VoiceCloneResult.md b/docs/Model/VoiceCloneResult.md
index 955b03c..a11878c 100644
--- a/docs/Model/VoiceCloneResult.md
+++ b/docs/Model/VoiceCloneResult.md
@@ -4,7 +4,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**wav** | **string** | 生成的音频文件地址 | [optional]
-**speaker** | **string** | 是否成功 success/fail | [optional]
+**result** | **string** | 生成文件url地址 | [optional]
[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md)
diff --git a/lib/Api/AiApi.php b/lib/Api/AiApi.php
index 24183e6..8b8ec35 100644
--- a/lib/Api/AiApi.php
+++ b/lib/Api/AiApi.php
@@ -84,7 +84,7 @@ class AiApi
'extractContent' => [
'multipart/form-data',
],
- 'speakerList' => [
+ 'speakers' => [
'application/json',
],
'tokenCount' => [
@@ -804,36 +804,36 @@ class AiApi
}
/**
- * Operation speakerList
+ * Operation speakers
*
* 元梦ai-获取发音人列表
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakerList'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakers'] to see the possible values for this operation
*
* @throws \OpenAPI\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \OpenAPI\Client\Model\ResponseOpenAPISpeakerListResult
*/
- public function speakerList(string $contentType = self::contentTypes['speakerList'][0])
+ public function speakers(string $contentType = self::contentTypes['speakers'][0])
{
- list($response) = $this->speakerListWithHttpInfo($contentType);
+ list($response) = $this->speakersWithHttpInfo($contentType);
return $response;
}
/**
- * Operation speakerListWithHttpInfo
+ * Operation speakersWithHttpInfo
*
* 元梦ai-获取发音人列表
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakerList'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakers'] to see the possible values for this operation
*
* @throws \OpenAPI\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \OpenAPI\Client\Model\ResponseOpenAPISpeakerListResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function speakerListWithHttpInfo(string $contentType = self::contentTypes['speakerList'][0])
+ public function speakersWithHttpInfo(string $contentType = self::contentTypes['speakers'][0])
{
- $request = $this->speakerListRequest($contentType);
+ $request = $this->speakersRequest($contentType);
try {
$options = $this->createHttpClientOption();
@@ -936,18 +936,18 @@ class AiApi
}
/**
- * Operation speakerListAsync
+ * Operation speakersAsync
*
* 元梦ai-获取发音人列表
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakerList'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakers'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function speakerListAsync(string $contentType = self::contentTypes['speakerList'][0])
+ public function speakersAsync(string $contentType = self::contentTypes['speakers'][0])
{
- return $this->speakerListAsyncWithHttpInfo($contentType)
+ return $this->speakersAsyncWithHttpInfo($contentType)
->then(
function ($response) {
return $response[0];
@@ -956,19 +956,19 @@ class AiApi
}
/**
- * Operation speakerListAsyncWithHttpInfo
+ * Operation speakersAsyncWithHttpInfo
*
* 元梦ai-获取发音人列表
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakerList'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakers'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function speakerListAsyncWithHttpInfo(string $contentType = self::contentTypes['speakerList'][0])
+ public function speakersAsyncWithHttpInfo(string $contentType = self::contentTypes['speakers'][0])
{
$returnType = '\OpenAPI\Client\Model\ResponseOpenAPISpeakerListResult';
- $request = $this->speakerListRequest($contentType);
+ $request = $this->speakersRequest($contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -1007,18 +1007,18 @@ class AiApi
}
/**
- * Create request for operation 'speakerList'
+ * Create request for operation 'speakers'
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakerList'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['speakers'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function speakerListRequest(string $contentType = self::contentTypes['speakerList'][0])
+ public function speakersRequest(string $contentType = self::contentTypes['speakers'][0])
{
- $resourcePath = '/v1/ai/speakerList';
+ $resourcePath = '/v1/ai/speakers';
$formParams = [];
$queryParams = [];
$headerParams = [];
diff --git a/lib/Configuration.php b/lib/Configuration.php
index b9302e3..45c5c7b 100644
--- a/lib/Configuration.php
+++ b/lib/Configuration.php
@@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
- protected $userAgent = 'OpenAPI-Generator/1.1.3/PHP';
+ protected $userAgent = 'OpenAPI-Generator/1.1.5/PHP';
/**
* Debug switch (default set to false)
@@ -524,7 +524,7 @@ class Configuration
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 0.4.8' . PHP_EOL;
- $report .= ' SDK Package Version: 1.1.3' . PHP_EOL;
+ $report .= ' SDK Package Version: 1.1.5' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
return $report;
diff --git a/lib/Model/Speaker.php b/lib/Model/Speaker.php
index 7728fbd..7e95d9b 100644
--- a/lib/Model/Speaker.php
+++ b/lib/Model/Speaker.php
@@ -59,7 +59,7 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPITypes = [
'name' => 'string',
- 'sex' => 'string',
+ 'gender' => 'string',
'year' => 'string',
'accent' => 'string'
];
@@ -73,7 +73,7 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPIFormats = [
'name' => null,
- 'sex' => null,
+ 'gender' => null,
'year' => null,
'accent' => null
];
@@ -85,7 +85,7 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static array $openAPINullables = [
'name' => false,
- 'sex' => false,
+ 'gender' => false,
'year' => false,
'accent' => false
];
@@ -177,7 +177,7 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $attributeMap = [
'name' => 'name',
- 'sex' => 'sex',
+ 'gender' => 'gender',
'year' => 'year',
'accent' => 'accent'
];
@@ -189,7 +189,7 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $setters = [
'name' => 'setName',
- 'sex' => 'setSex',
+ 'gender' => 'setGender',
'year' => 'setYear',
'accent' => 'setAccent'
];
@@ -201,7 +201,7 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $getters = [
'name' => 'getName',
- 'sex' => 'getSex',
+ 'gender' => 'getGender',
'year' => 'getYear',
'accent' => 'getAccent'
];
@@ -264,7 +264,7 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
public function __construct(array $data = null)
{
$this->setIfExists('name', $data ?? [], null);
- $this->setIfExists('sex', $data ?? [], null);
+ $this->setIfExists('gender', $data ?? [], null);
$this->setIfExists('year', $data ?? [], null);
$this->setIfExists('accent', $data ?? [], null);
}
@@ -339,28 +339,28 @@ class Speaker implements ModelInterface, ArrayAccess, \JsonSerializable
}
/**
- * Gets sex
+ * Gets gender
*
* @return string|null
*/
- public function getSex()
+ public function getGender()
{
- return $this->container['sex'];
+ return $this->container['gender'];
}
/**
- * Sets sex
+ * Sets gender
*
- * @param string|null $sex 性别[male(男性),female(女性)]
+ * @param string|null $gender 性别[male(男性),female(女性)]
*
* @return self
*/
- public function setSex($sex)
+ public function setGender($gender)
{
- if (is_null($sex)) {
- throw new \InvalidArgumentException('non-nullable sex cannot be null');
+ if (is_null($gender)) {
+ throw new \InvalidArgumentException('non-nullable gender cannot be null');
}
- $this->container['sex'] = $sex;
+ $this->container['gender'] = $gender;
return $this;
}
diff --git a/lib/Model/SpeakerListResult.php b/lib/Model/SpeakerListResult.php
index 938b660..f0fa434 100644
--- a/lib/Model/SpeakerListResult.php
+++ b/lib/Model/SpeakerListResult.php
@@ -58,7 +58,7 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
* @var string[]
*/
protected static $openAPITypes = [
- 'speaker_list' => '\OpenAPI\Client\Model\Speaker[]'
+ 'speakers' => '\OpenAPI\Client\Model\Speaker[]'
];
/**
@@ -69,7 +69,7 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
* @psalm-var array
*/
protected static $openAPIFormats = [
- 'speaker_list' => null
+ 'speakers' => null
];
/**
@@ -78,7 +78,7 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
* @var boolean[]
*/
protected static array $openAPINullables = [
- 'speaker_list' => false
+ 'speakers' => false
];
/**
@@ -167,7 +167,7 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
* @var string[]
*/
protected static $attributeMap = [
- 'speaker_list' => 'speakerList'
+ 'speakers' => 'speakers'
];
/**
@@ -176,7 +176,7 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
* @var string[]
*/
protected static $setters = [
- 'speaker_list' => 'setSpeakerList'
+ 'speakers' => 'setSpeakers'
];
/**
@@ -185,7 +185,7 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
* @var string[]
*/
protected static $getters = [
- 'speaker_list' => 'getSpeakerList'
+ 'speakers' => 'getSpeakers'
];
/**
@@ -245,7 +245,7 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
*/
public function __construct(array $data = null)
{
- $this->setIfExists('speaker_list', $data ?? [], null);
+ $this->setIfExists('speakers', $data ?? [], null);
}
/**
@@ -291,28 +291,28 @@ class SpeakerListResult implements ModelInterface, ArrayAccess, \JsonSerializabl
/**
- * Gets speaker_list
+ * Gets speakers
*
* @return \OpenAPI\Client\Model\Speaker[]|null
*/
- public function getSpeakerList()
+ public function getSpeakers()
{
- return $this->container['speaker_list'];
+ return $this->container['speakers'];
}
/**
- * Sets speaker_list
+ * Sets speakers
*
- * @param \OpenAPI\Client\Model\Speaker[]|null $speaker_list 发音人列表
+ * @param \OpenAPI\Client\Model\Speaker[]|null $speakers 发音人列表
*
* @return self
*/
- public function setSpeakerList($speaker_list)
+ public function setSpeakers($speakers)
{
- if (is_null($speaker_list)) {
- throw new \InvalidArgumentException('non-nullable speaker_list cannot be null');
+ if (is_null($speakers)) {
+ throw new \InvalidArgumentException('non-nullable speakers cannot be null');
}
- $this->container['speaker_list'] = $speaker_list;
+ $this->container['speakers'] = $speakers;
return $this;
}
diff --git a/lib/Model/VoiceCloneParam.php b/lib/Model/VoiceCloneParam.php
index 42e0895..fd63cb9 100644
--- a/lib/Model/VoiceCloneParam.php
+++ b/lib/Model/VoiceCloneParam.php
@@ -459,7 +459,7 @@ class VoiceCloneParam implements ModelInterface, ArrayAccess, \JsonSerializable
/**
* Sets volume
*
- * @param int|null $volume 音量,可选值[0 ~ 100] 默认50
+ * @param int|null $volume 音量,可选值[-20 ~ 20] 默认0
*
* @return self
*/
@@ -486,7 +486,7 @@ class VoiceCloneParam implements ModelInterface, ArrayAccess, \JsonSerializable
/**
* Sets speed
*
- * @param float|null $speed 语速,倍速,可选值[0.5, 1, 1.5, 2, 2.5] 默认1
+ * @param float|null $speed 语速,倍速,可选值[0.5 ~ 2.0] 默认1
*
* @return self
*/
@@ -513,7 +513,7 @@ class VoiceCloneParam implements ModelInterface, ArrayAccess, \JsonSerializable
/**
* Sets tone
*
- * @param float|null $tone 音调,可选值[-1 ~ 1] 默认0
+ * @param float|null $tone 音调,可选值[0.5 ~ 1.5] 默认1
*
* @return self
*/
diff --git a/lib/Model/VoiceCloneResult.php b/lib/Model/VoiceCloneResult.php
index d04369b..7737205 100644
--- a/lib/Model/VoiceCloneResult.php
+++ b/lib/Model/VoiceCloneResult.php
@@ -58,8 +58,7 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
- 'wav' => 'string',
- 'speaker' => 'string'
+ 'result' => 'string'
];
/**
@@ -70,8 +69,7 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array
*/
protected static $openAPIFormats = [
- 'wav' => null,
- 'speaker' => null
+ 'result' => null
];
/**
@@ -80,8 +78,7 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
* @var boolean[]
*/
protected static array $openAPINullables = [
- 'wav' => false,
- 'speaker' => false
+ 'result' => false
];
/**
@@ -170,8 +167,7 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $attributeMap = [
- 'wav' => 'wav',
- 'speaker' => 'speaker'
+ 'result' => 'result'
];
/**
@@ -180,8 +176,7 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $setters = [
- 'wav' => 'setWav',
- 'speaker' => 'setSpeaker'
+ 'result' => 'setResult'
];
/**
@@ -190,8 +185,7 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $getters = [
- 'wav' => 'getWav',
- 'speaker' => 'getSpeaker'
+ 'result' => 'getResult'
];
/**
@@ -251,8 +245,7 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
*/
public function __construct(array $data = null)
{
- $this->setIfExists('wav', $data ?? [], null);
- $this->setIfExists('speaker', $data ?? [], null);
+ $this->setIfExists('result', $data ?? [], null);
}
/**
@@ -298,55 +291,28 @@ class VoiceCloneResult implements ModelInterface, ArrayAccess, \JsonSerializable
/**
- * Gets wav
+ * Gets result
*
* @return string|null
*/
- public function getWav()
+ public function getResult()
{
- return $this->container['wav'];
+ return $this->container['result'];
}
/**
- * Sets wav
+ * Sets result
*
- * @param string|null $wav 生成的音频文件地址
+ * @param string|null $result 生成文件url地址
*
* @return self
*/
- public function setWav($wav)
+ public function setResult($result)
{
- if (is_null($wav)) {
- throw new \InvalidArgumentException('non-nullable wav cannot be null');
+ if (is_null($result)) {
+ throw new \InvalidArgumentException('non-nullable result cannot be null');
}
- $this->container['wav'] = $wav;
-
- return $this;
- }
-
- /**
- * Gets speaker
- *
- * @return string|null
- */
- public function getSpeaker()
- {
- return $this->container['speaker'];
- }
-
- /**
- * Sets speaker
- *
- * @param string|null $speaker 是否成功 success/fail
- *
- * @return self
- */
- public function setSpeaker($speaker)
- {
- if (is_null($speaker)) {
- throw new \InvalidArgumentException('non-nullable speaker cannot be null');
- }
- $this->container['speaker'] = $speaker;
+ $this->container['result'] = $result;
return $this;
}
diff --git a/test/Api/AiApiTest.php b/test/Api/AiApiTest.php
index 5787d5c..180e244 100644
--- a/test/Api/AiApiTest.php
+++ b/test/Api/AiApiTest.php
@@ -96,12 +96,12 @@ class AiApiTest extends TestCase
}
/**
- * Test case for speakerList
+ * Test case for speakers
*
* 元梦ai-获取发音人列表.
*
*/
- public function testSpeakerList()
+ public function testSpeakers()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
diff --git a/test/Model/SpeakerListResultTest.php b/test/Model/SpeakerListResultTest.php
index 2ea7b0a..e77db2a 100644
--- a/test/Model/SpeakerListResultTest.php
+++ b/test/Model/SpeakerListResultTest.php
@@ -80,9 +80,9 @@ class SpeakerListResultTest extends TestCase
}
/**
- * Test attribute "speaker_list"
+ * Test attribute "speakers"
*/
- public function testPropertySpeakerList()
+ public function testPropertySpeakers()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
diff --git a/test/Model/SpeakerTest.php b/test/Model/SpeakerTest.php
index 416e394..4a6cda7 100644
--- a/test/Model/SpeakerTest.php
+++ b/test/Model/SpeakerTest.php
@@ -89,9 +89,9 @@ class SpeakerTest extends TestCase
}
/**
- * Test attribute "sex"
+ * Test attribute "gender"
*/
- public function testPropertySex()
+ public function testPropertyGender()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
diff --git a/test/Model/VoiceCloneResultTest.php b/test/Model/VoiceCloneResultTest.php
index adde99b..b129ca6 100644
--- a/test/Model/VoiceCloneResultTest.php
+++ b/test/Model/VoiceCloneResultTest.php
@@ -80,18 +80,9 @@ class VoiceCloneResultTest extends TestCase
}
/**
- * Test attribute "wav"
+ * Test attribute "result"
*/
- public function testPropertyWav()
- {
- // TODO: implement
- $this->markTestIncomplete('Not implemented');
- }
-
- /**
- * Test attribute "speaker"
- */
- public function testPropertySpeaker()
+ public function testPropertyResult()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');