@ccos/ccsdk-lite 1.0.27 → 1.0.28
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/lib/bundle.js +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/voice/index.d.ts +2 -0
- package/package.json +1 -1
package/lib/bundle.js
CHANGED
|
@@ -1189,6 +1189,10 @@ function sendStreamTts$1(text, ttsId, isFirst, isEnd) {
|
|
|
1189
1189
|
function setTtsSpeaker(speaker) {
|
|
1190
1190
|
return callNative(getFuncName$2('setTtsSpeaker'), { speaker: speaker });
|
|
1191
1191
|
}
|
|
1192
|
+
// 设置播放TTS的音速
|
|
1193
|
+
function setTtsSpeed(speed) {
|
|
1194
|
+
return callNative(getFuncName$2('setTtsSpeed'), { speed: speed });
|
|
1195
|
+
}
|
|
1192
1196
|
// 发送纯文本
|
|
1193
1197
|
function sendVoiceTextToAI(text) {
|
|
1194
1198
|
return callNative(getFuncName$2('sendVoiceTextToAI'), { text: text });
|
|
@@ -1209,6 +1213,7 @@ var voice = {
|
|
|
1209
1213
|
sendTts: sendTts$1,
|
|
1210
1214
|
sendStreamTts: sendStreamTts$1,
|
|
1211
1215
|
setTtsSpeaker: setTtsSpeaker,
|
|
1216
|
+
setTtsSpeed: setTtsSpeed,
|
|
1212
1217
|
sendVoiceTextToAI: sendVoiceTextToAI,
|
|
1213
1218
|
setA2UI: setA2UI,
|
|
1214
1219
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ declare const _default: {
|
|
|
109
109
|
sendTts: typeof import("./voice").sendTts;
|
|
110
110
|
sendStreamTts: typeof import("./voice").sendStreamTts;
|
|
111
111
|
setTtsSpeaker: typeof import("./voice").setTtsSpeaker;
|
|
112
|
+
setTtsSpeed: typeof import("./voice").setTtsSpeed;
|
|
112
113
|
sendVoiceTextToAI: typeof import("./voice").sendVoiceTextToAI;
|
|
113
114
|
setA2UI: typeof import("./voice").setA2UI;
|
|
114
115
|
};
|
package/lib/voice/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare function stopTts(): Promise<any>;
|
|
|
8
8
|
export declare function sendTts(text: string, ttsId: string): Promise<any>;
|
|
9
9
|
export declare function sendStreamTts(text: string, ttsId: string, isFirst: boolean, isEnd: boolean): Promise<any>;
|
|
10
10
|
export declare function setTtsSpeaker(speaker: string): Promise<any>;
|
|
11
|
+
export declare function setTtsSpeed(speed: number): Promise<any>;
|
|
11
12
|
export declare function sendVoiceTextToAI(text: string): Promise<any>;
|
|
12
13
|
export declare function setA2UI(enable?: boolean): Promise<any>;
|
|
13
14
|
declare const _default: {
|
|
@@ -21,6 +22,7 @@ declare const _default: {
|
|
|
21
22
|
sendTts: typeof sendTts;
|
|
22
23
|
sendStreamTts: typeof sendStreamTts;
|
|
23
24
|
setTtsSpeaker: typeof setTtsSpeaker;
|
|
25
|
+
setTtsSpeed: typeof setTtsSpeed;
|
|
24
26
|
sendVoiceTextToAI: typeof sendVoiceTextToAI;
|
|
25
27
|
setA2UI: typeof setA2UI;
|
|
26
28
|
};
|