karashiiro / TextToTalk

Chat TTS plugin for Dalamud. Has support for triggers/exclusions, several TTS providers, and more!
MIT License
47 stars 30 forks source link

Voice Unlocker Error #52

Closed johnysandels closed 2 years ago

johnysandels commented 2 years ago

Error when trying to use the built in Voice unlocker, when clicking both Manual tutorial and also Enable all system voices on version 1.9.4 and 1.9.7. Other versions not tested.

There is nothing showing an issue in output or dalamud logs

image

karashiiro commented 2 years ago

Added logging, does it show anything now?

johnysandels commented 2 years ago

image This is what is in the dalamud log

2021-11-10 19:45:04.320 -08:00 [ERR] [TextToTalk] VoiceUnlocker failed to start.
System.ComponentModel.Win32Exception (740): The requested operation requires elevation.
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at TextToTalk.VoiceUnlockerRunner.Execute() in K:\arashiiro\VoiceUnlockerRunner.cs:line 15
2021-11-10 19:45:04.334 -08:00 [INF] LASTEXCEPTION:eyJXaGVuIjoiMjAyMS0xMS0xMFQxOTo0NTowNC4zMzA3ODk3LTA4OjAwIiwiSW5mbyI6IlN5c3RlbS5Db21wb25lbnRNb2RlbC5XaW4zMkV4Y2VwdGlvbiAoNzQwKTogVGhlIHJlcXVlc3RlZCBvcGVyYXRpb24gcmVxdWlyZXMgZWxldmF0aW9uLlxyXG4gICBhdCBTeXN0ZW0uRGlhZ25vc3RpY3MuUHJvY2Vzcy5TdGFydFdpdGhDcmVhdGVQcm9jZXNzKFByb2Nlc3NTdGFydEluZm8gc3RhcnRJbmZvKVxyXG4gICBhdCBTeXN0ZW0uRGlhZ25vc3RpY3MuUHJvY2Vzcy5TdGFydCgpXHJcbiAgIGF0IFN5c3RlbS5EaWFnbm9zdGljcy5Qcm9jZXNzLlN0YXJ0KFByb2Nlc3NTdGFydEluZm8gc3RhcnRJbmZvKVxyXG4gICBhdCBUZXh0VG9UYWxrLlZvaWNlVW5sb2NrZXJSdW5uZXIuRXhlY3V0ZSgpIGluIEs6XFxhcmFzaGlpcm9cXFZvaWNlVW5sb2NrZXJSdW5uZXIuY3M6bGluZSAxNSIsIkNvbnRleHQiOiJbVGV4dFRvVGFsa10gVm9pY2VVbmxvY2tlciBmYWlsZWQgdG8gc3RhcnQuXG5TeXN0ZW0uQ29tcG9uZW50TW9kZWwuV2luMzJFeGNlcHRpb24gKDc0MCk6IFRoZSByZXF1ZXN0ZWQgb3BlcmF0aW9uIHJlcXVpcmVzIGVsZXZhdGlvbi5cclxuICAgYXQgU3lzdGVtLkRpYWdub3N0aWNzLlByb2Nlc3MuU3RhcnRXaXRoQ3JlYXRlUHJvY2VzcyhQcm9jZXNzU3RhcnRJbmZvIHN0YXJ0SW5mbylcclxuICAgYXQgU3lzdGVtLkRpYWdub3N0aWNzLlByb2Nlc3MuU3RhcnQoKVxyXG4gICBhdCBTeXN0ZW0uRGlhZ25vc3RpY3MuUHJvY2Vzcy5TdGFydChQcm9jZXNzU3RhcnRJbmZvIHN0YXJ0SW5mbylcclxuICAgYXQgVGV4dFRvVGFsay5Wb2ljZVVubG9ja2VyUnVubmVyLkV4ZWN1dGUoKSBpbiBLOlxcYXJhc2hpaXJvXFxWb2ljZVVubG9ja2VyUnVubmVyLmNzOmxpbmUgMTUifQ==

When clicking Manual Voice Unlocker it says

