Welcome! › Forums › Unity Plugins › Mobile Speech Recognizer › calling StopIfRecording() with NULL
- This topic has 1 reply, 2 voices, and was last updated 5 years, 6 months ago by foundway.
-
AuthorPosts
-
October 28, 2018 at 11:09 am #1254popote999Participant
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.
March 24, 2019 at 8:41 pm #1420foundwayParticipantI 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)
-
AuthorPosts
- You must be logged in to reply to this topic.