Falcon-Studio / web /i18n-errors.js
JusperLee's picture
Update Falcon Studio Space
ea9e96f verified
Raw History Blame Contribute Delete
5.54 kB
// Language-neutral messages received from the local model server and tracker.
export default {
'服务响应 {status}': 'Service returned HTTP {status}',
'模型加载请求失败 ({status})': 'Model load request failed ({status})',
'输出采样率不受支持:{sampleRate}': 'Unsupported output sample rate: {sampleRate}',
'网络请求失败。': 'Failed to fetch',
'未知请求类型。': 'Unknown request type.',
'当前模型使用 2 秒窗口、0.5 秒步长。': 'This model uses a 2-second window and a 0.5-second hop.',
'重置标记必须为布尔值。': 'The reset flag must be a boolean.',
'音频必须是 32000 个 16 kHz float32 采样。': 'Audio must contain 32,000 float32 samples at 16 kHz.',
'音频编码无效。': 'Invalid audio encoding.',
'音频数据无效或超出允许范围。': 'Audio contains invalid or out-of-range samples.',
'每个窗口需要 50 帧同步嘴部图像。': 'Each window requires 50 synchronized mouth frames.',
'嘴部图像大小无效。': 'Invalid mouth image size.',
'嘴部图像必须为 96×96 的 JPEG 或 PNG。': 'Mouth frames must be 96×96 JPEG or PNG images.',
'无法读取嘴部图像。': 'Unable to read a mouth frame.',
'音频时间戳无效。': 'Invalid audio timestamp.',
'模型输出长度错误或包含非有限数值。': 'The model returned an invalid output length or non-finite values.',
'未知模型版本。': 'Unknown model variant.',
'模型加载中,请等待完成后再切换。': 'Wait for the model to finish loading before switching.',
'请先停止所有分离会话,再切换模型。': 'Stop all separation sessions before switching models.',
'尚未安装 {model} 权重:models/{checkpoint}': 'Weights for {model} are not installed: models/{checkpoint}',
'模型仍在加载,请稍后重试。': 'The model is still loading. Try again shortly.',
'另一个窗口正在使用模型,请关闭重复会话。': 'Another window is using the model. Close the duplicate session.',
'加载请求过大。': 'The load request is too large.',
'加载请求必须为 JSON 对象。': 'The load request must be a JSON object.',
'请求必须是 JSON 对象。': 'The request must be a JSON object.',
'请求 ID 无效。': 'Invalid request ID.',
'请求 ID 超出精确整数范围。': 'The request ID exceeds the safe integer range.',
'模型忙,请跳过此窗口后重试。': 'The model is busy. Skip this window and try again.',
'推理失败,请查看启动终端中的错误信息。': 'Inference failed. Check the error in the launch terminal.',
'目标已暂停,请点击「重新捕捉」选择当前说话者。': 'Tracking is paused. Click Reacquire to select the current speaker.',
'目标已离开画面,请点击「重新捕捉」。': 'The speaker has left the frame. Click Reacquire.',
'未检测到清晰嘴部,请正对摄像头。': 'No clear mouth detected. Face the camera.',
'检测到多个人脸,无法确认目标,请点击「重新捕捉」。': 'Several faces are visible and the target is unclear. Click Reacquire.',
'检测到可能的目标,正在确认…': 'Possible target found. Confirming…',
'目标位置变化较大,稳定后将自动确认,或点击「重新捕捉」。': 'The target moved significantly. It will be confirmed once stable, or click Reacquire.',
'目标位置变化较大,请点击「重新捕捉」确认目标。': 'The target moved significantly. Click Reacquire to confirm the speaker.',
'等待目标面部。': 'Waiting for a face.',
'正在加载本地嘴部跟踪模型…': 'Loading the local mouth tracking model…',
'自动跟踪无法加载,请重试或切换手动模式。{error}': 'Unable to load automatic tracking. Retry or switch to manual mode. {error}',
'摄像头帧尺寸无效。': 'Invalid camera frame dimensions.',
'自动跟踪失败,请重新捕捉或切换手动模式。{error}': 'Automatic tracking failed. Reacquire or switch to manual mode. {error}',
'嘴部图像必须是 uint8 NumPy 数组。': 'Mouth frames must be a uint8 NumPy array.',
'需要 {count} 帧 96×96 灰度嘴部图像;实际形状为 {shape}。': 'Expected {count} grayscale 96×96 mouth crops; got {shape}.',
'模型版本必须为 small 或 big。': "variant must be 'small' or 'big'",
'计算设备必须为 auto、cpu 或 mps。': "device must be 'auto', 'cpu', or 'mps'",
'找不到 Falcon 权重:{path}': 'Falcon checkpoint not found: {path}',
'{variant} 模型架构不匹配:{architecture}': 'Unexpected architecture for {variant}: {architecture}',
'不支持的视频模型架构:{architecture}': 'Unsupported video architecture: {architecture}',
'权重必须同时包含 audio_model 和 video_model 参数。': 'Checkpoint must contain both audio_model and video_model weights.',
'当前 Python 进程无法使用 Apple Metal/MPS,请选择 CPU。': 'Apple Metal/MPS is unavailable in this Python process; choose CPU.',
'Metal 预热失败,已使用 CPU:{error}': 'Metal warmup unavailable; using CPU: {error}',
'Falcon 输出无效,本窗口未播放。': 'Falcon produced invalid output; this window was not played.',
'音频需要为 16 kHz float32 单声道,形状为 ({samples},)。': 'Expected float32 mono audio shape ({samples},) at 16 kHz.',
'音频中包含非有限数值。': 'Audio contains non-finite samples.',
'Falcon 模型尚未加载完成。': 'Falcon model has not finished loading.',
};