配音建议字数
<pre><code class="language-text">配音-建议字数</code></pre>
<h4>接口URL</h4>
<p>> /api/v1/tts/word/conversion</p>
<h4>请求方式</h4>
<p>> POST</p>
<h4>请求Query参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>cv</td>
<td>1.1.0</td>
<td>String</td>
<td>是</td>
<td>-</td>
</tr>
<tr>
<td>cp</td>
<td>a</td>
<td>String</td>
<td>是</td>
<td>-</td>
</tr>
<tr>
<td>ci</td>
<td>999999</td>
<td>String</td>
<td>是</td>
<td>-</td>
</tr>
</tbody>
</table>
<h4>请求Body参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td>-</td>
<td>string</td>
<td>是</td>
<td>登录令牌</td>
</tr>
<tr>
<td>uid</td>
<td>-</td>
<td>string</td>
<td>是</td>
<td>用户标识</td>
</tr>
<tr>
<td>deviceId</td>
<td>-</td>
<td>string</td>
<td>是</td>
<td>-</td>
</tr>
<tr>
<td>params</td>
<td>-</td>
<td>string</td>
<td>是</td>
<td>数据集</td>
</tr>
</tbody>
</table>
<h4>params参数说明</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>voiceName</td>
<td>-</td>
<td>string</td>
<td>是</td>
<td>配音员类型对应配音员列表返回的newType字段</td>
</tr>
<tr>
<td>duration</td>
<td>-</td>
<td>int</td>
<td>是</td>
<td>视频时长/秒</td>
</tr>
<tr>
<td>voiceSpeed</td>
<td>-</td>
<td>double</td>
<td>是</td>
<td>语速</td>
</tr>
</tbody>
</table>
<h4>返回参数说明</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>minWord</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>建议最小字数</td>
</tr>
<tr>
<td>maxWord</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>建议最大字数</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;minWord&quot;: 50,
&quot;maxWord&quot;: 100
}</code></pre>
<h5>失败返回示例</h5>
<pre><code>{
&quot;code&quot;: 1001,
&quot;reason&quot;: &quot;请求参数错误&quot;,
&quot;extInfo&quot;: null
}</code></pre>