Forum rules - please read before posting.

Speech Addressables not displaying translations

HI Chris, I am using addressables for my game. However, when I turn on a translated language, the audio does not play, it just throws up the subtitles for a millisecond. Is there something else I need to do when using addressables to ensure this works?

Comments

  • edited July 2023

    Are you looking to use separate speech audio for each language, or just the original regardless of language?

    Check your Console at the time - does it report anything related?

    Let's see your Speech Manager in full, as well as a typical line from the "Gathered lines" panel.

  • edited July 2023

    Hi Chris, yes original audio regardless of languages. Console shows this:

    UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=Player1435_SPANISH, Type=UnityEngine.AudioClip
    UnityEngine.AddressableAssets.Addressables:LoadAssetAsync<UnityEngine.AudioClip> (object)
    AC.ActionSpeech:Run () (at Assets/AdventureCreator/Scripts/Actions/ActionSpeech.cs:175)
    AC.ActionList/<RunAction>d__41:MoveNext () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:429)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:379)
    AC.ActionList:ProcessActionEnd (AC.ActionEnd,int,bool) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:571)
    AC.ActionList:EndAction (AC.Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:530)
    AC.ActionList/<RunAction>d__41:MoveNext () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:494)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:379)
    AC.ActionList:BeginActionList (int,bool) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:346)
    AC.ActionList:Interact (int,bool) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:247)
    AC.ActionList:Interact () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:210)
    AC.PlayerInteraction/<UseObject>d__37:MoveNext () (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:1494)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
    

    Also see gathered text image here:

    https://www.dropbox.com/scl/fo/k6qd1zkenpbvveb1yxqdq/h?rlkey=wr6te34uhbxe0opw3qtlf3tzm&dl=0

  • Uncheck Speech audio can be translated? if it's all to use the original audio.

  • That did the trick! Thanks
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.