@convai/web-sdk 1.9.0-beta.6 → 1.9.0
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.md +44 -13
- package/dist/core/AudioManager.d.ts +0 -1
- package/dist/core/AudioManager.js +0 -1
- package/dist/core/BlendshapeQueue.d.ts +0 -1
- package/dist/core/BlendshapeQueue.js +20 -6
- package/dist/core/CharacterRoster.d.ts +0 -1
- package/dist/core/CharacterRoster.js +0 -1
- package/dist/core/CharacterVersionManager.d.ts +0 -1
- package/dist/core/CharacterVersionManager.js +0 -1
- package/dist/core/ConnectionStateHandler.d.ts +0 -1
- package/dist/core/ConnectionStateHandler.js +5 -2
- package/dist/core/ConvaiClient.d.ts +31 -3
- package/dist/core/ConvaiClient.js +136 -14
- package/dist/core/ConvaiRoomError.d.ts +0 -1
- package/dist/core/ConvaiRoomError.js +20 -2
- package/dist/core/EventEmitter.d.ts +0 -1
- package/dist/core/EventEmitter.js +0 -1
- package/dist/core/MemoryManager.d.ts +0 -1
- package/dist/core/MemoryManager.js +0 -1
- package/dist/core/MessageHandler.d.ts +0 -1
- package/dist/core/MessageHandler.js +41 -10
- package/dist/core/SSESession.d.ts +0 -1
- package/dist/core/SSESession.js +0 -1
- package/dist/core/ScreenShareManager.d.ts +0 -1
- package/dist/core/ScreenShareManager.js +0 -1
- package/dist/core/VideoManager.d.ts +0 -1
- package/dist/core/VideoManager.js +0 -1
- package/dist/core/characterInfo.d.ts +45 -0
- package/dist/core/characterInfo.js +55 -0
- package/dist/core/characterReference.d.ts +0 -1
- package/dist/core/characterReference.js +0 -1
- package/dist/core/connectRequest.d.ts +0 -1
- package/dist/core/connectRequest.js +0 -1
- package/dist/core/contextUpdateRequest.d.ts +0 -1
- package/dist/core/contextUpdateRequest.js +0 -1
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.js +20 -3
- package/dist/core/logicalTurn.d.ts +0 -1
- package/dist/core/logicalTurn.js +0 -1
- package/dist/core/modelOutput.d.ts +0 -1
- package/dist/core/modelOutput.js +0 -1
- package/dist/core/publishedChat.d.ts +0 -1
- package/dist/core/publishedChat.js +0 -1
- package/dist/core/rosterRequest.d.ts +0 -1
- package/dist/core/rosterRequest.js +0 -1
- package/dist/core/rtviEnvelope.d.ts +0 -1
- package/dist/core/rtviEnvelope.js +0 -1
- package/dist/core/types.d.ts +112 -10
- package/dist/core/types.js +0 -1
- package/dist/core/videoSourceState.d.ts +0 -1
- package/dist/core/videoSourceState.js +0 -1
- package/dist/core/visionRequest.d.ts +0 -1
- package/dist/core/visionRequest.js +0 -1
- package/dist/embed/index.d.ts +11 -1
- package/dist/embed/index.js +11 -1
- package/dist/embed/publicationApi.d.ts +0 -1
- package/dist/embed/publicationApi.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/lipsync-helpers/arkitOrder61.d.ts +0 -1
- package/dist/lipsync-helpers/arkitOrder61.js +5 -3
- package/dist/lipsync-helpers/createBlendshapeQueue.d.ts +0 -1
- package/dist/lipsync-helpers/createBlendshapeQueue.js +7 -1
- package/dist/lipsync-helpers/declarativeMapping.d.ts +2 -1
- package/dist/lipsync-helpers/declarativeMapping.js +72 -146
- package/dist/lipsync-helpers/index.d.ts +0 -1
- package/dist/lipsync-helpers/index.js +0 -1
- package/dist/lipsync-helpers/mappingTypes.d.ts +6 -5
- package/dist/lipsync-helpers/mappingTypes.js +0 -1
- package/dist/lipsync-helpers/metahumanOrder251.d.ts +0 -1
- package/dist/lipsync-helpers/metahumanOrder251.js +8 -9
- package/dist/lipsync-helpers/mhaLimitDrivers.d.ts +0 -1
- package/dist/lipsync-helpers/mhaLimitDrivers.js +0 -1
- package/dist/lipsync-helpers/naturalness/processor.d.ts +0 -1
- package/dist/lipsync-helpers/naturalness/processor.js +6 -4
- package/dist/lipsync-helpers/naturalness/profiles/mha.d.ts +0 -1
- package/dist/lipsync-helpers/naturalness/profiles/mha.js +0 -1
- package/dist/lipsync-helpers/naturalness/types.d.ts +0 -1
- package/dist/lipsync-helpers/naturalness/types.js +0 -1
- package/dist/lipsync-helpers/presetMappers.d.ts +0 -1
- package/dist/lipsync-helpers/presetMappers.js +0 -1
- package/dist/react/components/ConvaiWidget.d.ts +0 -1
- package/dist/react/components/ConvaiWidget.js +16 -8
- package/dist/react/components/index.d.ts +0 -1
- package/dist/react/components/index.js +0 -1
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.js +0 -1
- package/dist/react/components/rtc-widget/components/AudioVisualizer.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/AudioVisualizer.js +0 -1
- package/dist/react/components/rtc-widget/components/ConviMessage.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/ConviMessage.js +0 -1
- package/dist/react/components/rtc-widget/components/FloatingVideo.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/FloatingVideo.js +0 -1
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.js +0 -1
- package/dist/react/components/rtc-widget/components/MessageBubble.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/MessageBubble.js +0 -1
- package/dist/react/components/rtc-widget/components/MessageList.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/MessageList.js +0 -1
- package/dist/react/components/rtc-widget/components/SiteCard.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/SiteCard.js +0 -1
- package/dist/react/components/rtc-widget/components/UserMessage.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/UserMessage.js +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/index.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/index.js +0 -1
- package/dist/react/components/rtc-widget/components/index.d.ts +0 -1
- package/dist/react/components/rtc-widget/components/index.js +0 -1
- package/dist/react/components/rtc-widget/index.d.ts +0 -1
- package/dist/react/components/rtc-widget/index.js +0 -1
- package/dist/react/components/rtc-widget/styles/framerConfig.d.ts +0 -1
- package/dist/react/components/rtc-widget/styles/framerConfig.js +0 -1
- package/dist/react/components/rtc-widget/styles/icons.d.ts +0 -1
- package/dist/react/components/rtc-widget/styles/icons.js +0 -1
- package/dist/react/components/rtc-widget/styles/index.d.ts +0 -1
- package/dist/react/components/rtc-widget/styles/index.js +0 -1
- package/dist/react/components/rtc-widget/styles/styledComponents.d.ts +0 -1
- package/dist/react/components/rtc-widget/styles/styledComponents.js +0 -1
- package/dist/react/components/rtc-widget/styles/theme.d.ts +0 -1
- package/dist/react/components/rtc-widget/styles/theme.js +0 -1
- package/dist/react/components/rtc-widget/types/index.d.ts +0 -1
- package/dist/react/components/rtc-widget/types/index.js +0 -1
- package/dist/react/hooks/index.d.ts +0 -1
- package/dist/react/hooks/index.js +0 -1
- package/dist/react/hooks/useCharacterInfo.d.ts +12 -11
- package/dist/react/hooks/useCharacterInfo.js +49 -50
- package/dist/react/hooks/useConvaiClient.d.ts +0 -1
- package/dist/react/hooks/useConvaiClient.js +6 -5
- package/dist/react/hooks/useLocalCameraTrack.d.ts +0 -1
- package/dist/react/hooks/useLocalCameraTrack.js +0 -1
- package/dist/react/icons.d.ts +0 -1
- package/dist/react/icons.js +0 -1
- package/dist/react/index.d.ts +0 -1
- package/dist/react/index.js +0 -1
- package/dist/utils/inlineMarkdown.d.ts +0 -1
- package/dist/utils/inlineMarkdown.js +0 -1
- package/dist/utils/lightbox.d.ts +0 -1
- package/dist/utils/lightbox.js +0 -1
- package/dist/utils/linkPresentation.d.ts +0 -1
- package/dist/utils/linkPresentation.js +0 -1
- package/dist/utils/linkPreview.d.ts +0 -1
- package/dist/utils/linkPreview.js +0 -1
- package/dist/utils/logger.d.ts +0 -1
- package/dist/utils/logger.js +0 -1
- package/dist/vanilla/AudioRenderer.d.ts +0 -1
- package/dist/vanilla/AudioRenderer.js +0 -1
- package/dist/vanilla/ConvaiWidget.d.ts +0 -1
- package/dist/vanilla/ConvaiWidget.js +18 -30
- package/dist/vanilla/WebSocketSession.d.ts +0 -1
- package/dist/vanilla/WebSocketSession.js +0 -1
- package/dist/vanilla/WidgetEventSubscriptions.d.ts +0 -1
- package/dist/vanilla/WidgetEventSubscriptions.js +0 -1
- package/dist/vanilla/icons.d.ts +0 -1
- package/dist/vanilla/icons.js +0 -1
- package/dist/vanilla/index.d.ts +0 -1
- package/dist/vanilla/index.js +0 -1
- package/dist/vanilla/styles.d.ts +0 -1
- package/dist/vanilla/styles.js +0 -1
- package/dist/vanilla/types.d.ts +0 -1
- package/dist/vanilla/types.js +0 -1
- package/dist/vanilla/websocket.d.ts +0 -1
- package/dist/vanilla/websocket.js +0 -1
- package/dist/version.d.ts +1 -2
- package/dist/version.js +1 -2
- package/package.json +4 -4
- package/dist/core/AudioManager.d.ts.map +0 -1
- package/dist/core/AudioManager.js.map +0 -1
- package/dist/core/BlendshapeQueue.d.ts.map +0 -1
- package/dist/core/BlendshapeQueue.js.map +0 -1
- package/dist/core/CharacterRoster.d.ts.map +0 -1
- package/dist/core/CharacterRoster.js.map +0 -1
- package/dist/core/CharacterVersionManager.d.ts.map +0 -1
- package/dist/core/CharacterVersionManager.js.map +0 -1
- package/dist/core/ConnectionStateHandler.d.ts.map +0 -1
- package/dist/core/ConnectionStateHandler.js.map +0 -1
- package/dist/core/ConvaiClient.d.ts.map +0 -1
- package/dist/core/ConvaiClient.js.map +0 -1
- package/dist/core/ConvaiRoomError.d.ts.map +0 -1
- package/dist/core/ConvaiRoomError.js.map +0 -1
- package/dist/core/EventEmitter.d.ts.map +0 -1
- package/dist/core/EventEmitter.js.map +0 -1
- package/dist/core/MemoryManager.d.ts.map +0 -1
- package/dist/core/MemoryManager.js.map +0 -1
- package/dist/core/MessageHandler.d.ts.map +0 -1
- package/dist/core/MessageHandler.js.map +0 -1
- package/dist/core/SSESession.d.ts.map +0 -1
- package/dist/core/SSESession.js.map +0 -1
- package/dist/core/ScreenShareManager.d.ts.map +0 -1
- package/dist/core/ScreenShareManager.js.map +0 -1
- package/dist/core/VideoManager.d.ts.map +0 -1
- package/dist/core/VideoManager.js.map +0 -1
- package/dist/core/characterReference.d.ts.map +0 -1
- package/dist/core/characterReference.js.map +0 -1
- package/dist/core/connectRequest.d.ts.map +0 -1
- package/dist/core/connectRequest.js.map +0 -1
- package/dist/core/contextUpdateRequest.d.ts.map +0 -1
- package/dist/core/contextUpdateRequest.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/logicalTurn.d.ts.map +0 -1
- package/dist/core/logicalTurn.js.map +0 -1
- package/dist/core/modelOutput.d.ts.map +0 -1
- package/dist/core/modelOutput.js.map +0 -1
- package/dist/core/publishedChat.d.ts.map +0 -1
- package/dist/core/publishedChat.js.map +0 -1
- package/dist/core/rosterRequest.d.ts.map +0 -1
- package/dist/core/rosterRequest.js.map +0 -1
- package/dist/core/rtviEnvelope.d.ts.map +0 -1
- package/dist/core/rtviEnvelope.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js.map +0 -1
- package/dist/core/videoSourceState.d.ts.map +0 -1
- package/dist/core/videoSourceState.js.map +0 -1
- package/dist/core/visionRequest.d.ts.map +0 -1
- package/dist/core/visionRequest.js.map +0 -1
- package/dist/embed/index.d.ts.map +0 -1
- package/dist/embed/index.js.map +0 -1
- package/dist/embed/publicationApi.d.ts.map +0 -1
- package/dist/embed/publicationApi.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lipsync-helpers/arkitOrder61.d.ts.map +0 -1
- package/dist/lipsync-helpers/arkitOrder61.js.map +0 -1
- package/dist/lipsync-helpers/createBlendshapeQueue.d.ts.map +0 -1
- package/dist/lipsync-helpers/createBlendshapeQueue.js.map +0 -1
- package/dist/lipsync-helpers/declarativeMapping.d.ts.map +0 -1
- package/dist/lipsync-helpers/declarativeMapping.js.map +0 -1
- package/dist/lipsync-helpers/index.d.ts.map +0 -1
- package/dist/lipsync-helpers/index.js.map +0 -1
- package/dist/lipsync-helpers/mappingTypes.d.ts.map +0 -1
- package/dist/lipsync-helpers/mappingTypes.js.map +0 -1
- package/dist/lipsync-helpers/metahumanOrder251.d.ts.map +0 -1
- package/dist/lipsync-helpers/metahumanOrder251.js.map +0 -1
- package/dist/lipsync-helpers/mhaLimitDrivers.d.ts.map +0 -1
- package/dist/lipsync-helpers/mhaLimitDrivers.js.map +0 -1
- package/dist/lipsync-helpers/naturalness/processor.d.ts.map +0 -1
- package/dist/lipsync-helpers/naturalness/processor.js.map +0 -1
- package/dist/lipsync-helpers/naturalness/profiles/mha.d.ts.map +0 -1
- package/dist/lipsync-helpers/naturalness/profiles/mha.js.map +0 -1
- package/dist/lipsync-helpers/naturalness/types.d.ts.map +0 -1
- package/dist/lipsync-helpers/naturalness/types.js.map +0 -1
- package/dist/lipsync-helpers/presetMappers.d.ts.map +0 -1
- package/dist/lipsync-helpers/presetMappers.js.map +0 -1
- package/dist/react/components/ConvaiWidget.d.ts.map +0 -1
- package/dist/react/components/ConvaiWidget.js.map +0 -1
- package/dist/react/components/index.d.ts.map +0 -1
- package/dist/react/components/index.js.map +0 -1
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.js.map +0 -1
- package/dist/react/components/rtc-widget/components/AudioVisualizer.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/AudioVisualizer.js.map +0 -1
- package/dist/react/components/rtc-widget/components/ConviMessage.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/ConviMessage.js.map +0 -1
- package/dist/react/components/rtc-widget/components/FloatingVideo.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/FloatingVideo.js.map +0 -1
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.js.map +0 -1
- package/dist/react/components/rtc-widget/components/MessageBubble.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/MessageBubble.js.map +0 -1
- package/dist/react/components/rtc-widget/components/MessageList.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/MessageList.js.map +0 -1
- package/dist/react/components/rtc-widget/components/SiteCard.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/SiteCard.js.map +0 -1
- package/dist/react/components/rtc-widget/components/UserMessage.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/UserMessage.js.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/index.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/conviComponents/index.js.map +0 -1
- package/dist/react/components/rtc-widget/components/index.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/components/index.js.map +0 -1
- package/dist/react/components/rtc-widget/index.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/index.js.map +0 -1
- package/dist/react/components/rtc-widget/styles/framerConfig.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/styles/framerConfig.js.map +0 -1
- package/dist/react/components/rtc-widget/styles/icons.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/styles/icons.js.map +0 -1
- package/dist/react/components/rtc-widget/styles/index.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/styles/index.js.map +0 -1
- package/dist/react/components/rtc-widget/styles/styledComponents.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/styles/styledComponents.js.map +0 -1
- package/dist/react/components/rtc-widget/styles/theme.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/styles/theme.js.map +0 -1
- package/dist/react/components/rtc-widget/types/index.d.ts.map +0 -1
- package/dist/react/components/rtc-widget/types/index.js.map +0 -1
- package/dist/react/hooks/index.d.ts.map +0 -1
- package/dist/react/hooks/index.js.map +0 -1
- package/dist/react/hooks/useCharacterInfo.d.ts.map +0 -1
- package/dist/react/hooks/useCharacterInfo.js.map +0 -1
- package/dist/react/hooks/useConvaiClient.d.ts.map +0 -1
- package/dist/react/hooks/useConvaiClient.js.map +0 -1
- package/dist/react/hooks/useLocalCameraTrack.d.ts.map +0 -1
- package/dist/react/hooks/useLocalCameraTrack.js.map +0 -1
- package/dist/react/icons.d.ts.map +0 -1
- package/dist/react/icons.js.map +0 -1
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/utils/inlineMarkdown.d.ts.map +0 -1
- package/dist/utils/inlineMarkdown.js.map +0 -1
- package/dist/utils/lightbox.d.ts.map +0 -1
- package/dist/utils/lightbox.js.map +0 -1
- package/dist/utils/linkPresentation.d.ts.map +0 -1
- package/dist/utils/linkPresentation.js.map +0 -1
- package/dist/utils/linkPreview.d.ts.map +0 -1
- package/dist/utils/linkPreview.js.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/vanilla/AudioRenderer.d.ts.map +0 -1
- package/dist/vanilla/AudioRenderer.js.map +0 -1
- package/dist/vanilla/ConvaiWidget.d.ts.map +0 -1
- package/dist/vanilla/ConvaiWidget.js.map +0 -1
- package/dist/vanilla/WebSocketSession.d.ts.map +0 -1
- package/dist/vanilla/WebSocketSession.js.map +0 -1
- package/dist/vanilla/WidgetEventSubscriptions.d.ts.map +0 -1
- package/dist/vanilla/WidgetEventSubscriptions.js.map +0 -1
- package/dist/vanilla/icons.d.ts.map +0 -1
- package/dist/vanilla/icons.js.map +0 -1
- package/dist/vanilla/index.d.ts.map +0 -1
- package/dist/vanilla/index.js.map +0 -1
- package/dist/vanilla/styles.d.ts.map +0 -1
- package/dist/vanilla/styles.js.map +0 -1
- package/dist/vanilla/types.d.ts.map +0 -1
- package/dist/vanilla/types.js.map +0 -1
- package/dist/vanilla/websocket.d.ts.map +0 -1
- package/dist/vanilla/websocket.js.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js.map +0 -1
package/dist/embed/index.d.ts
CHANGED
|
@@ -13,4 +13,14 @@
|
|
|
13
13
|
* docs/convai_published_chat.md.
|
|
14
14
|
*/
|
|
15
15
|
export * from "./publicationApi.js";
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Strip a stale `connectAttemptId` before starting a fresh published session.
|
|
18
|
+
*
|
|
19
|
+
* Exported because it encodes a protocol rule, not a widget detail: an attempt
|
|
20
|
+
* id may be reused only while retrying the *same* single-use launch token, so a
|
|
21
|
+
* UI that starts a new session with options it kept from the last one would
|
|
22
|
+
* otherwise replay an id the server already consumed. Any interface driving
|
|
23
|
+
* published chat — the bundled widgets, `@convai/web-widget`, or your own —
|
|
24
|
+
* needs this at the session boundary.
|
|
25
|
+
*/
|
|
26
|
+
export { freshPublicationGrantOptions } from "../core/publishedChat.js";
|
package/dist/embed/index.js
CHANGED
|
@@ -13,4 +13,14 @@
|
|
|
13
13
|
* docs/convai_published_chat.md.
|
|
14
14
|
*/
|
|
15
15
|
export * from "./publicationApi.js";
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Strip a stale `connectAttemptId` before starting a fresh published session.
|
|
18
|
+
*
|
|
19
|
+
* Exported because it encodes a protocol rule, not a widget detail: an attempt
|
|
20
|
+
* id may be reused only while retrying the *same* single-use launch token, so a
|
|
21
|
+
* UI that starts a new session with options it kept from the last one would
|
|
22
|
+
* otherwise replay an id the server already consumed. Any interface driving
|
|
23
|
+
* published chat — the bundled widgets, `@convai/web-widget`, or your own —
|
|
24
|
+
* needs this at the session boundary.
|
|
25
|
+
*/
|
|
26
|
+
export { freshPublicationGrantOptions } from "../core/publishedChat.js";
|
|
@@ -20,4 +20,3 @@ export declare function getPublishedChatEndpoints(publicationId: string, publica
|
|
|
20
20
|
export declare function fetchPublishedChatDescriptor(descriptorUrl: string, fetchImpl?: PublishedChatFetch, signal?: AbortSignal): Promise<PublishedChatDescriptor>;
|
|
21
21
|
export declare function requestPublishedChatGrant(launchGrantUrl: string, fetchImpl?: PublishedChatFetch, signal?: AbortSignal, requesterId?: string): Promise<string>;
|
|
22
22
|
export declare function loadPublishedChatSession(publicationId: string, publicationApiUrl?: string, fetchImpl?: PublishedChatFetch, signal?: AbortSignal, requesterId?: string): Promise<PublishedChatSession>;
|
|
23
|
-
//# sourceMappingURL=publicationApi.d.ts.map
|
|
@@ -138,4 +138,3 @@ export async function loadPublishedChatSession(publicationId, publicationApiUrl,
|
|
|
138
138
|
const launchToken = await requestPublishedChatGrant(launchGrantUrl.toString(), fetchImpl, signal, requesterId);
|
|
139
139
|
return { descriptor, launchToken };
|
|
140
140
|
}
|
|
141
|
-
//# sourceMappingURL=publicationApi.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -270,7 +270,8 @@ export function getActiveBlendshapesFromOrder61(values61, threshold = 0.01) {
|
|
|
270
270
|
* @param maxEntries - Maximum entries to show (default: 20)
|
|
271
271
|
*/
|
|
272
272
|
export function formatOrder61ForLogging(values61, threshold = 0.01, maxEntries = 20) {
|
|
273
|
-
const
|
|
273
|
+
const allActive = getActiveBlendshapesFromOrder61(values61, threshold);
|
|
274
|
+
const active = allActive
|
|
274
275
|
.slice(0, maxEntries)
|
|
275
276
|
.reduce((acc, item) => {
|
|
276
277
|
acc[item.name] = Number(item.value.toFixed(4));
|
|
@@ -279,9 +280,10 @@ export function formatOrder61ForLogging(values61, threshold = 0.01, maxEntries =
|
|
|
279
280
|
return {
|
|
280
281
|
active,
|
|
281
282
|
total: values61.length,
|
|
282
|
-
|
|
283
|
+
// Every active channel, not just the maxEntries listed — as in the
|
|
284
|
+
// MetaHuman helper, which shares this return shape.
|
|
285
|
+
activeCount: allActive.length,
|
|
283
286
|
headRotation: getHeadRotation(values61),
|
|
284
287
|
eyeRotations: getEyeRotations(values61),
|
|
285
288
|
};
|
|
286
289
|
}
|
|
287
|
-
//# sourceMappingURL=arkitOrder61.js.map
|
|
@@ -48,6 +48,13 @@ export function createBlendshapeQueue(config) {
|
|
|
48
48
|
else {
|
|
49
49
|
// Select preset mapper based on input/output format
|
|
50
50
|
mapper = selectPresetMapper(config.inputFormat, config.outputFormat);
|
|
51
|
+
// Only same-format passthroughs are built in. Returning a queue anyway
|
|
52
|
+
// handed one layout to a rig expecting another — 61 ARKit values to a
|
|
53
|
+
// 251-channel MetaHuman — with no error.
|
|
54
|
+
if (!mapper) {
|
|
55
|
+
throw new Error(`createBlendshapeQueue: no built-in mapping from "${config.inputFormat}" to "${config.outputFormat}". ` +
|
|
56
|
+
"Pass a mapper, or use the same input and output format.");
|
|
57
|
+
}
|
|
51
58
|
}
|
|
52
59
|
return new BlendshapeQueue(mapper);
|
|
53
60
|
}
|
|
@@ -123,4 +130,3 @@ export function inferMappingFromConfig(blendshapeConfig) {
|
|
|
123
130
|
outputFormat: format, // Passthrough by default
|
|
124
131
|
};
|
|
125
132
|
}
|
|
126
|
-
//# sourceMappingURL=createBlendshapeQueue.js.map
|
|
@@ -86,8 +86,9 @@ export declare function createARKitNameMapper(mapping: BlendshapeNameMapping, ou
|
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
88
|
export declare function createMetaHumanNameMapper(mapping: BlendshapeNameMapping, outputFormat?: 'object' | 'optimized'): BlendshapeMapper;
|
|
89
|
+
/** Attach target names to a frame without making them iterable values. */
|
|
90
|
+
export declare function withBlendshapeNames(values: Float32Array, names: readonly string[]): Float32Array;
|
|
89
91
|
/**
|
|
90
92
|
* Helper to extract blendshape object from mapper output
|
|
91
93
|
*/
|
|
92
94
|
export declare function getBlendshapeObject(output: any): Record<string, number>;
|
|
93
|
-
//# sourceMappingURL=declarativeMapping.d.ts.map
|
|
@@ -36,89 +36,11 @@ import { METAHUMAN_ORDER_251 } from './metahumanOrder251.js';
|
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
38
|
export function createARKitNameMapper(mapping, outputFormat = 'object') {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sourceName,
|
|
45
|
-
sourceName.charAt(0).toUpperCase() + sourceName.slice(1),
|
|
46
|
-
sourceName.charAt(0).toLowerCase() + sourceName.slice(1),
|
|
47
|
-
];
|
|
48
|
-
let sourceIndex = -1;
|
|
49
|
-
for (const variation of sourceNameVariations) {
|
|
50
|
-
sourceIndex = ARKIT_ORDER_61.indexOf(variation);
|
|
51
|
-
if (sourceIndex !== -1)
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
if (sourceIndex === -1) {
|
|
55
|
-
console.warn(`[ARKit Name Mapper] Source blendshape "${sourceName}" not found in ARKit format`);
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
sourceIndexToTargets.set(sourceIndex, targetNames);
|
|
59
|
-
}
|
|
60
|
-
// Build list of unique target names
|
|
61
|
-
const uniqueTargets = new Set();
|
|
62
|
-
for (const targets of sourceIndexToTargets.values()) {
|
|
63
|
-
targets.forEach(t => uniqueTargets.add(t));
|
|
64
|
-
}
|
|
65
|
-
const targetNames = Array.from(uniqueTargets);
|
|
66
|
-
// Build accumulation structure: target name -> [source indices]
|
|
67
|
-
const targetToSources = new Map();
|
|
68
|
-
for (const targetName of targetNames) {
|
|
69
|
-
targetToSources.set(targetName, []);
|
|
70
|
-
}
|
|
71
|
-
for (const [sourceIndex, targets] of sourceIndexToTargets.entries()) {
|
|
72
|
-
for (const targetName of targets) {
|
|
73
|
-
targetToSources.get(targetName)?.push(sourceIndex);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
// Pre-allocate output structures
|
|
77
|
-
const outputValues = new Float32Array(targetNames.length);
|
|
78
|
-
const nameToIndex = new Map();
|
|
79
|
-
targetNames.forEach((name, index) => nameToIndex.set(name, index));
|
|
80
|
-
if (outputFormat === 'optimized') {
|
|
81
|
-
// Optimized format: return structured object for fast iteration
|
|
82
|
-
const optimizedOutput = {
|
|
83
|
-
names: targetNames,
|
|
84
|
-
values: outputValues,
|
|
85
|
-
nameToIndex,
|
|
86
|
-
length: targetNames.length,
|
|
87
|
-
};
|
|
88
|
-
return (input) => {
|
|
89
|
-
outputValues.fill(0);
|
|
90
|
-
// Accumulate values for each target
|
|
91
|
-
for (let i = 0; i < targetNames.length; i++) {
|
|
92
|
-
const sourceIndices = targetToSources.get(targetNames[i]);
|
|
93
|
-
let sum = 0;
|
|
94
|
-
for (const srcIndex of sourceIndices) {
|
|
95
|
-
sum += input[srcIndex] || 0;
|
|
96
|
-
}
|
|
97
|
-
outputValues[i] = sum / sourceIndices.length; // Average if multiple sources
|
|
98
|
-
}
|
|
99
|
-
// Return same object reference (values are updated in place)
|
|
100
|
-
return optimizedOutput;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
// Object format: return key-value object
|
|
105
|
-
return (input) => {
|
|
106
|
-
const output = {};
|
|
107
|
-
for (const targetName of targetNames) {
|
|
108
|
-
const sourceIndices = targetToSources.get(targetName);
|
|
109
|
-
let sum = 0;
|
|
110
|
-
for (const srcIndex of sourceIndices) {
|
|
111
|
-
sum += input[srcIndex] || 0;
|
|
112
|
-
}
|
|
113
|
-
output[targetName] = sum / sourceIndices.length;
|
|
114
|
-
}
|
|
115
|
-
// Convert to Float32Array representation (for compatibility)
|
|
116
|
-
// Store as object in the array's properties (hack but works)
|
|
117
|
-
const result = new Float32Array(0);
|
|
118
|
-
result.__blendshapeObject = output;
|
|
119
|
-
return result;
|
|
120
|
-
};
|
|
121
|
-
}
|
|
39
|
+
return buildNameMapper(mapping, outputFormat, (name) => firstIndexOf(ARKIT_ORDER_61, [
|
|
40
|
+
name,
|
|
41
|
+
name.charAt(0).toUpperCase() + name.slice(1),
|
|
42
|
+
name.charAt(0).toLowerCase() + name.slice(1),
|
|
43
|
+
]), 'ARKit');
|
|
122
44
|
}
|
|
123
45
|
/**
|
|
124
46
|
* Create a mapper from MetaHuman format using declarative name mapping
|
|
@@ -136,82 +58,87 @@ export function createARKitNameMapper(mapping, outputFormat = 'object') {
|
|
|
136
58
|
* ```
|
|
137
59
|
*/
|
|
138
60
|
export function createMetaHumanNameMapper(mapping, outputFormat = 'object') {
|
|
139
|
-
//
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
61
|
+
// Full CTRL_expressions_* names, or the short form the ARKit mapper also
|
|
62
|
+
// accepts ("jawOpen").
|
|
63
|
+
return buildNameMapper(mapping, outputFormat, (name) => firstIndexOf(METAHUMAN_ORDER_251, [
|
|
64
|
+
name,
|
|
65
|
+
`CTRL_expressions_${name}`,
|
|
66
|
+
`CTRL_expressions_${name.charAt(0).toLowerCase()}${name.slice(1)}`,
|
|
67
|
+
]), 'MetaHuman');
|
|
68
|
+
}
|
|
69
|
+
/** Hidden on 'object' frames: the target name for each value, in order. */
|
|
70
|
+
const NAMES = '__blendshapeNames';
|
|
71
|
+
function firstIndexOf(order, candidates) {
|
|
72
|
+
for (const candidate of candidates) {
|
|
73
|
+
const index = order.indexOf(candidate);
|
|
74
|
+
if (index !== -1)
|
|
75
|
+
return index;
|
|
76
|
+
}
|
|
77
|
+
return -1;
|
|
78
|
+
}
|
|
79
|
+
/** Attach target names to a frame without making them iterable values. */
|
|
80
|
+
export function withBlendshapeNames(values, names) {
|
|
81
|
+
Object.defineProperty(values, NAMES, { value: names, enumerable: false });
|
|
82
|
+
return values;
|
|
83
|
+
}
|
|
84
|
+
function buildNameMapper(mapping, outputFormat, indexOf, label) {
|
|
85
|
+
// target name -> source indices it averages
|
|
86
|
+
const targetToSources = new Map();
|
|
87
|
+
for (const [sourceName, targets] of Object.entries(mapping)) {
|
|
88
|
+
const sourceIndex = indexOf(sourceName);
|
|
143
89
|
if (sourceIndex === -1) {
|
|
144
|
-
console.warn(`[
|
|
90
|
+
console.warn(`[${label} Name Mapper] Source blendshape "${sourceName}" not found in ${label} format`);
|
|
145
91
|
continue;
|
|
146
92
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
for (const targets of sourceIndexToTargets.values()) {
|
|
152
|
-
targets.forEach(t => uniqueTargets.add(t));
|
|
153
|
-
}
|
|
154
|
-
const targetNames = Array.from(uniqueTargets);
|
|
155
|
-
// Build accumulation structure: target name -> [source indices]
|
|
156
|
-
const targetToSources = new Map();
|
|
157
|
-
for (const targetName of targetNames) {
|
|
158
|
-
targetToSources.set(targetName, []);
|
|
159
|
-
}
|
|
160
|
-
for (const [sourceIndex, targets] of sourceIndexToTargets.entries()) {
|
|
161
|
-
for (const targetName of targets) {
|
|
162
|
-
targetToSources.get(targetName)?.push(sourceIndex);
|
|
93
|
+
for (const target of targets) {
|
|
94
|
+
if (!targetToSources.has(target))
|
|
95
|
+
targetToSources.set(target, []);
|
|
96
|
+
targetToSources.get(target).push(sourceIndex);
|
|
163
97
|
}
|
|
164
98
|
}
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
const nameToIndex = new Map();
|
|
168
|
-
|
|
99
|
+
const names = Array.from(targetToSources.keys());
|
|
100
|
+
const sources = names.map((name) => targetToSources.get(name));
|
|
101
|
+
const nameToIndex = new Map(names.map((name, i) => [name, i]));
|
|
102
|
+
// Fresh values for every frame. The queue keeps each frame until it is
|
|
103
|
+
// played, so a shared buffer made every queued frame read as the newest.
|
|
104
|
+
const compute = (input) => {
|
|
105
|
+
const values = new Float32Array(names.length);
|
|
106
|
+
for (let i = 0; i < names.length; i++) {
|
|
107
|
+
let sum = 0;
|
|
108
|
+
for (const srcIndex of sources[i])
|
|
109
|
+
sum += input[srcIndex] || 0;
|
|
110
|
+
values[i] = sum / sources[i].length; // average when several sources share a target
|
|
111
|
+
}
|
|
112
|
+
return values;
|
|
113
|
+
};
|
|
169
114
|
if (outputFormat === 'optimized') {
|
|
170
|
-
// Optimized format: return structured object for fast iteration
|
|
171
|
-
const optimizedOutput = {
|
|
172
|
-
names: targetNames,
|
|
173
|
-
values: outputValues,
|
|
174
|
-
nameToIndex,
|
|
175
|
-
length: targetNames.length,
|
|
176
|
-
};
|
|
177
|
-
return (input) => {
|
|
178
|
-
outputValues.fill(0);
|
|
179
|
-
// Accumulate values for each target
|
|
180
|
-
for (let i = 0; i < targetNames.length; i++) {
|
|
181
|
-
const sourceIndices = targetToSources.get(targetNames[i]);
|
|
182
|
-
let sum = 0;
|
|
183
|
-
for (const srcIndex of sourceIndices) {
|
|
184
|
-
sum += input[srcIndex] || 0;
|
|
185
|
-
}
|
|
186
|
-
outputValues[i] = sum / sourceIndices.length; // Average if multiple sources
|
|
187
|
-
}
|
|
188
|
-
// Return same object reference (values are updated in place)
|
|
189
|
-
return optimizedOutput;
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
// Object format: return key-value object
|
|
194
115
|
return (input) => {
|
|
195
|
-
const output = {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
output[targetName] = sum / sourceIndices.length;
|
|
203
|
-
}
|
|
204
|
-
// Convert to Float32Array representation (for compatibility)
|
|
205
|
-
const result = new Float32Array(0);
|
|
206
|
-
result.__blendshapeObject = output;
|
|
207
|
-
return result;
|
|
116
|
+
const output = {
|
|
117
|
+
names,
|
|
118
|
+
values: compute(input),
|
|
119
|
+
nameToIndex,
|
|
120
|
+
length: names.length,
|
|
121
|
+
};
|
|
122
|
+
return output;
|
|
208
123
|
};
|
|
209
124
|
}
|
|
125
|
+
// 'object': a real numeric frame — so fades and any numeric consumer work —
|
|
126
|
+
// with the names attached for getBlendshapeObject().
|
|
127
|
+
return (input) => withBlendshapeNames(compute(input), names);
|
|
210
128
|
}
|
|
211
129
|
/**
|
|
212
130
|
* Helper to extract blendshape object from mapper output
|
|
213
131
|
*/
|
|
214
132
|
export function getBlendshapeObject(output) {
|
|
133
|
+
if (!output)
|
|
134
|
+
return {};
|
|
135
|
+
const names = output[NAMES];
|
|
136
|
+
if (names) {
|
|
137
|
+
const obj = {};
|
|
138
|
+
for (let i = 0; i < names.length; i++)
|
|
139
|
+
obj[names[i]] = output[i];
|
|
140
|
+
return obj;
|
|
141
|
+
}
|
|
215
142
|
if (output.__blendshapeObject) {
|
|
216
143
|
return output.__blendshapeObject;
|
|
217
144
|
}
|
|
@@ -225,4 +152,3 @@ export function getBlendshapeObject(output) {
|
|
|
225
152
|
}
|
|
226
153
|
return {};
|
|
227
154
|
}
|
|
228
|
-
//# sourceMappingURL=declarativeMapping.js.map
|
|
@@ -16,4 +16,3 @@ export { createLipsyncProcessor, getLipsyncProfile, } from "./naturalness/proces
|
|
|
16
16
|
export type { LipsyncFormat, LipsyncFormatProfile, LipsyncProcessorOptions, LipsyncEnvelopeOptions, LipsyncMeshBinding, } from "./naturalness/types.js";
|
|
17
17
|
export { MHA_PROFILE, mhaChannelIndex } from "./naturalness/profiles/mha.js";
|
|
18
18
|
export { MHA_LIMIT_DRIVERS, applyMhaLimits, MHA_RECOMMENDED_GAINS, createMhaGainMask, MHA_EYE_CHANNEL_INDICES, symmetrizeMhaMouth, } from "./mhaLimitDrivers.js";
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -37,4 +37,3 @@ export { createLipsyncProcessor, getLipsyncProfile, } from "./naturalness/proces
|
|
|
37
37
|
export { MHA_PROFILE, mhaChannelIndex } from "./naturalness/profiles/mha.js";
|
|
38
38
|
// Flat MHA convenience wrappers over the profile (piecemeal use)
|
|
39
39
|
export { MHA_LIMIT_DRIVERS, applyMhaLimits, MHA_RECOMMENDED_GAINS, createMhaGainMask, MHA_EYE_CHANNEL_INDICES, symmetrizeMhaMouth, } from "./mhaLimitDrivers.js";
|
|
40
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -28,10 +28,12 @@ export interface BlendshapeMappingConfig {
|
|
|
28
28
|
*/
|
|
29
29
|
inputFormat: BlendshapeFormat;
|
|
30
30
|
/**
|
|
31
|
-
* Output format for application
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* -
|
|
31
|
+
* Output format for application. Without a `mapper`, only a passthrough of
|
|
32
|
+
* the same format is built in (arkit -> arkit, mha -> mha); any other pair
|
|
33
|
+
* throws. There is no built-in ARKit <-> MetaHuman conversion.
|
|
34
|
+
* - arkit: 61-element ARKit format
|
|
35
|
+
* - mha: 251-element MetaHuman format
|
|
36
|
+
* - custom: your `mapper` decides
|
|
35
37
|
*/
|
|
36
38
|
outputFormat: BlendshapeFormat;
|
|
37
39
|
/**
|
|
@@ -61,4 +63,3 @@ export declare const PRESET_MAPPINGS: {
|
|
|
61
63
|
readonly outputFormat: "mha";
|
|
62
64
|
};
|
|
63
65
|
};
|
|
64
|
-
//# sourceMappingURL=mappingTypes.d.ts.map
|
|
@@ -30,7 +30,7 @@ export const METAHUMAN_ORDER_251 = [
|
|
|
30
30
|
"CTRL_expressions_earUpL", // 8
|
|
31
31
|
"CTRL_expressions_earUpR", // 9
|
|
32
32
|
// ============================================================================
|
|
33
|
-
// EYES (
|
|
33
|
+
// EYES (33 blendshapes)
|
|
34
34
|
// ============================================================================
|
|
35
35
|
"CTRL_expressions_eyeBlinkL", // 10 - 🔑 KEY
|
|
36
36
|
"CTRL_expressions_eyeBlinkR", // 11 - 🔑 KEY
|
|
@@ -77,7 +77,7 @@ export const METAHUMAN_ORDER_251 = [
|
|
|
77
77
|
"CTRL_expressions_eyelashesUpOUTL", // 49
|
|
78
78
|
"CTRL_expressions_eyelashesUpOUTR", // 50
|
|
79
79
|
// ============================================================================
|
|
80
|
-
// JAW (
|
|
80
|
+
// JAW (14 blendshapes)
|
|
81
81
|
// ============================================================================
|
|
82
82
|
"CTRL_expressions_jawBack", // 51
|
|
83
83
|
"CTRL_expressions_jawChinCompressL", // 52
|
|
@@ -94,7 +94,7 @@ export const METAHUMAN_ORDER_251 = [
|
|
|
94
94
|
"CTRL_expressions_jawOpenExtreme", // 63
|
|
95
95
|
"CTRL_expressions_jawRight", // 64 - 🔑 KEY
|
|
96
96
|
// ============================================================================
|
|
97
|
-
// MOUTH (
|
|
97
|
+
// MOUTH (128 blendshapes) - Most important for lipsync!
|
|
98
98
|
// ============================================================================
|
|
99
99
|
"CTRL_expressions_mouthCheekBlowL", // 65
|
|
100
100
|
"CTRL_expressions_mouthCheekBlowR", // 66
|
|
@@ -242,7 +242,7 @@ export const METAHUMAN_ORDER_251 = [
|
|
|
242
242
|
"CTRL_expressions_neckThroatInhale", // 205
|
|
243
243
|
"CTRL_expressions_neckThroatUp", // 206
|
|
244
244
|
// ============================================================================
|
|
245
|
-
// NOSE (
|
|
245
|
+
// NOSE (12 blendshapes)
|
|
246
246
|
// ============================================================================
|
|
247
247
|
"CTRL_expressions_noseNasolabialDeepenL", // 207
|
|
248
248
|
"CTRL_expressions_noseNasolabialDeepenR", // 208
|
|
@@ -311,8 +311,8 @@ export const METAHUMAN_CATEGORIES = {
|
|
|
311
311
|
},
|
|
312
312
|
eyes: {
|
|
313
313
|
start: 10,
|
|
314
|
-
end:
|
|
315
|
-
count:
|
|
314
|
+
end: 42,
|
|
315
|
+
count: 33,
|
|
316
316
|
},
|
|
317
317
|
eyelashes: {
|
|
318
318
|
start: 43,
|
|
@@ -326,8 +326,8 @@ export const METAHUMAN_CATEGORIES = {
|
|
|
326
326
|
},
|
|
327
327
|
mouth: {
|
|
328
328
|
start: 65,
|
|
329
|
-
end:
|
|
330
|
-
count:
|
|
329
|
+
end: 192,
|
|
330
|
+
count: 128,
|
|
331
331
|
},
|
|
332
332
|
neck: {
|
|
333
333
|
start: 193,
|
|
@@ -429,4 +429,3 @@ export function formatMetaHumanBlendshapesForLogging(values, threshold = 0.01, m
|
|
|
429
429
|
activeCount: activeList.length,
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
|
-
//# sourceMappingURL=metahumanOrder251.js.map
|
|
@@ -21,4 +21,3 @@ export interface LipsyncProcessor {
|
|
|
21
21
|
tick(frame: Float32Array | null, deltaSeconds: number, bindings: LipsyncMeshBinding[]): void;
|
|
22
22
|
}
|
|
23
23
|
export declare function createLipsyncProcessor(formatOrProfile: LipsyncFormat | LipsyncFormatProfile, options?: LipsyncProcessorOptions): LipsyncProcessor;
|
|
24
|
-
//# sourceMappingURL=processor.d.ts.map
|
|
@@ -53,6 +53,10 @@ export function createLipsyncProcessor(formatOrProfile, options = {}) {
|
|
|
53
53
|
const releaseTau = envelope === false ? 0 : envelope.release ?? 0.18;
|
|
54
54
|
// Scratch state
|
|
55
55
|
const work = new Float32Array(dim);
|
|
56
|
+
// Envelope-weighted output. Kept apart from `work` (the shaped frame) so a
|
|
57
|
+
// silent tick scales the stored frame once, not the previous output again —
|
|
58
|
+
// which compounded and closed the mouth ~5x faster than `release`.
|
|
59
|
+
const out = new Float32Array(dim);
|
|
56
60
|
let last = null;
|
|
57
61
|
let env = envelope === false ? 1 : 0;
|
|
58
62
|
const shape = (src) => {
|
|
@@ -90,10 +94,9 @@ export function createLipsyncProcessor(formatOrProfile, options = {}) {
|
|
|
90
94
|
if (!last)
|
|
91
95
|
return null;
|
|
92
96
|
if (envelope !== false && env < 1) {
|
|
93
|
-
// weight the scratch in place (last === work)
|
|
94
97
|
for (let i = 0; i < dim; i++)
|
|
95
|
-
|
|
96
|
-
return
|
|
98
|
+
out[i] = last[i] * env;
|
|
99
|
+
return out;
|
|
97
100
|
}
|
|
98
101
|
return last;
|
|
99
102
|
};
|
|
@@ -159,4 +162,3 @@ export function createLipsyncProcessor(formatOrProfile, options = {}) {
|
|
|
159
162
|
},
|
|
160
163
|
};
|
|
161
164
|
}
|
|
162
|
-
//# sourceMappingURL=processor.js.map
|
|
@@ -4,4 +4,3 @@ export declare const MHA_RECOMMENDED_GAIN_TABLE: Record<string, number>;
|
|
|
4
4
|
export declare const MHA_PROFILE: LipsyncFormatProfile;
|
|
5
5
|
/** Short channel name → MHA-251 frame index (e.g. "jawOpen" → 62). */
|
|
6
6
|
export declare function mhaChannelIndex(shortName: string): number | undefined;
|
|
7
|
-
//# sourceMappingURL=mha.d.ts.map
|