2021-11-10 19:58:14.114 -08:00 [ERR] [TextToTalk] UiBuilder OnBuildUi caught exception
System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at TextToTalk.UI.VoiceUnlockerWindow.Draw(Boolean& visible) in K:\arashiiro\UI\VoiceUnlockerWindow.cs:line 44
   at Dalamud.CrystalTower.UI.WindowManager.Draw()
   at Dalamud.Interface.UiBuilder.OnDraw() in C:\goatsoft\companysecrets\dalamud\Interface\UiBuilder.cs:line 287
2021-11-10 19:58:14.130 -08:00 [INF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cGVjaWZpZWQuXHJcbiAgIGF0IFN5c3RlbS5EaWFnbm9zdGljcy5Qcm9jZXNzLlN0YXJ0V2l0aENyZWF0ZVByb2Nlc3MoUHJvY2Vzc1N0YXJ0SW5mbyBzdGFydEluZm8pXHJcbiAgIGF0IFN5c3RlbS5EaWFnbm9zdGljcy5Qcm9jZXNzLlN0YXJ0KClcclxuICAgYXQgU3lzdGVtLkRpYWdub3N0aWNzLlByb2Nlc3MuU3RhcnQoUHJvY2Vzc1N0YXJ0SW5mbyBzdGFydEluZm8pXHJcbiAgIGF0IFRleHRUb1RhbGsuVUkuVm9pY2VVbmxvY2tlcldpbmRvdy5EcmF3KEJvb2xlYW4mIHZpc2libGUpIGluIEs6XFxhcmFzaGlpcm9cXFVJXFxWb2ljZVVubG9ja2VyV2luZG93LmNzOmxpbmUgNDRcclxuICAgYXQgRGFsYW11ZC5DcnlzdGFsVG93ZXIuVUkuV2luZG93TWFuYWdlci5EcmF3KClcclxuICAgYXQgRGFsYW11ZC5JbnRlcmZhY2UuVWlCdWlsZGVyLk9uRHJhdygpIGluIEM6XFxnb2F0c29mdFxcY29tcGFueXNlY3JldHNcXGRhbGFtdWRcXEludGVyZmFjZVxcVWlCdWlsZGVyLmNzOmxpbmUgMjg3In0=
karashiiro commented 2 years ago

Should be fixed with v1.9.9.

johnysandels commented 2 years ago

It says it's successful on restart, but it doesn't seem to actually unlock all the voices. no errors in logs

karashiiro commented 2 years ago

Are you on Windows 10 or 11? I'm testing it myself right now on Windows 10 and it seems to work perfectly fine.

johnysandels commented 2 years ago

I'm testing on windows 10. Let me try again

johnysandels commented 2 years ago

I've reinstalled the voices and the voice unlocker says it worked, but on restart no new voices are listed.

image all of my voices in windows settings

image

on restart: image

johnysandels commented 2 years ago

Still can't find a resolution to this one unfortunately. I've tested on my partners Pc and it didn't work for them either.

johnysandels commented 2 years ago

I just found an old version of the voice unlocker for version 1.8.6 and that old version worked, and now all of my voices are unlocked! https://github.com/karashiiro/DalamudPlugins/commit/403fc68a9c76f2455db8811bb20e5d9b77d79771

karashiiro commented 2 years ago

Now: https://raw.githubusercontent.com/karashiiro/TextToTalk/main/src/VoiceUnlocker/Program.cs

v1.8.6: https://raw.githubusercontent.com/karashiiro/TextToTalk/62f769bd74511e923bee49427a89e9ee131fad33/VoiceUnlocker/Program.cs

The VoiceUnlocker code hasn't changed between 1.8.6 and now, so I'm not sure how that fixed it.

karashiiro commented 2 years ago

I guess the underlying framework changed (.NET Framework 4.7.2 to .NET 5), so I can try reverting that? Seems unlikely, though.

karashiiro commented 2 years ago

Released a testing build (v1.9.12.1) for anyone who's still experiencing this problem to try.

johnysandels commented 2 years ago

Just tested this update on my partner's PC, and it worked perfectly! All of her voices are unlocked now! Weird that NET5 would somehow mess with the code 🥴

karashiiro commented 2 years ago

Thanks for testing this! I'll push this to the main release stream and close this, then 👏 Compatibility is always a major headache, I guess.