-
Notifications
You must be signed in to change notification settings - Fork 13
Microphon listen not working and no errors #3
Copy link
Copy link
Open
Description
Hi all,
Send Text works properly (with both default key and my client one), but I'm not able to make it work using the microphone.
Once I press "Stop Listen" this error is logged:
NullReferenceException: Object reference not set to an instance of an object
ApiAiSDK.Http.MultipartHttpClient.getResponse ()
ApiAiSDK.AIDataService.VoiceRequest (System.IO.Stream voiceStream, ApiAiSDK.RequestExtras requestExtras)
Rethrow as AIServiceException: Object reference not set to an instance of an object
ApiAiSDK.AIDataService.VoiceRequest (System.IO.Stream voiceStream, ApiAiSDK.RequestExtras requestExtras)
ApiAiSDK.ApiAi.VoiceRequest (System.IO.Stream voiceStream, ApiAiSDK.RequestExtras requestExtras)
ApiAiSDK.ApiAi.VoiceRequest (System.Single[] samples)
UnityEngine.Debug:LogException(Exception)
<HandleOnError>c__AnonStorey2:<>m__0() (at Assets/Examples/ApiAiModule.cs:99)
ApiAiModule:Update() (at Assets/Examples/ApiAiModule.cs:116)
I'm quite sure the micro is recording, because I can print at each frame the variable Microphone.IsRecording(null), and is true. Even I tried to speak only when Microphon.GetPosition(null) equals 0.
My micro works (tested with API.ai web interface) and I have not problems with access authorization.
I'm using Unity 2017.1.0f3 for a desktop app.
Help? API.ai Unity forum is desolated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels