(feat/TTS) Add Text-to-speech via awesome_wotlk

This commit is contained in:
NoM0Re
2025-08-25 21:41:59 +02:00
committed by GitHub
parent 2257d236a5
commit 2752f0a53c
10 changed files with 248 additions and 48 deletions
+20
View File
@@ -2855,6 +2855,26 @@ Private.send_chat_message_types = {
ERROR = L["Error Frame"]
}
Private.tts_voices = {}
if WeakAuras.IsAwesomeEnabled() then
Private.send_chat_message_types.TTS = L["Text-to-speech"]
local function updateTts()
wipe(Private.tts_voices)
for i, voiceInfo in pairs(C_VoiceChat.GetTtsVoices()) do
Private.tts_voices[voiceInfo.voiceID] = voiceInfo.name
end
end
updateTts()
local TtsUpdateFrame = CreateFrame("FRAME")
TtsUpdateFrame:RegisterEvent("VOICE_CHAT_TTS_VOICES_UPDATE")
TtsUpdateFrame:SetScript("OnEvent", updateTts)
end
Private.group_aura_name_info_types = {
aura = L["Aura Name"],
players = L["Player(s) Affected"],