@ccos/ccsdk-lite 1.0.17 → 1.0.18
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 +3 -2
- package/lib/voice/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/bundle.js
CHANGED
|
@@ -1097,8 +1097,9 @@ function getFuncName$1(name) {
|
|
|
1097
1097
|
return moduleName$1 + '_' + name;
|
|
1098
1098
|
}
|
|
1099
1099
|
// 开启语音输入
|
|
1100
|
-
function enableVoiceInput() {
|
|
1101
|
-
|
|
1100
|
+
function enableVoiceInput(clientId) {
|
|
1101
|
+
if (clientId === void 0) { clientId = ''; }
|
|
1102
|
+
return callNative(getFuncName$1('enableVoiceInput'), { clientId: clientId });
|
|
1102
1103
|
}
|
|
1103
1104
|
// 停止TTS播报
|
|
1104
1105
|
//
|
package/lib/voice/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function enableVoiceInput(): Promise<any>;
|
|
1
|
+
export declare function enableVoiceInput(clientId?: string): Promise<any>;
|
|
2
2
|
export declare function stopTts(): Promise<any>;
|
|
3
3
|
export declare function sendTts(text: string, ttsId: string): Promise<any>;
|
|
4
4
|
export declare function sendStreamTts(text: string, ttsId: string, isFirst: boolean, isEnd: boolean): Promise<any>;
|