Quest TTS

Quest TTS

32k Downloads

Unable to select TTS voice from list.

MrMartiniMo opened this issue ยท 6 comments

commented

Hi, I was unable to select the correct voice from the list because it is not scrollable.

QuestTTS-1.17
MacBook Air M2, 2022
WoW 10.0.0.46549
Resolution 2560x1664

image

Anyway nice addon ๐Ÿ‘

commented

Hi @z0fa

now it looks like this. It's ok. I can access all the voices and I like the up and down buttons ๐Ÿ‘
Maybe you can add a preview button to test the voice for a future release.

image

commented

Yeah, I'll definitely add a preview button in a future update
Thank you :)

commented

My quick fix is to hardcode the voices in main.lua

function module.getVoice()
  local toRet = settings.voice1.get()
  local unitSex = UnitSex("questnpc") or UnitSex("npc")

  if unitSex == 2 then -- male
    toRet = 55 --settings.voice1.get()
  elseif unitSex == 3 then -- female
    toRet = 48 --settings.voice2.get()
  else
    toRet = 64 --settings.voice3.get()
  end

  local voices = Array.new(C_VoiceChat.GetTtsVoices())
  local voiceToRet = voices:find(
    function(v)
      if v.voiceID == toRet then
        return true
      end
    end
  )

  return voiceToRet
end

I used this code to output all German voices and it's voiceIDs:

print('-------------------------')

table.foreach(
   C_VoiceChat.GetTtsVoices(),
   function(k,v)
      if string.find(v.name, 'DE') then
         print(v.voiceID .. ': ' .. v.name)
      end
   end
)

print('-------------------------')
commented

Oh wow, where did you got all these voices from? I'm migrating the addon settings to the new api, the new selectbox should be scrollable by default. There are some taint errors with the new api, i'm waiting for a fix before releasing the new version...

Thank you for the report :)

commented

I think it is default on macOS but I am not sure ๐Ÿ˜… Thank you for your quick reply. Really nice Addon, I love it ๐Ÿ‘

commented

Can you try to update to the latest version and check if you are still having the issue?
Thanks