Very interesting, also if you want to know how to send on the web a wav audio file.
Problem: I've created an italian agent and updated the keys with the 2 ones needed.
If I try recognize the speech in english, the agent returns an english text even if it's configured as italian.
If I try to change from en to it, it doesn't work. This is the line from the speakbutton module, line 37, I've customized changing EN to IT.
The timezone added works also in english, it's not relevant.
jg.Initialize(CreateMap("v": "20150910", "timezone":"Europe/Paris", "lang": "it", "sessionId": sessionId))
api.ai should reject my request when in "en" mode because my agent keys are for italian language, instead it works in english and it isn't working in italian.
I think I've missed something on their service.
In b4i code I've changed is the two keys and the lang option. There's something else ?
This the error:
Application_Start
Application_Active
response success
{
"id": "f944dbe8-2973-47af-96fe-a7a0e157266f",
"timestamp": "2015-12-02T10:47:27.472Z",
"status": {
"code": 400,
"errorType": "bad_request",
"errorDetails": "Could not recognize the text from the voice data."
}
}
Class (b4i_httpjob) instance released.