Page 1 of 1

GENERATING VOICE OVER issue using AI Add ON

Posted: Wed Sep 18, 2024 1:13 pm
by Sumosake
Hey Tony :)

Been using the DS for a while. Just installed the AI add on. Watched tutorials and install instructions, created my API keys for both OpenAI and ElevenLab and even successfully created some new Dialogues and barks with the AI add on. All appears to work great!

However, I am having an issue ACCEPTING a generated voiceover. I can generate and preview without any issue but when I try to ACCEPT the voiceover I receive 2 error messages:

GUI Error: Invalid GUILayout state in DialogueSystemOpenAIWindow view. Verify that all layout Begin/End calls match
ArgumentOutOfRangeException: startIndex cannot be larger than length of string.

This has worked for me before but only one time. I was able to ACCEPT which allowed me to save the Voiceover file to my assets library.

I have tried restarting Unity; tried different conversations but still no luck.

using DS 2.2.47
DS AI addon: 1.0.19

Thanks

Re: GENERATING VOICE OVER issue using AI Add ON

Posted: Wed Sep 18, 2024 3:06 pm
by Tony Li
Hi,

In the Console window, please click on the ArgumentOutOfRangeException error and press Ctrl+C to copy its full details to the clipboard. Then post it into a reply here.

Did you assign an ElevenLabs voice or an OpenAI voice to the actor?

Re: GENERATING VOICE OVER issue using AI Add ON

Posted: Thu Sep 19, 2024 11:48 am
by Sumosake
I am using an ElevenLab: Voice. Edwin


ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
System.String.Substring (System.Int32 startIndex, System.Int32 length) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
System.String.Substring (System.Int32 startIndex) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
PixelCrushers.DialogueSystem.OpenAIAddon.ElevenLabs.GenerateVoicePanel.SaveAudioClip () (at Assets/Plugins/Pixel Crushers/Dialogue System Addon for OpenAI/Scripts/Editor/Voice/GenerateVoicePanel.cs:233)
PixelCrushers.DialogueSystem.OpenAIAddon.ElevenLabs.GenerateVoicePanel.DrawAcceptButton () (at Assets/Plugins/Pixel Crushers/Dialogue System Addon for OpenAI/Scripts/Editor/Voice/GenerateVoicePanel.cs:173)
PixelCrushers.DialogueSystem.OpenAIAddon.ElevenLabs.GenerateVoicePanel.Draw () (at Assets/Plugins/Pixel Crushers/Dialogue System Addon for OpenAI/Scripts/Editor/Voice/GenerateVoicePanel.cs:86)
PixelCrushers.DialogueSystem.OpenAIAddon.DialogueSystemOpenAIWindow.OnGUI () (at Assets/Plugins/Pixel Crushers/Dialogue System Addon for OpenAI/Scripts/Editor/DialogueSystemOpenAIWindow.cs:128)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <51e2d50a25be4e0e8f1b2720c516435c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <51e2d50a25be4e0e8f1b2720c516435c>:0)
UnityEditor.DockArea.OldOnGUI () (at <51e2d50a25be4e0e8f1b2720c516435c>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.IMGUIContainer.ProcessEvent (UnityEngine.UIElements.EventBase evt) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <a0f48008d3514033961b6cfbfec6a87c>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <4746967b7155497e87da4dde169a2f21>:0)

Thanks

Re: GENERATING VOICE OVER issue using AI Add ON

Posted: Thu Sep 19, 2024 1:31 pm
by Tony Li
This patch should fix it. This will be in the next update on the Asset Store, too.

DS_OpenAIAddon_SaveVoicePatch_2024-09-19.unitypackage

Re: GENERATING VOICE OVER issue using AI Add ON

Posted: Thu Sep 19, 2024 4:04 pm
by Sumosake
Installed patch; Problem fixed! :)

Thanks for the outstanding support! Amazing products and amazing customer service!

Thanks again!

Re: GENERATING VOICE OVER issue using AI Add ON

Posted: Thu Sep 19, 2024 4:28 pm
by Tony Li
Glad to help! Thanks for letting me know about the issue.