tencentcloud-sdk-nodejs-vod 4.1.340 → 4.1.341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -215,7 +215,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
215
215
|
*/
|
|
216
216
|
DeleteAigcQuota(req: DeleteAigcQuotaRequest, cb?: (error: string, rep: DeleteAigcQuotaResponse) => void): Promise<DeleteAigcQuotaResponse>;
|
|
217
217
|
/**
|
|
218
|
-
* 发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000
|
|
218
|
+
* 发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000 字符),支持指定音色及语速、音量、音调、采样率、输出格式等合成参数。语音合成为异步任务,完成后产出音频结果,可通过 DescribeTaskDetail 查询。
|
|
219
219
|
*/
|
|
220
220
|
TextToSpeechAsync(req: TextToSpeechAsyncRequest, cb?: (error: string, rep: TextToSpeechAsyncResponse) => void): Promise<TextToSpeechAsyncResponse>;
|
|
221
221
|
/**
|
|
@@ -315,7 +315,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
315
315
|
return this.request("DeleteAigcQuota", req, cb);
|
|
316
316
|
}
|
|
317
317
|
/**
|
|
318
|
-
* 发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000
|
|
318
|
+
* 发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000 字符),支持指定音色及语速、音量、音调、采样率、输出格式等合成参数。语音合成为异步任务,完成后产出音频结果,可通过 DescribeTaskDetail 查询。
|
|
319
319
|
*/
|
|
320
320
|
async TextToSpeechAsync(req, cb) {
|
|
321
321
|
return this.request("TextToSpeechAsync", req, cb);
|
|
@@ -2776,6 +2776,10 @@ export interface CloneVoiceSyncRequest {
|
|
|
2776
2776
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
2777
2777
|
*/
|
|
2778
2778
|
SubAppId?: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
|
|
2781
|
+
*/
|
|
2782
|
+
ModelName?: string;
|
|
2779
2783
|
/**
|
|
2780
2784
|
* <p>克隆音频base64编码。</p>
|
|
2781
2785
|
*/
|
|
@@ -2793,7 +2797,7 @@ export interface CloneVoiceSyncRequest {
|
|
|
2793
2797
|
*/
|
|
2794
2798
|
LanguageBoost?: string;
|
|
2795
2799
|
/**
|
|
2796
|
-
* <p
|
|
2800
|
+
* <p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级音色参数。</p><hr><h3 id="Clone">通用参数</h3><ul><li>text(string):试听文本,最大 1000 字符;传入后返回试听音频 DemoAudio</li><li>tts_model(string):试听文本合成模型,text 非空时必填;按 ModelName 模型系列白名单校验</li><li>text_lang(string):试听文本语言,如 zh</li><li>voice_profile.name(string):音色名称</li><li>voice_profile.description(string):音色描述</li><li>voice_profile.gender(string):性别,可选 male、female、unknown</li><li>voice_profile.age(string):年龄段,可选 child、teenager、youth、middle_aged、senior、unknown</li><li>voice_profile.languages(array of string):语言,如 ["zh"]</li><li>voice_profile.labels(array of string):标签,如 ["磁性"]</li><li>voice_profile.scenes(array of string):场景,如 ["解说"]</li></ul><hr><h3 id="CloneElevenLabs">ElevenLabs</h3><ul><li>voice_name(string):音色名称;未传时回退取 voice_profile.name,两者都缺时使用默认名称</li><li>description(string):音色描述;未传时回退取 voice_profile.description</li><li>labels(map<string,string>):音色标签,官方推荐键 language、accent、gender、age;最多 16 项,键值各不超过 256 字节</li><li>remove_background_noise(boolean):是否用音频隔离模型去除背景噪声,默认 false;样本本身无噪声时开启可能降低质量</li></ul><hr>
|
|
2797
2801
|
*/
|
|
2798
2802
|
ExtParam?: string;
|
|
2799
2803
|
}
|
|
@@ -10483,6 +10487,14 @@ export interface TextToSpeechSyncRequest {
|
|
|
10483
10487
|
* <p>音色Id,指定音色合成时填写,支持系统音色和设计、克隆音色。</p>
|
|
10484
10488
|
*/
|
|
10485
10489
|
VoiceId: string;
|
|
10490
|
+
/**
|
|
10491
|
+
* <p>模型系列,区分大小写,默认 MiniMax。</p><p>枚举值:</p><ul><li>MiniMax</li><li>ElevenLabs</li></ul>
|
|
10492
|
+
*/
|
|
10493
|
+
ModelName?: string;
|
|
10494
|
+
/**
|
|
10495
|
+
* <p>模型版本,不填时使用该模型系列的默认版本。</p><p>各模型支持版本:</p><ul><li><p>MiniMax:minimax-speech-2.8-hd(默认)、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo</p></li><li><p>ElevenLabs:custom-model-ll-v3(默认)、custom-model-ll-mlv2、custom-model-ll-fv2.5、custom-model-ll-fv2、custom-model-ll-v4、custom-model-ll-v4tb</p></li></ul>
|
|
10496
|
+
*/
|
|
10497
|
+
ModelVersion?: string;
|
|
10486
10498
|
/**
|
|
10487
10499
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
10488
10500
|
*/
|
|
@@ -10496,7 +10508,7 @@ export interface TextToSpeechSyncRequest {
|
|
|
10496
10508
|
*/
|
|
10497
10509
|
Output?: TextToSpeechSyncOutputOption;
|
|
10498
10510
|
/**
|
|
10499
|
-
* <p
|
|
10511
|
+
* <p><strong>ExtParam</strong> 是 JSON 字符串字段,用于指定各模型的高级合成参数。字段名中的 . 表示嵌套对象,如 req_params.audio_params.speech_rate,需按层级组成本地 JSON 对象后整体转义传入。未列出的字段不生效。</p><hr><h3 id="MiniMax">MiniMax</h3><ul><li>model(string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo,默认 minimax-speech-2.8-hd</li><li>voice_setting.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>voice_setting.vol(float):音量,取值范围 (0, 10],默认 1.0</li><li>voice_setting.pitch(integer):音调,取值范围 [-12, 12],默认 0</li><li>voice_setting.emotion(string):情绪,可选 happy、sad、angry、fearful、disgusted、surprised、calm、fluent、whisper</li><li>audio_setting.format(string):音频格式,可选 mp3、wav,默认 wav</li><li>audio_setting.sample_rate(integer):采样率,可选 8000、16000、22050、24000、32000、44100,默认 16000</li><li>audio_setting.duration(float):目标时长,单位秒</li><li>audio_setting.cut_silence(boolean):是否裁剪静音段</li></ul><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>language_code(string):语言代码(ISO 639-1),用于强制语种与文本归一化</li><li>previous_text(string):上一段文本(衔接上下文)</li><li>next_text(string):下一段文本</li><li>seed(integer):确定性采样种子,范围 [0, 4294967295]</li><li>apply_text_normalization(string):文本规范化,可选 auto、on、off</li><li>apply_language_text_normalization(boolean):是否启用语种相关的文本规范化</li><li>voice_settings.stability(float):稳定性,默认 0.5</li><li>voice_settings.similarity_boost(float):音色相似度,默认 0.75</li><li>voice_settings.style(float):风格夸张度,默认 0</li><li>voice_settings.use_speaker_boost(boolean):是否增强音色相似度,默认 true</li><li>voice_settings.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,需与 format 匹配</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
|
|
10500
10512
|
*/
|
|
10501
10513
|
ExtParam?: string;
|
|
10502
10514
|
}
|
|
@@ -12004,6 +12016,10 @@ export interface UpdateVoiceRequest {
|
|
|
12004
12016
|
* <p>更新音色字段</p>
|
|
12005
12017
|
*/
|
|
12006
12018
|
VoiceFields: VoiceUpdateFields;
|
|
12019
|
+
/**
|
|
12020
|
+
* <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax </li><li>ElevenLabs</li></ul>
|
|
12021
|
+
*/
|
|
12022
|
+
ModelName?: string;
|
|
12007
12023
|
/**
|
|
12008
12024
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
12009
12025
|
*/
|
|
@@ -12799,6 +12815,10 @@ export interface DesignVoiceAsyncRequest {
|
|
|
12799
12815
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
12800
12816
|
*/
|
|
12801
12817
|
SubAppId?: string;
|
|
12818
|
+
/**
|
|
12819
|
+
* <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
|
|
12820
|
+
*/
|
|
12821
|
+
ModelName?: string;
|
|
12802
12822
|
/**
|
|
12803
12823
|
* <p>音色设置</p>
|
|
12804
12824
|
*/
|
|
@@ -12808,7 +12828,7 @@ export interface DesignVoiceAsyncRequest {
|
|
|
12808
12828
|
*/
|
|
12809
12829
|
PreviewText?: string;
|
|
12810
12830
|
/**
|
|
12811
|
-
* <p
|
|
12831
|
+
* <p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级设计参数。</p><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>model_id(string):TTV 模型,可选 eleven_multilingual_ttv_v2(默认)、eleven_ttv_v3</li><li>voice_name(string):音色名称,用于设计完成后正式创建音色</li><li>labels(map<string,string>):音色标签,最多 16 项,键值各不超过 256 字节</li><li>auto_generate_text(boolean):是否自动生成与描述匹配的试听文本,默认 false</li><li>loudness(float):音量,取值范围 [-1, 1],默认 0.5</li><li>seed(integer):采样种子,取值范围 [0, 2147483647]</li><li>guidance_scale(float):提示词遵循程度,取值范围 [0, 100],默认 5</li><li>quality(float):输出质量,取值范围 [-1, 1],越高质量越好但多样性越低</li><li>should_enhance(boolean):是否用 AI 扩写音色描述,默认 false</li><li>reference_audio_base64(string):参考音频 base64,仅 eleven_ttv_v3 支持</li><li>prompt_strength(float):提示词与参考音频权重,取值范围 [0, 1],仅 eleven_ttv_v3 支持</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,与 format 组合受限</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
|
|
12812
12832
|
*/
|
|
12813
12833
|
ExtParam?: string;
|
|
12814
12834
|
/**
|
|
@@ -15955,6 +15975,10 @@ export interface CloneVoiceAsyncRequest {
|
|
|
15955
15975
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
15956
15976
|
*/
|
|
15957
15977
|
SubAppId?: string;
|
|
15978
|
+
/**
|
|
15979
|
+
* <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
|
|
15980
|
+
*/
|
|
15981
|
+
ModelName?: string;
|
|
15958
15982
|
/**
|
|
15959
15983
|
* <p>克隆音频base64编码。</p>
|
|
15960
15984
|
*/
|
|
@@ -15972,7 +15996,7 @@ export interface CloneVoiceAsyncRequest {
|
|
|
15972
15996
|
*/
|
|
15973
15997
|
LanguageBoost?: string;
|
|
15974
15998
|
/**
|
|
15975
|
-
* <p
|
|
15999
|
+
* <p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级音色参数。</p><hr><h3 id="Clone">通用参数</h3><ul><li>text(string):试听文本,最大 1000 字符;传入后返回试听音频 DemoAudio</li><li>tts_model(string):试听文本合成模型,text 非空时必填;按 ModelName 模型系列白名单校验</li><li>text_lang(string):试听文本语言,如 zh</li><li>voice_profile.name(string):音色名称</li><li>voice_profile.description(string):音色描述</li><li>voice_profile.gender(string):性别,可选 male、female、unknown</li><li>voice_profile.age(string):年龄段,可选 child、teenager、youth、middle_aged、senior、unknown</li><li>voice_profile.languages(array of string):语言,如 ["zh"]</li><li>voice_profile.labels(array of string):标签,如 ["磁性"]</li><li>voice_profile.scenes(array of string):场景,如 ["解说"]</li></ul><hr><h3 id="CloneElevenLabs">ElevenLabs</h3><ul><li>voice_name(string):音色名称;未传时回退取 voice_profile.name,两者都缺时使用默认名称</li><li>description(string):音色描述;未传时回退取 voice_profile.description</li><li>labels(map<string,string>):音色标签,官方推荐键 language、accent、gender、age;最多 16 项,键值各不超过 256 字节</li><li>remove_background_noise(boolean):是否用音频隔离模型去除背景噪声,默认 false;样本本身无噪声时开启可能降低质量</li></ul><hr>
|
|
15976
16000
|
*/
|
|
15977
16001
|
ExtParam?: string;
|
|
15978
16002
|
/**
|
|
@@ -22573,6 +22597,23 @@ export interface DescribeSuperPlayerConfigsRequest {
|
|
|
22573
22597
|
*/
|
|
22574
22598
|
Type?: string;
|
|
22575
22599
|
}
|
|
22600
|
+
/**
|
|
22601
|
+
* 音色配额
|
|
22602
|
+
*/
|
|
22603
|
+
export interface VoiceSlotInfo {
|
|
22604
|
+
/**
|
|
22605
|
+
* <p>音色限制数量</p>
|
|
22606
|
+
*/
|
|
22607
|
+
Limit?: number;
|
|
22608
|
+
/**
|
|
22609
|
+
* <p>音色限制剩余数</p>
|
|
22610
|
+
*/
|
|
22611
|
+
Remaining?: number;
|
|
22612
|
+
/**
|
|
22613
|
+
* <p>音色限制已用数</p>
|
|
22614
|
+
*/
|
|
22615
|
+
Used?: number;
|
|
22616
|
+
}
|
|
22576
22617
|
/**
|
|
22577
22618
|
* 降码率任务结果
|
|
22578
22619
|
*/
|
|
@@ -23252,6 +23293,10 @@ export interface DeleteVoiceRequest {
|
|
|
23252
23293
|
* <p>音色Id</p>
|
|
23253
23294
|
*/
|
|
23254
23295
|
VoiceId: string;
|
|
23296
|
+
/**
|
|
23297
|
+
* <p>模型名,不填默认为MiniMax模型。</p> 枚举值:<ul><li><p>MiniMax </p></li><li><p>ElevenLabs</p></li></ul>
|
|
23298
|
+
*/
|
|
23299
|
+
ModelName?: string;
|
|
23255
23300
|
/**
|
|
23256
23301
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
23257
23302
|
*/
|
|
@@ -25459,6 +25504,10 @@ export interface DescribeVoicesResponse {
|
|
|
25459
25504
|
* <p>可用音色总数</p>
|
|
25460
25505
|
*/
|
|
25461
25506
|
TotalCount?: number;
|
|
25507
|
+
/**
|
|
25508
|
+
* <p>可用音色槽位信息</p>
|
|
25509
|
+
*/
|
|
25510
|
+
VoiceSlot?: VoiceSlotInfo;
|
|
25462
25511
|
/**
|
|
25463
25512
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25464
25513
|
*/
|
|
@@ -26674,6 +26723,10 @@ export interface DescribeVoicesRequest {
|
|
|
26674
26723
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
26675
26724
|
*/
|
|
26676
26725
|
SubAppId?: string;
|
|
26726
|
+
/**
|
|
26727
|
+
* <p>模型名,不填默认为MiniMax模型。</p>枚举值:<ul><li><p>MiniMax</p></li><li><p>ElevenLabs</p></li></ul>
|
|
26728
|
+
*/
|
|
26729
|
+
ModelName?: string;
|
|
26677
26730
|
/**
|
|
26678
26731
|
* <p>音色ID</p>
|
|
26679
26732
|
*/
|
|
@@ -28099,6 +28152,14 @@ export interface TextToSpeechAsyncRequest {
|
|
|
28099
28152
|
* <p>音色ID</p>
|
|
28100
28153
|
*/
|
|
28101
28154
|
VoiceId: string;
|
|
28155
|
+
/**
|
|
28156
|
+
* <p>模型系列,区分大小写,默认 MiniMax。</p><p>枚举值:</p><ul><li>MiniMax</li><li>ElevenLabs</li></ul>
|
|
28157
|
+
*/
|
|
28158
|
+
ModelName?: string;
|
|
28159
|
+
/**
|
|
28160
|
+
* <p>模型版本,不填时使用该模型系列的默认版本。</p><p>各模型支持版本:</p><ul><li><p>MiniMax:minimax-speech-2.8-hd(默认)、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo</p></li><li><p>ElevenLabs:custom-model-ll-v3(默认)、custom-model-ll-mlv2、custom-model-ll-fv2.5、custom-model-ll-fv2、custom-model-ll-v4、custom-model-ll-v4tb</p></li></ul>
|
|
28161
|
+
*/
|
|
28162
|
+
ModelVersion?: string;
|
|
28102
28163
|
/**
|
|
28103
28164
|
* <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
|
|
28104
28165
|
*/
|
|
@@ -28108,7 +28169,7 @@ export interface TextToSpeechAsyncRequest {
|
|
|
28108
28169
|
*/
|
|
28109
28170
|
LanguageBoost?: string;
|
|
28110
28171
|
/**
|
|
28111
|
-
* <p
|
|
28172
|
+
* <p><strong>ExtParam</strong> 是 JSON 字符串字段,用于指定各模型的高级合成参数。字段名中的 . 表示嵌套对象,如 req_params.audio_params.speech_rate,需按层级组成本地 JSON 对象后整体转义传入。未列出的字段不生效。</p><hr><h3 id="MiniMax">MiniMax</h3><ul><li>model(string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo,默认 minimax-speech-2.8-hd</li><li>voice_setting.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>voice_setting.vol(float):音量,取值范围 (0, 10],默认 1.0</li><li>voice_setting.pitch(integer):音调,取值范围 [-12, 12],默认 0</li><li>voice_setting.emotion(string):情绪,可选 happy、sad、angry、fearful、disgusted、surprised、calm、fluent、whisper</li><li>audio_setting.format(string):音频格式,可选 mp3、wav,默认 wav</li><li>audio_setting.sample_rate(integer):采样率,可选 8000、16000、22050、24000、32000、44100,默认 16000</li><li>audio_setting.duration(float):目标时长,单位秒</li><li>audio_setting.cut_silence(boolean):是否裁剪静音段</li></ul><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>language_code(string):语言代码(ISO 639-1),用于强制语种与文本归一化</li><li>previous_text(string):上一段文本(衔接上下文)</li><li>next_text(string):下一段文本</li><li>seed(integer):确定性采样种子,范围 [0, 4294967295]</li><li>apply_text_normalization(string):文本规范化,可选 auto、on、off</li><li>apply_language_text_normalization(boolean):是否启用语种相关的文本规范化</li><li>voice_settings.stability(float):稳定性,默认 0.5</li><li>voice_settings.similarity_boost(float):音色相似度,默认 0.75</li><li>voice_settings.style(float):风格夸张度,默认 0</li><li>voice_settings.use_speaker_boost(boolean):是否增强音色相似度,默认 true</li><li>voice_settings.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,需与 format 匹配</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
|
|
28112
28173
|
*/
|
|
28113
28174
|
ExtParam?: string;
|
|
28114
28175
|
/**
|