Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/components/ui/BabylonViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ const BabylonViewer = forwardRef<BabylonViewerRef, BabylonViewerProps>(
1: 'KQ-default_420.glb',
2: 'HT-default_214.glb',
3: 'FNN-default_296.glb',
4: 'KL-default_214.glb',
5: 'NXD-default_321.glb',
}

const characterFile = character_index_file_name_mapping[characterIndex]
Expand Down
10 changes: 10 additions & 0 deletions app/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ export const CHARACTER_MODELS = [
name: 'FNN-default',
preview: '/img/preview/character/FNN-default.png',
},
{
id: 'character5',
name: 'KL-default',
preview: '/img/preview/character/KL-default.png',
},
{
id: 'character6',
name: 'NXD-default',
preview: '/img/preview/character/NXD-default.png',
},
]
// TTS-specific voice options
// NOTE: This is now used as fallback only. Voice options are fetched dynamically from API in useTTSVoices hook
Expand Down
3 changes: 3 additions & 0 deletions app/i18n/locales/en/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"noRunningStreamingClientFound": "No running streaming client found",
"noRunningAssetManagerFound": "No running asset manager found",
"algorithmTimedOutDuringStreaming": "Algorithm timed out during streaming",
"algorithmTimedOutDuringHealthCheck": "Algorithm timed out during health check",
"algorithmTimedOutDuringHealthCheckStreamReady": "Algorithm timed out during health check waiting for stream ready",
"algorithmTimedOutDuringHealthCheckStreamEnd": "Algorithm timed out during health check waiting for stream end",
"incorrectStreamNumber": "Algorithm streaming returned incorrect number of streams, expected 3 streams, actually returned",
"streamingBufferEvaluationFailed": "Streaming buffer evaluation failed",
"configurationUpdateFailed": "3DACConfiguration update failed",
Expand Down
7 changes: 5 additions & 2 deletions app/i18n/locales/en/fronted.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"delete": "Delete",
"edit": "Edit",
"editKey": "Edit KEY",
"close": "Close"
"close": "Close",
"loading": "Loading"
},
"loading": {
"title": "DIGITAL LIFE PROJECT",
Expand Down Expand Up @@ -157,7 +158,9 @@
"Ani-default": "Ani-default",
"KQ-default": "KQ-default",
"HT-default": "HT-default",
"FNN-default": "FNN-default"
"FNN-default": "FNN-default",
"KL-default": "KL-default",
"NXD-default": "NXD-default"
},
"scenes": {
"Seabed": "Seabed",
Expand Down
3 changes: 3 additions & 0 deletions app/i18n/locales/zh/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"noRunningStreamingClientFound": "没有正在运行的流式客户端",
"noRunningAssetManagerFound": "没有正在运行的资产管理器",
"algorithmTimedOutDuringStreaming": "算法在流式传输期间超时",
"algorithmTimedOutDuringHealthCheck": "算法在健康检查期间超时",
"algorithmTimedOutDuringHealthCheckStreamReady": "算法在健康检查期间等待流就绪超时",
"algorithmTimedOutDuringHealthCheckStreamEnd": "算法在健康检查期间等待流结束超时",
"incorrectStreamNumber": "算法流式传输返回的流数不正确,期望3个流,实际返回数量",
"streamingBufferEvaluationFailed": "流式传输缓冲区评估失败",
"configurationUpdateFailed": "3DAC配置同步失败",
Expand Down
7 changes: 5 additions & 2 deletions app/i18n/locales/zh/fronted.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"delete": "删除",
"edit": "编辑",
"editKey": "编辑密钥",
"close": "关闭"
"close": "关闭",
"loading": "加载中"
},
"loading": {
"title": "数字生命计划",
Expand Down Expand Up @@ -158,7 +159,9 @@
"Ani-default": "Ani-默认",
"KQ-default": "刻晴-默认",
"HT-default": "胡桃-默认",
"FNN-default": "芙宁娜-默认"
"FNN-default": "芙宁娜-默认",
"KL-default": "可莉-默认",
"NXD-default": "纳西妲-默认"
},
"scenes": {
"Seabed": "海底世界",
Expand Down
12 changes: 8 additions & 4 deletions app/library/babylonjs/runtime/fsm/machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,11 @@ export class StateMachine {
} else {
if (currentTime - requestTime > orchestratorTimeout * 1000) {
Logger.error(
i18n.t('fsm.algorithmTimedOutDuringStreaming', { ns: 'client' }),
i18n.t('fsm.algorithmTimedOutDuringHealthCheckStreamReady', {
ns: 'client',
}),
)
await this._handleAlgorithmGenerationFailure()
await this._switchState(States.EXIT)
return
}
await new Promise(resolve =>
Expand All @@ -806,9 +808,11 @@ export class StateMachine {
} else {
if (currentTime - readyTime > orchestratorTimeout * 1000) {
Logger.error(
i18n.t('fsm.algorithmTimedOutDuringStreaming', { ns: 'client' }),
i18n.t('fsm.algorithmTimedOutDuringHealthCheckStreamEnd', {
ns: 'client',
}),
)
await this._handleAlgorithmGenerationFailure()
await this._switchState(States.EXIT)
return
}
await new Promise(resolve =>
Expand Down
Binary file added public/characters/KL-default_214.glb
Binary file not shown.
Binary file added public/characters/NXD-default_321.glb
Binary file not shown.
Binary file added public/img/model/KL-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/model/NXD-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/preview/character/KL-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/preview/character/NXD-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.