@ray-js/t-agent-plugin-aistream 0.2.8-beta.5 → 0.2.8-beta.6
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.
|
@@ -16,7 +16,7 @@ export function withBuildIn(options) {
|
|
|
16
16
|
session,
|
|
17
17
|
onTileEvent,
|
|
18
18
|
onAgentStart,
|
|
19
|
-
|
|
19
|
+
onInputBlocksPush
|
|
20
20
|
} = agent;
|
|
21
21
|
const {
|
|
22
22
|
onSkillsEnd,
|
|
@@ -194,6 +194,11 @@ export function withBuildIn(options) {
|
|
|
194
194
|
agent.plugins.ui.onEvent('audioPlayStop', () => {
|
|
195
195
|
stopCurrent();
|
|
196
196
|
});
|
|
197
|
+
|
|
198
|
+
// 推送新的输入块(发送新消息)时,立即停止当前语音播放
|
|
199
|
+
onInputBlocksPush(() => {
|
|
200
|
+
stopCurrent();
|
|
201
|
+
});
|
|
197
202
|
onAttachmentCompose((part, respMsg) => {
|
|
198
203
|
if (part.attachmentType === 'audio') {
|
|
199
204
|
const audio = part.attachment;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/t-agent-plugin-aistream",
|
|
3
|
-
"version": "0.2.8-beta.
|
|
3
|
+
"version": "0.2.8-beta.6",
|
|
4
4
|
"author": "Tuya.inc",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/url-parse": "^1.4.11"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c79954a409ec0606a51ea4caab4ba90ee74155a7"
|
|
40
40
|
}
|