(feat/TTS) Add Text-to-speech via awesome_wotlk
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user