Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microphon listen not working and no errors #3

Open
vnavascues opened this issue Jul 14, 2017 · 3 comments
Open

Microphon listen not working and no errors #3

vnavascues opened this issue Jul 14, 2017 · 3 comments

Comments

@vnavascues
Copy link

vnavascues commented Jul 14, 2017

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.

@vnavascues
Copy link
Author

Here another kind of log:

ObjectDisposedException: The object was used after being disposed.
System.Net.WebConnection.BeginWrite (System.Net.HttpWebRequest request, System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback cb, System.Object state)
System.Net.WebConnectionStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback cb, System.Object state)
System.Net.WebConnectionStream.Write (System.Byte[] buffer, Int32 offset, Int32 size)
System.IO.BinaryWriter.Write (System.Byte[] buffer, Int32 index, Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/BinaryWriter.cs:140)
ApiAiSDK.Http.MultipartHttpClient.addFilePart (System.String paramName, System.String fileName, System.IO.Stream data)
ApiAiSDK.AIDataService.VoiceRequest (System.IO.Stream voiceStream, ApiAiSDK.RequestExtras requestExtras)
Rethrow as AIServiceException: The object was used after being disposed.
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)

@alt-ctrl-dev
Copy link

Is there any update on this?? @xVir @matthewayne

@alt-ctrl-dev
Copy link

Figure out that API.ai does not support automatic speech recognition (ASR) and text-to-speech services (TTS) solutions from May 29th, 2017

dialogflow/dialogflow-xamarin-client#5 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants