calling StopIfRecording() with NULL

Welcome! Forums Unity Plugins Mobile Speech Recognizer calling StopIfRecording() with NULL

This topic contains 1 reply, has 2 voices, and was last updated by  foundway 16 hours, 54 minutes ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1254

    popote999
    Participant

    Hello, I’m working on an free app for deaf-mute people, in order for them to hear and speak.

    The app has a HEAR button, that toggles on and off recording when pressed.

    All is working fine, except when I switch the button off after having not recorded anything. That causes the Siri NULL error, obviously because nothing was recorded, just silence. So Siri get NULL. I can’t bypass that problem. If I trace the code, I see you are calling a static function on a DLL.

    Any ideas brother? By the way, great job on this.

    #1420

    foundway
    Participant

    I have the same issue. Here is a screenshot and error message from xcode:

    StopRecording…
    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    KKSpeech.SpeechRecognizer:StopIfRecording()
    RecordingCanvas:OnStartRecordingPressed()
    UnityEngine.Events.UnityAction:Invoke()
    UnityEngine.Events.InvokableCall:Invoke()
    UnityEngine.Events.UnityEvent:Invoke()
    UnityEngine.UI.Button:Press()
    UnityEngine.UI.Button:OnPointerClick(PointerEventData)
    UnityEngine.EventSystems.ExecuteEvents:Execute(IPointerClickHandler, BaseEventData)
    UnityEngine.EventSystems.EventFunction`
    1:Invoke(T1, BaseEventData)
    UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
    UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
    UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
    UnityEngine.EventSystems.StandaloneInputModule:Process()
    UnityEngine.EventSystems.EventSystem:Update()

    (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    2019-03-24 12:51:23.539741-0700 Mobi[240:4418] [Utility] +[AFAggregator logDictationFailedWithError:] Error Domain=kAFAssistantErrorDomain Code=203 “Retry” UserInfo={NSLocalizedDescription=Retry, NSUnderlyingError=0x2823e8810 {Error Domain=SiriSpeechErrorDomain Code=1 “(null)”}}
    FailedDuringRecording {
    NSLocalizedDescription = Retry;
    NSUnderlyingError = “Error Domain=SiriSpeechErrorDomain Code=1 \”(null)\””;
    }
    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    KKSpeech.SpeechRecognizerListener:FailedDuringRecording(String)

    (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    {
    NSLocalizedDescription = Retry;
    NSUnderlyingError = “Error Domain=SiriSpeechErrorDomain Code=1 \”(null)\””;
    }
    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:LogError(Object)
    RecordingCanvas:OnError(String)
    UnityEngine.Events.UnityAction`1:Invoke(T0)
    UnityEngine.Events.InvokableCall`1:Invoke(T1)
    UnityEngine.Events.UnityEvent`1:Invoke(T0)
    KKSpeech.SpeechRecognizerListener:FailedDuringRecording(String)

    (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    • This reply was modified 16 hours, 54 minutes ago by  foundway.
    • This reply was modified 16 hours, 51 minutes ago by  foundway.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.