@firetable/project-xiaochun 0.1.17 → 0.1.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/README-CN.md +1 -0
- package/README.md +1 -0
- package/dist/chunks/{chunk-6EHOJ2CJ.js → chunk-BN4H52OR.js} +3 -3
- package/dist/chunks/{chunk-6EHOJ2CJ.js.map → chunk-BN4H52OR.js.map} +2 -2
- package/dist/chunks/{chunk-BJF55B44.js → chunk-KL7L3MGQ.js} +2 -2
- package/dist/chunks/{chunk-BJF55B44.js.map → chunk-KL7L3MGQ.js.map} +2 -2
- package/dist/chunks/{chunk-4RT7LXB5.js → chunk-Y5MRWV67.js} +4 -4
- package/dist/client.d.ts +2 -1
- package/dist/element.cjs +1 -1
- package/dist/element.cjs.map +2 -2
- package/dist/element.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +4 -4
- package/dist/loader.global.js +1 -1
- package/dist/loader.global.js.map +2 -2
- package/dist/protocol.cjs +1 -1
- package/dist/protocol.cjs.map +2 -2
- package/dist/protocol.d.ts +4 -2
- package/dist/protocol.js +2 -2
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +2 -2
- package/dist/react.js +3 -3
- package/package.json +1 -1
- /package/dist/chunks/{chunk-4RT7LXB5.js.map → chunk-Y5MRWV67.js.map} +0 -0
package/README-CN.md
CHANGED
|
@@ -160,6 +160,7 @@ s.write(int16Chunk); s.write(next); s.end(); await s.done; // s.abort() 立即
|
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
* `audible` 默认 `true`。`false` 仍会解码、生成动作并驱动口型,但 iframe 增益为 0,声音可以由宿主页面自己播放。
|
|
163
|
+
* 宿主音频的 `utterance start` 在思考动作和 EMAGE 首窗之后、声音时钟起步时才发。页面自己的播放器要等这个事件再出声,口型才对齐。
|
|
163
164
|
* 失败时 reject:`bad_request`(无法解码 / 空音频 / URL 或 sampleRate 不合法)、`unsupported`、`failed`。
|
|
164
165
|
* 浏览器仍要求宿主页先有用户手势才能出声,iframe 也要有 `allow="autoplay"`(SDK 已自动设置)。
|
|
165
166
|
* 新的 `say()` / `speakAudio()` 会打断正在进行的那一次,被打断的 Promise 会 resolve。
|
package/README.md
CHANGED
|
@@ -160,6 +160,7 @@ s.write(int16Chunk); s.write(next); s.end(); await s.done; // s.abort() stops
|
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
* `audible` defaults to `true`. `false` still decodes the audio, generates motion, and drives lip-sync, but the iframe gain is 0 so the host page can be the only speaker.
|
|
163
|
+
* For host audio, `utterance` `start` fires when the audio clock starts, after the thinking pose and the first EMAGE window. Hold the page's own player until that event if it must stay in sync.
|
|
163
164
|
* Rejects with `bad_request` (undecodable / empty audio, bad URL or sampleRate), `unsupported`, or `failed`.
|
|
164
165
|
* Browsers still require a user gesture on the host page before audio can play, and the iframe needs `allow="autoplay"` (the SDK sets it).
|
|
165
166
|
* A newer `say()` / `speakAudio()` call preempts the one in progress, and the preempted promise resolves.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @firetable/project-xiaochun v0.1.
|
|
1
|
+
/*! @firetable/project-xiaochun v0.1.18 | MIT | https://github.com/FireTable/project-xiaochun */
|
|
2
2
|
import {
|
|
3
3
|
XC_CAMERA_RANGES,
|
|
4
4
|
XC_DEFAULT_SRC,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeXcUiOption,
|
|
12
12
|
parseXcUiAutoHide,
|
|
13
13
|
xcMessage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KL7L3MGQ.js";
|
|
15
15
|
|
|
16
16
|
// src/gesture-box.ts
|
|
17
17
|
var DEFAULT_RESIZE_LIMITS = Object.freeze({
|
|
@@ -1080,4 +1080,4 @@ export {
|
|
|
1080
1080
|
defaultHeightCss,
|
|
1081
1081
|
createXiaochun
|
|
1082
1082
|
};
|
|
1083
|
-
//# sourceMappingURL=chunk-
|
|
1083
|
+
//# sourceMappingURL=chunk-BN4H52OR.js.map
|