v1.3.0 API.AI - New languages, new protocol
This release add support for 8 new languages:
- Spanish
- French
- Italian
- Japanese
- Korean
- three dialects of Chinese (zh-CN, zh-HK, zh-TW)
Check the AIConfiguration. SupportedLanguages and the api.ai website for full list of supported Languages.
Also changed response data format - now output contexts is the array of JSON objects enclosed in 'result' object, and contains 'parameters' and 'name' fields.
"contexts": [
{
"name": "context1",
"parameters": {
"weather": "today weather"
}
},
{
"name": "context2",
"parameters": {
"weather": "today weather",
"location": "New York"
}
}
]
In code mapping
@SerializedName("contexts")
private AIOutputContext[] contexts;
Don't forget to change library version in dependencies ;-)
dependencies {
compile 'ai.api:sdk:1.3.0@aar'
}