local LSM = LibStub and LibStub('LibSharedMedia-3.0', true)
if not LSM then return end

local PACK_NAME = 'EXBOSS German TTS Pack'
local sounds = {
    ['1'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\countdown-1.mp3',
    ['2'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\countdown-2.mp3',
    ['3'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\countdown-3.mp3',
    ['4'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\countdown-4.mp3',
    ['5'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\countdown-5.mp3',
    ['54321'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown.mp3',
    ['5秒后AOE'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\aoe_in_5s.mp3',
    ['AOE'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\aoe.mp3',
    ['Boss易伤'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\boss_vulnerable.mp3',
    ['Boss狂暴'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\enrage.mp3',
    ['countdown-1'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-1.mp3',
    ['countdown-2'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-2.mp3',
    ['countdown-3'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-3.mp3',
    ['countdown-4'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-4.mp3',
    ['countdown-5'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-5.mp3',
    ['传递'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\pass_mechanic.mp3',
    ['你是白色'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\you_white.mp3',
    ['你是黑色'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\you_black.mp3',
    ['你被点名'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\you_are_targeted.mp3',
    ['倒数1'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-1.mp3',
    ['倒数2'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-2.mp3',
    ['倒数3'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-3.mp3',
    ['倒数4'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-4.mp3',
    ['倒数5'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\countdown-5.mp3',
    ['停止施法'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\stop_casting.mp3',
    ['冲锋'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\charge.mp3',
    ['准备AOE'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\incoming_aoe.mp3',
    ['准备AOE(断条)'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\aoe_interrupt.mp3',
    ['准备吸球'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\soak_orbs.mp3',
    ['准备引线'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\bait_line.mp3',
    ['准备打断'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\ready_interrupt.mp3',
    ['准备抓人'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\prepare_grab.mp3',
    ['准备拉人'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\pull.mp3',
    ['准备挡线'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\intercept_beam.mp3',
    ['准备接圈'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\soak_puddle.mp3',
    ['准备易伤'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\vulnerability_incoming.mp3',
    ['准备消层'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\reset_stacks.mp3',
    ['准备点名'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\incoming_target.mp3',
    ['准备跑圈'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\run_puddles.mp3',
    ['准备踩箭'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\intercept_arrows.mp3',
    ['准备进圈'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\step_puddle.mp3',
    ['准备连线'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\watch_tether.mp3',
    ['准备追人'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\fixate.mp3',
    ['准备送球'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\deliver_orb.mp3',
    ['准备钩人'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\hook.mp3',
    ['准备集合'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\ready_stack.mp3',
    ['准备驱散'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\dispel.mp3',
    ['出出出'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\get_out_quickly.mp3',
    ['出去放水'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\move_out_drop.mp3',
    ['击飞'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\knockback.mp3',
    ['分散'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\spread.mp3',
    ['分裂'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\split.mp3',
    ['分身'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\clones.mp3',
    ['刷新'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\spawning.mp3',
    ['勾BOSS'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\hook_boss.mp3',
    ['卡视野'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\line_of_sight.mp3',
    ['去接小怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\pickup_adds.mp3',
    ['去撞分身'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\illusions.mp3',
    ['召唤分身'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\summon_clones.mp3',
    ['召唤大怪'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\summon_big_add.mp3',
    ['召唤小怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\adds_spawning.mp3',
    ['吐息'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\breath.mp3',
    ['吸收'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\absorb.mp3',
    ['吸收治疗'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\heal_absorb.mp3',
    ['吸收盾'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\absorb_shield.mp3',
    ['唤醒小怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\awaken_adds.mp3',
    ['图腾'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\totem.mp3',
    ['圈住电水'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\contain_lightning_water.mp3',
    ['坦克击退'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\tank_knockback.mp3',
    ['坦克击飞'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\tank_knockback_single.mp3',
    ['坦克尖刺'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\tank_hit.mp3',
    ['坦克承伤'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\tank_active.mp3',
    ['定身'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\rooted.mp3',
    ['宝珠'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\orb.mp3',
    ['射线点你'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\beam_on_you.mp3',
    ['小心冲击波'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\shockwave.mp3',
    ['小心击飞'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\knockup.mp3',
    ['小心炸弹'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_bombs.mp3',
    ['小心脚下'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\watch_feet.mp3',
    ['小心自爆'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_explosion.mp3',
    ['小怪快打'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\kill_adds_quickly.mp3',
    ['引导位置'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\bait_position.mp3',
    ['强化奶骑'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\emp_holy.mp3',
    ['强化惩戒骑'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\emp_ret.mp3',
    ['强化防骑'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\emp_prot.mp3',
    ['快分散'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\spread_quickly.mp3',
    ['快卡视角'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\los.mp3',
    ['快去消水'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\clear_puddles.mp3',
    ['快打宝珠'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\kill_orb_quickly.mp3',
    ['快打断'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\interrupt_quickly.mp3',
    ['快找光柱'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\light_pillar.mp3',
    ['快救人'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\save_quickly.mp3',
    ['快破盾'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\break_shield.mp3',
    ['快跑'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\run_quickly.mp3',
    ['快跑！你被点名'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\run_targeted.mp3',
    ['快踩陷阱'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\trigger_trap.mp3',
    ['快躲开'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dodge_quickly.mp3',
    ['快进罩子'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\dome.mp3',
    ['打断施法'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\interrupt_cast.mp3',
    ['打破'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\break_it.mp3',
    ['打背面'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\attack_behind.mp3',
    ['抓握'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\grab.mp3',
    ['护盾'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\shield.mp3',
    ['拉断连线'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\break_tether.mp3',
    ['持续AOE'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\constant_aoe.mp3',
    ['持续伤害'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\constant_damage.mp3',
    ['控制小怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\cc_adds.mp3',
    ['控断钢条'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\cc_interrupt.mp3',
    ['放水'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\drop_pool_single.mp3',
    ['救人'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\rescue_player.mp3',
    ['易伤'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\vulnerable.mp3',
    ['易伤爆发'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\burst.mp3',
    ['易伤结束'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\vulnerability_ends.mp3',
    ['注意减伤'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\defensives.mp3',
    ['注意击退'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\watch_knockback.mp3',
    ['注意击飞'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\watch_knockup_2.mp3',
    ['注意吐息'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_breath.mp3',
    ['注意大圈'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_big_circle.mp3',
    ['注意大怪'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_big_add.mp3',
    ['注意头前'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\watch_frontal.mp3',
    ['注意射线'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_beams.mp3',
    ['注意挡球'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\intercept_orbs.mp3',
    ['注意控断'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\control_or_interrupt.mp3',
    ['注意治疗'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\healing.mp3',
    ['注意消球'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\clear_orbs.mp3',
    ['注意点名'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\targeted.mp3',
    ['注意箭矢'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_arrows.mp3',
    ['注意躲圈'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\dodge_puddles.mp3',
    ['注意躲波'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_waves.mp3',
    ['注意躲避'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\watch_dodge.mp3',
    ['注意躲风'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_wind.mp3',
    ['注意钩人'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\watch_hook.mp3',
    ['消除连线'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\clear_tether.mp3',
    ['清除'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\cleanse.mp3',
    ['激怒'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\enrage_single.mp3',
    ['炸弹'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\bomb.mp3',
    ['点名'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\targeted_single.mp3',
    ['点名头前'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\frontal_on_you.mp3',
    ['点名放水'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\drop_pool.mp3',
    ['点名消线'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\clear_line.mp3',
    ['特殊技能'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\special.mp3',
    ['疾病'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\disease.mp3',
    ['白色'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\white.mp3',
    ['目标是你'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\you_are_the_target.mp3',
    ['目标转换'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\switch_target.mp3',
    ['瞄准音符'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\aim_notes.mp3',
    ['移动'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\move.mp3',
    ['获得增益'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\gain_buff.mp3',
    ['蓝色'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\blue.mp3',
    ['补给协议'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\supply_protocol.mp3',
    ['裂隙点你'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\rift_on_you.mp3',
    ['诅咒'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\curse.mp3',
    ['诅诅'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\curse.mp3',
    ['贴边放水'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\drop_pool_edge.mp3',
    ['超大AOE'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\massive_aoe.mp3',
    ['跳跃'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\jump.mp3',
    ['躲圈'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dodge_single_circle.mp3',
    ['躲地板'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dodge_floor.mp3',
    ['躲射线'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dodge_beams.mp3',
    ['躲开冲锋'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dodge_charge.mp3',
    ['躲开头前'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\dodge_frontal.mp3',
    ['躲球'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dodge_orbs.mp3',
    ['躲风'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dodge_wind.mp3',
    ['转火大怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\focus_big_add.mp3',
    ['转火小怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\focus_adds.mp3',
    ['转阶段'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\phase_transition.mp3',
    ['进入'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\enter.mp3',
    ['进攻驱散'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\purge.mp3',
    ['远离'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\run_away.mp3',
    ['远离BOSS'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\away_boss.mp3',
    ['远离人群'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\away_from_group.mp3',
    ['远离大怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\away_big_add.mp3',
    ['连线'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\tether.mp3',
    ['连线点你'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\tether_on_you.mp3',
    ['连续躲圈'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\dodge_circles.mp3',
    ['追人'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\chasing.mp3',
    ['锁链'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\chains.mp3',
    ['阶段转换'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\phase_transition_single.mp3',
    ['陷阱'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\trap.mp3',
    ['集合分摊'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\soak.mp3',
    ['集合放圈'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\stack_drop.mp3',
    ['集合移动'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\stack_and_move.mp3',
    ['集合站位'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\stack_here.mp3',
    ['靠近'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\move_close.mp3',
    ['靠近BOSS'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\move_to_boss.mp3',
    ['靠近分散'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\close_spread.mp3',
    ['靠近连线'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\move_to_tether.mp3',
    ['音效_Glass'] = 'Interface\AddOns\EXBoss\Sound\12.0_Warning0.ogg',
    ['音效_Info'] = 'Interface\AddOns\EXBoss\Sound\12.0_Warning1.ogg',
    ['音效_叮咚'] = 'Interface\AddOns\EXBoss\Sound\12.0_Warning2.ogg',
    ['风筝'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\kite.mp3',
    ['风筝小怪'] = 'Interface\\AddOns\\EXBoss_Voice_German\\Sounds\\kite_adds.mp3',
    ['驱散'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\dispel_single.mp3',
    ['黄色'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\yellow.mp3',
    ['黑色'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\black.mp3',
    ['齐射'] = 'Interface\AddOns\EXBoss_Voice_German\Sounds\volley.mp3',
}

-- English label translations (matching EXwindtools_EXboss_EnglishPatch)
local ENGLISH_LABELS = {
    ['1'] = '1',
    ['2'] = '2',
    ['3'] = '3',
    ['4'] = '4',
    ['5'] = '5',
    ['5秒后AOE'] = 'AOE in five seconds',
    ['AOE'] = 'AOE',
    ['Boss易伤'] = 'Boss Vulnerability',
    ['Boss狂暴'] = 'Boss Enrage',
    ['传递'] = 'Pass',
    ['你是白色'] = 'You Are White',
    ['你是黑色'] = 'You Are Black',
    ['你被点名'] = 'You are targeted',
    ['停止施法'] = 'Stop casting',
    ['冲锋'] = 'Charge',
    ['准备AOE'] = 'Prepare AOE',
    ['准备AOE(断条)'] = 'Prepare AOE (Break)',
    ['准备吸球'] = 'Prepare Absorb Orb',
    ['准备引线'] = 'Prepare Beam',
    ['准备打断'] = 'Prepare Interrupt',
    ['准备抓人'] = 'Prepare Grab',
    ['准备拉人'] = 'Prepare Grip',
    ['准备挡线'] = 'Prepare Line Block',
    ['准备接圈'] = 'Prepare Soak',
    ['准备易伤'] = 'Vulnerability incoming',
    ['准备消层'] = 'Prepare Clear Stack',
    ['准备点名'] = 'Prepare Target',
    ['准备跑圈'] = 'Watch Circle',
    ['准备踩箭'] = 'Prepare Arrow',
    ['准备进圈'] = 'Prepare Enter Circle',
    ['准备连线'] = 'Prepare Link',
    ['准备追人'] = 'Prepare Chase',
    ['准备送球'] = 'Prepare Orb Pass',
    ['准备钩人'] = 'Prepare Hook',
    ['准备集合'] = 'Prepare Stack',
    ['准备驱散'] = 'Prepare Dispel',
    ['出出出'] = 'Get out! Get out!',
    ['出去放水'] = 'Drop Water',
    ['击飞'] = 'Knockback',
    ['分散'] = 'Spread',
    ['分裂'] = 'Split',
    ['分身'] = 'Clones',
    ['刷新'] = 'Spawning',
    ['勾BOSS'] = 'Hook boss',
    ['卡视野'] = 'Line of sight',
    ['去接小怪'] = 'Intercept Add',
    ['去撞分身'] = 'Hit Clone',
    ['召唤分身'] = 'Summon Clones',
    ['召唤大怪'] = 'Big add spawning',
    ['召唤小怪'] = 'Summon Add',
    ['吐息'] = 'Breath',
    ['吸收'] = 'Absorb',
    ['吸收治疗'] = 'Heal absorb',
    ['吸收盾'] = 'Absorb shield',
    ['唤醒小怪'] = 'Adds Spawn',
    ['图腾'] = 'Totem',
    ['圈住电水'] = 'Contain lightning water',
    ['坦克击退'] = 'Tank Knockback',
    ['坦克击飞'] = 'Tank knockback',
    ['坦克尖刺'] = 'Tank Buster',
    ['坦克承伤'] = 'Tank active',
    ['定身'] = 'Rooted',
    ['宝珠'] = 'Orb',
    ['射线点你'] = 'Beam On You',
    ['小心冲击波'] = 'Watch Shockwave',
    ['小心击飞'] = 'Watch Launch',
    ['小心炸弹'] = 'Watch bombs',
    ['小心脚下'] = 'Watch Feet',
    ['小心自爆'] = 'Watch explosion',
    ['小怪快打'] = 'Kill adds quickly',
    ['引导位置'] = 'Bait position',
    ['强化奶骑'] = 'Empower Holy Paladin',
    ['强化惩戒骑'] = 'Empower Retribution Paladin',
    ['强化防骑'] = 'Empower Protection Paladin',
    ['快分散'] = 'Spread Now',
    ['快卡视角'] = 'Fix Camera',
    ['快去消水'] = 'Clear Water',
    ['快打宝珠'] = 'Kill orb quickly',
    ['快打断'] = 'Interrupt Now',
    ['快找光柱'] = 'Find Beacon',
    ['快救人'] = 'Rescue Now',
    ['快破盾'] = 'Break Shield',
    ['快跑'] = 'Run',
    ['快跑！你被点名'] = 'Run! You are targeted',
    ['快踩陷阱'] = 'Step Trap',
    ['快躲开'] = 'Dodge quickly',
    ['快进罩子'] = 'Enter Bubble',
    ['打断施法'] = 'Interrupt cast',
    ['打破'] = 'Break it',
    ['打背面'] = 'Attack behind',
    ['抓握'] = 'Grab',
    ['护盾'] = 'Shield',
    ['拉断连线'] = 'Break Link',
    ['持续AOE'] = 'Constant AOE',
    ['持续伤害'] = 'Constant damage',
    ['控制小怪'] = 'CC Adds',
    ['控断钢条'] = 'Interrupt Add',
    ['放水'] = 'Drop pool',
    ['救人'] = 'Rescue player',
    ['易伤'] = 'Vulnerable',
    ['易伤爆发'] = 'Burst Vulnerability',
    ['易伤结束'] = 'Vulnerability ends',
    ['注意减伤'] = 'Use Defensive',
    ['注意击退'] = 'Watch Knockback',
    ['注意击飞'] = 'Watch Launch',
    ['注意吐息'] = 'Watch breath',
    ['注意大圈'] = 'Watch big circle',
    ['注意大怪'] = 'Watch big add',
    ['注意头前'] = 'Watch Frontal',
    ['注意射线'] = 'Watch beams',
    ['注意挡球'] = 'Block Orb',
    ['注意控断'] = 'Control or interrupt',
    ['注意治疗'] = 'Watch Healing',
    ['注意消球'] = 'Clear Orb',
    ['注意点名'] = 'Watch Target',
    ['注意箭矢'] = 'Watch arrows',
    ['注意躲圈'] = 'Watch Circle',
    ['注意躲波'] = 'Watch waves',
    ['注意躲避'] = 'Watch Dodge',
    ['注意躲风'] = 'Watch wind',
    ['注意钩人'] = 'Watch hook',
    ['消除连线'] = 'Clear Tether',
    ['清除'] = 'Cleanse',
    ['激怒'] = 'Enrage',
    ['炸弹'] = 'Bomb',
    ['点名'] = 'Targeted',
    ['点名头前'] = 'Target Frontal',
    ['点名放水'] = 'Target Drop Water',
    ['点名消线'] = 'Target Clear Line',
    ['特殊技能'] = 'Special Mechanic',
    ['疾病'] = 'Disease',
    ['白色'] = 'White',
    ['目标是你'] = 'You are the target',
    ['目标转换'] = 'Switch target',
    ['瞄准音符'] = 'Aim Notes',
    ['移动'] = 'Move',
    ['获得增益'] = 'Gain buff',
    ['蓝色'] = 'Blue',
    ['补给协议'] = 'Supply protocol',
    ['裂隙点你'] = 'Rift on you',
    ['诅咒'] = 'Curse',
    ['诅诅'] = 'Curse',
    ['贴边放水'] = 'Drop Pool Edge',
    ['超大AOE'] = 'Massive AOE',
    ['跳跃'] = 'Jump',
    ['躲圈'] = 'Dodge circle',
    ['躲地板'] = 'Dodge floor',
    ['躲射线'] = 'Dodge beams',
    ['躲开冲锋'] = 'Dodge charge',
    ['躲开头前'] = 'Dodge Frontal',
    ['躲球'] = 'Dodge orbs',
    ['躲风'] = 'Dodge wind',
    ['转火大怪'] = 'Switch Boss',
    ['转火小怪'] = 'Switch Add',
    ['转阶段'] = 'Phase Change',
    ['进入'] = 'Enter',
    ['进攻驱散'] = 'Purge',
    ['远离'] = 'Run away',
    ['远离BOSS'] = 'Away Boss',
    ['远离人群'] = 'Away from group',
    ['远离大怪'] = 'Away Add',
    ['连线'] = 'Tether',
    ['连线点你'] = 'Tether on you',
    ['连续躲圈'] = 'Dodge Circles',
    ['追人'] = 'Chasing',
    ['锁链'] = 'Chains',
    ['阶段转换'] = 'Phase transition',
    ['陷阱'] = 'Trap',
    ['集合分摊'] = 'Stack Share',
    ['集合放圈'] = 'Stack Drop Circle',
    ['集合移动'] = 'Stack and move',
    ['集合站位'] = 'Stack here',
    ['靠近'] = 'Move close',
    ['靠近BOSS'] = 'Move To Boss',
    ['靠近分散'] = 'Spread Close',
    ['靠近连线'] = 'Move to tether',
    ['音效_Glass'] = 'Glass',
    ['音效_Info'] = 'Info',
    ['音效_叮咚'] = 'Ding',
    ['风筝'] = 'Kite',
    ['风筝小怪'] = 'Kite Add',
    ['驱散'] = 'Dispel',
    ['黄色'] = 'Yellow',
    ['黑色'] = 'Black',
    ['齐射'] = 'Volley',
}

-- Register under our own pack name (Chinese + English labels)
for label, path in pairs(sounds) do
    LSM:Register('sound', '[' .. PACK_NAME .. ']' .. label, path)
    -- Also register with English label so it works with EnglishPatch
    local enLabel = ENGLISH_LABELS[label]
    if enLabel then
        LSM:Register('sound', '[' .. PACK_NAME .. ']' .. enLabel, path)
    end
end

-- Welcome Screen
local function ShowWelcomeScreen()
    local frame = CreateFrame("Frame", "TTSGermanWelcomeFrame", UIParent, "BackdropTemplate")
    frame:SetSize(400, 200)
    frame:SetPoint("CENTER")
    frame:SetFrameStrata("DIALOG")
    
    frame:SetBackdrop({
        bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
        edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
        tile = true, tileSize = 32, edgeSize = 32,
        insets = { left = 8, right = 8, top = 8, bottom = 8 }
    })
    
    local title = frame:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
    title:SetPoint("TOP", 0, -20)
    title:SetText("EXBOSS German TTS Pack")
    
    local desc = frame:CreateFontString(nil, "OVERLAY", "GameFontHighlightMedium")
    desc:SetPoint("TOP", title, "BOTTOM", 0, -20)
    desc:SetWidth(360)
    desc:SetText("Willkommen! Um das Voice Pack zu konfigurieren, gib |cff00ff00/exboss|r im Chat ein und wähle unter 'Voice Pack' den Eintrag |cff00ff00EXBOSS German TTS Pack|r aus.")
    
    local btn = CreateFrame("Button", nil, frame, "UIPanelButtonTemplate")
    btn:SetSize(100, 30)
    btn:SetPoint("BOTTOM", 0, 20)
    btn:SetText("Verstanden")
    btn:SetScript("OnClick", function()
        frame:Hide()
    end)
    
    frame:Show()
end

local loader = CreateFrame("Frame")
loader:RegisterEvent("ADDON_LOADED")
loader:SetScript("OnEvent", function(self, event, addonName)
    if addonName == "EXBoss_Voice_German" then
        TTSVoiceDB_German = TTSVoiceDB_German or {}
        if not TTSVoiceDB_German.shownOnce then
            ShowWelcomeScreen()
            TTSVoiceDB_German.shownOnce = true
        end
        self:UnregisterEvent("ADDON_LOADED")
    end
end)
