Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

2.7 KB
Raw Blame
// English labels for the Chinese scenario tags the daemon voice catalogs ship with.
// Unknown tags fall back to the original text so new catalog entries still render.
const voiceScenarioEnglish: Readonly<Record<string, string>> = {
  上海话: 'Shanghainese',
  中性: 'Neutral',
  中文: 'Chinese',
  乡土故事: 'Folk storytelling',
  二次元: 'Anime',
  低沉: 'Deep',
  俄语男声: 'Russian male',
  北京话: 'Beijing dialect',
  南京话: 'Nanjing dialect',
  叙事: 'Narrative',
  可爱小暴躁: 'Cute and feisty',
  四川话: 'Sichuanese',
  均衡: 'Balanced',
  多语种: 'Multilingual',
  '多语种 2.0': 'Multilingual 2.0',
  天津话: 'Tianjin dialect',
  广告配音: 'Commercial voiceover',
  德语青年: 'German young adult',
  意大利男声: 'Italian male',
  戏感张力: 'Dramatic',
  成熟御姐: 'Mature female',
  拉美女声: 'Latin American female',
  撒娇搞怪: 'Playful',
  教育场景: 'Education',
  新闻主持: 'News anchor',
  新闻播报: 'News broadcast',
  方言: 'Dialects',
  日语少女: 'Japanese young female',
  明快: 'Bright',
  智能助手: 'Assistant',
  有声阅读: 'Audiobook',
  柔和: 'Soft',
  沉稳: 'Steady',
  沉稳睿智老者: 'Wise elder',
  沙哑豪迈: 'Raspy and bold',
  法语青年: 'French young adult',
  洪亮热血: 'Loud and passionate',
  活泼萝莉: 'Lively girl',
  清晰: 'Clear',
  温暖: 'Warm',
  温柔叙事: 'Gentle narration',
  温顺乖巧: 'Sweet and gentle',
  特色音色: 'Character voices',
  率性帅气: 'Cool and casual',
  甜美少女: 'Sweet young female',
  甜软亲切: 'Soft and friendly',
  电影质感美语: 'Cinematic American English',
  知性温柔: 'Graceful and gentle',
  知识讲解: 'Explainer',
  磁性沉稳: 'Deep and steady',
  粤语: 'Cantonese',
  美语青年: 'American young adult',
  聪慧少年: 'Bright teen',
  自然: 'Natural',
  自然设计师: 'Natural, designer',
  舒缓助眠: 'Calm, sleep',
  舒缓自然: 'Calm and natural',
  萌系萝莉: 'Cute girl',
  表现力: 'Expressive',
  表达: 'Expressive',
  西班牙男声: 'Spanish male',
  视频配音: 'Video voiceover',
  '角色扮演 2.0': 'Role-play 2.0',
  调皮童声: 'Playful child',
  '豆包 1.0': 'Doubao 1.0',
  '豆包 2.0': 'Doubao 2.0',
  足球解说: 'Sports commentary',
  通用场景: 'General',
  闽南语: 'Hokkien',
  阳光男声: 'Upbeat male',
  阳光积极: 'Upbeat',
  陕西话: 'Shaanxi dialect',
  韩语女声: 'Korean female'
};

export function voiceScenarioLabel(scenario: string, l: (zh: string, en: string) => string): string {
  const english = voiceScenarioEnglish[scenario];
  return english === undefined ? scenario : l(scenario, english);
}