@spatialwalk/avatarkit 1.0.0-beta.97 → 1.0.0-beta.98
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/CHANGELOG.md +13 -3
- package/README.md +3 -3
- package/dist/{StreamingAudioPlayer-DgV2nt4w.js → StreamingAudioPlayer-DEELveJ_.js} +1 -1
- package/dist/{avatar_core_wasm-9834c91c.wasm → avatar_core_wasm-6656456a.wasm} +0 -0
- package/dist/{avatar_core_wasm-BY3MuXDA.js → avatar_core_wasm-Dci9E9jF.js} +2 -2
- package/dist/core/AvatarController.d.ts +7 -9
- package/dist/core/AvatarView.d.ts +4 -4
- package/dist/{index-DtnIjVSC.js → index-DfE9mnfH.js} +119 -106
- package/dist/index.js +1 -1
- package/dist/types/character-settings.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.0-beta.98]
|
|
9
|
+
|
|
10
|
+
### 🐛 Bugfixes
|
|
11
|
+
|
|
12
|
+
- **Build artifact fix** — beta.97 npm package contained stale build artifacts. This release contains the correct build with all beta.97 changes.
|
|
13
|
+
|
|
14
|
+
### ⚡ Breaking Changes
|
|
15
|
+
|
|
16
|
+
- **`setVolume()` / `getVolume()` replaced by `volume` property** — `controller.setVolume(0.5)` is now `controller.volume = 0.5`. Aligned with Android and iOS SDKs.
|
|
17
|
+
|
|
8
18
|
## [1.0.0-beta.97]
|
|
9
19
|
|
|
10
20
|
### ⚡ Breaking Changes
|
|
@@ -193,7 +203,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
193
203
|
|
|
194
204
|
### 🔧 Improvements
|
|
195
205
|
- **API Documentation** - All public API comments are now in English with JSDoc support for better IDE IntelliSense
|
|
196
|
-
- **Type Safety** - Removed internal types from public API exports
|
|
206
|
+
- **Type Safety** - Removed internal types from public API exports
|
|
197
207
|
- **Build Configuration** - JSDoc comments are now preserved in generated `.d.ts` files
|
|
198
208
|
|
|
199
209
|
### 📚 Documentation
|
|
@@ -282,7 +292,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
282
292
|
|
|
283
293
|
### 🔧 Improvements
|
|
284
294
|
- **Transition API Enhancement** - Updated `generateTransitionFromIdle()` to support both start and end transitions
|
|
285
|
-
- Added `transitionType` parameter: `'start'` for
|
|
295
|
+
- Added `transitionType` parameter: `'start'` for idle-to-speaking, `'end'` for speaking-to-idle
|
|
286
296
|
- Removed deprecated linear interpolation code and unused easing functions
|
|
287
297
|
|
|
288
298
|
## [1.0.0-beta.61] - 2026-01-14
|
|
@@ -308,7 +318,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
308
318
|
## [1.0.0-beta.58] - 2026-01-14
|
|
309
319
|
|
|
310
320
|
### ✨ New Features
|
|
311
|
-
- **Pure Rendering Mode APIs** - Added `
|
|
321
|
+
- **Pure Rendering Mode APIs** - Added `renderFrame()` and `generateTransitionFromIdle()` methods to `AvatarView` for external-controlled rendering without audio synchronization
|
|
312
322
|
|
|
313
323
|
## [1.0.0-beta.57] - 2026-01-09
|
|
314
324
|
|
package/README.md
CHANGED
|
@@ -716,8 +716,8 @@ const conversationId = avatarView.controller.getCurrentConversationId()
|
|
|
716
716
|
// Returns: Current conversationId for the active audio session, or null if no active session
|
|
717
717
|
|
|
718
718
|
// Volume control (affects only avatar audio player, not system volume)
|
|
719
|
-
avatarView.controller.
|
|
720
|
-
const currentVolume = avatarView.controller.
|
|
719
|
+
avatarView.controller.volume = 0.5 // Set volume to 50% (0.0 to 1.0)
|
|
720
|
+
const currentVolume = avatarView.controller.volume // Get current volume (0.0 to 1.0)
|
|
721
721
|
|
|
722
722
|
// Set event callbacks
|
|
723
723
|
avatarView.controller.onConnectionState = (state: ConnectionState) => {} // SDK mode only
|
|
@@ -745,7 +745,7 @@ avatarView.avatarTransform = { x: 0.5, y: 0, scale: 2.0 } // Right half, double
|
|
|
745
745
|
**Important Notes:**
|
|
746
746
|
- `start()` and `close()` are only available in SDK mode
|
|
747
747
|
- `yieldAudioData()` and `yieldFramesData()` are only available in Host mode
|
|
748
|
-
- `pause()`, `resume()`, `interrupt()`, `clear()`, `getCurrentConversationId()`,
|
|
748
|
+
- `pause()`, `resume()`, `interrupt()`, `clear()`, `getCurrentConversationId()`, and `volume` property are available in both modes
|
|
749
749
|
- The playback mode is determined when creating `AvatarView` and cannot be changed
|
|
750
750
|
|
|
751
751
|
## 🔧 Configuration
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-
|
|
4
|
+
import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-DfE9mnfH.js";
|
|
5
5
|
class StreamingAudioPlayer {
|
|
6
6
|
// Mark if AudioContext is being resumed, avoid concurrent resume requests
|
|
7
7
|
constructor(options) {
|
|
Binary file
|