Search Unity

Resolved IOS build problem

Discussion in 'Scripting' started by ruui3d, Jun 2, 2023.

  1. ruui3d

    ruui3d

    Joined:
    Nov 10, 2021
    Posts:
    6
    Hello,

    Im developing an app for android and ios.
    Im using azure services for speech to text and text to speech, and when I test in the editor and build for ios it works fine. When I build for iOS I get this error:

    Code (CSharp):
    1. UnityEngine.Events.UnityAction:Invoke()
    2. UnityEngine.Events.UnityEvent:Invoke()
    3. UnityEngine.EventSystems.EventFunction`1:Invoke(T1, BaseEventData)
    4. UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
    5. UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
    6. UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
    7. UnityEngine.EventSystems.StandaloneInputModule:Process()
    8.  
    9. 2023-06-02 11:20:22.703587+0100 tobiTestEvent[9967:7466737] [AudioConverter] CompositeAudioConverter.cpp:1073  kAudio_ParamError: packet description 1 of 2: range 4324145664-4324145666, 576 data bytes
    10. ApplicationException: Exception with an error code: 0x3
    11.   at Microsoft.CognitiveServices.Speech.Internal.SpxExceptionThrower.ThrowIfFail (System.IntPtr hr) [0x00000] in <00000000000000000000000000000000>:0
    12.   at Microsoft.CognitiveServices.Speech.SpeechSynthesizer+<>c__DisplayClass77_1.<SpeakTextAsync>b__1 () [0x00000] in <00000000000000000000000000000000>:0
    13.   at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    14.   at Microsoft.CognitiveServices.Speech.SpeechSynthesizer.DoAsyncSynthesisAction (System.Action synthImplAction) [0x00000] in <00000000000000000000000000000000>:0
    15.   at Microsoft.CognitiveServices.Speech.SpeechSynthesizer+<>c__DisplayClass77_0.<SpeakTextAsync>b__0 () [0x00000] in <00000000000000000000000000000000>:0
    16.   at System.Func`1[TResult].Invoke () [0x00000] in <00000000000000000000000000000000>:0
    17.   at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x00000] in <00000000000000000000000000000000>:0
    18.   at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
    19.   at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
    20.   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
    21.   at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
    22.   at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
    23.   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0
    24. --- End of stack trace from previous location where exception was thrown ---
    25.   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0
    26.   at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <00000000000000000000000000000000>:0
    27.   at BotController+<playStep>d__56.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
    28.   at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
    29.   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
    30.   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
    31.   at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    32.   at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
    33.   at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    34.   at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0
    35. --- End of stack trace from previous location where exception was thrown ---
    36.   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0
    37.   at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
    38.   at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    39.   at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0
    40. UnityEngine.WorkRequest:Invoke()
    41. UnityEngine.UnitySynchronizationContext:Exec()
    42.  
    43.  
    I don't know where this comes from, I already had an older version of this program that worked fine.