Skip to content

Microphon listen not working and no errors #3

@vnavascues

Description

@vnavascues

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions