Fast, accurate OCR with correctness assessment.
import type { TranslationShape } from '../types';
const zhCN = {
title: '我的音色',
description: '保存后可在语音合成中重复使用。',
accessLoading: '正在校验自定义音色权限…',
accessDenied: '当前账号未获自定义音色功能权限,请联系管理员开通。',
add: '新增音色',
uploadTitle: '保存一条新音色',
dialogDescription: '上传一段清晰的人声音频,系统会自动转换为标准 WAV,当前创建免费。',
nameLabel: '音色名称',
namePlaceholder: '例如:客服女声',
fileLabel: '参考音频',
chooseFile: '选择音频文件',
uploadSource: '上传文件',
recordSource: '直接录制',
startRecording: '开始录制',
stopRecording: '停止录制',
finishRecording: '完成录制',
pauseRecording: '暂停',
resumeRecording: '继续',
recordingPaused: '已暂停',
recordAgain: '重新录制',
useRecording: '使用这段录音',
recordingSelected: '已选择录音',
recordingWaveform: '实时录音声纹',
recording: '录音中',
processingRecording: '正在处理录音…',
recordingHint: '请允许浏览器访问麦克风,最长录制 50 秒。',
recordingFailed: '录音处理失败,请重试或改用其他音频文件。',
unsupportedAudio: '无法识别这段音频,请更换文件或直接录制。',
invalidDuration: '音频时长为 {{duration}} 秒,不能超过 {{max}} 秒。',
upload: '保存音色',
uploading: '保存中…',
freeNotice: '当前免费创建;后续如启用按大小计费,将以提交时的策略为准,已创建音色不会追溯收费。',
listTitle: '已保存音色',
countNoun: '音色',
loading: '正在加载音色…',
loadFailed: '音色列表加载失败,请刷新重试。',
empty: '还没有保存的音色',
emptyDescription: '上传一段清晰的人声,保存后可在体验中心重复使用。',
ready: '可使用',
identifierLabel: '标识',
size: '文件大小',
createdAt: '创建时间',
status: '状态',
actions: '操作',
preview: '试听',
previewLoading: '加载中…',
delete: '删除',
deleteTitle: '删除这条音色?',
deleteDescription: '删除后将无法在语音合成中继续使用,历史调用记录不受影响。',
cancel: '取消',
confirmDelete: '确认删除',
uploadSuccess: '音色已保存',
deleteSuccess: '音色已删除',
uploadFailed: '音色保存失败',
deleteFailed: '音色删除失败',
invalidFile: '请选择音频文件。',
invalidFileSize: '转换后的音频不能超过 5 MiB。',
invalidName: '请输入音色名称。',
fileSize: '{{size}}',
identifier: '标识:{{id}}',
} as const;
const enUS = {
title: 'My Voices',
description: 'Save voices for repeated TTS use.',
accessLoading: 'Checking custom voice access…',
accessDenied: 'This account does not have custom voice access. Contact an administrator.',
add: 'Add voice',
uploadTitle: 'Save a new voice',
dialogDescription:
'Upload a clear voice recording. It will be converted to standard WAV. Creation is currently free.',
nameLabel: 'Voice name',
namePlaceholder: 'For example: Support voice',
fileLabel: 'Reference audio',
chooseFile: 'Choose an audio file',
uploadSource: 'Upload file',
recordSource: 'Record',
startRecording: 'Start recording',
stopRecording: 'Stop recording',
finishRecording: 'Finish recording',
pauseRecording: 'Pause',
resumeRecording: 'Resume',
recordingPaused: 'Paused',
recordAgain: 'Record again',
useRecording: 'Use this recording',
recordingSelected: 'Recording selected',
recordingWaveform: 'Live recording waveform',
recording: 'Recording',
processingRecording: 'Processing recording…',
recordingHint: 'Allow microphone access. Recordings can be up to 50 seconds.',
recordingFailed: 'Could not process the recording. Try again or upload another audio file.',
unsupportedAudio: 'This audio could not be recognized. Choose another file or record directly.',
invalidDuration: 'The audio is {{duration}} seconds long and cannot exceed {{max}} seconds.',
upload: 'Save voice',
uploading: 'Saving…',
freeNotice:
'Creation is currently free. If size-based pricing is enabled later, the submission-time policy applies and existing voices are not charged retroactively.',
listTitle: 'Saved voices',
countNoun: 'voices',
loading: 'Loading voices…',
loadFailed: 'Could not load voices. Refresh and try again.',
empty: 'No saved voices',
emptyDescription: 'Upload a clear voice recording to reuse it in the Playground.',
ready: 'Ready',
identifierLabel: 'Identifier',
size: 'File size',
createdAt: 'Created',
status: 'Status',
actions: 'Actions',
preview: 'Preview',
previewLoading: 'Loading…',
delete: 'Delete',
deleteTitle: 'Delete this voice?',
deleteDescription:
'It will no longer be available for TTS. Historical call records are unaffected.',
cancel: 'Cancel',
confirmDelete: 'Delete voice',
uploadSuccess: 'Voice saved',
deleteSuccess: 'Voice deleted',
uploadFailed: 'Could not save voice',
deleteFailed: 'Could not delete voice',
invalidFile: 'Choose an audio file.',
invalidFileSize: 'The converted audio must be 5 MiB or smaller.',
invalidName: 'Enter a voice name.',
fileSize: '{{size}}',
identifier: 'ID: {{id}}',
} satisfies TranslationShape<typeof zhCN>;
/** 门户私有音色页面的双语资源。 */
export const voicesMessages = {
'zh-CN': zhCN,
'en-US': enUS,
} as const;