Releases: dialogflow/dialogflow-android-client
v1.9.0 - Removed Subscription Key
v1.8.1 - Fixed bug with 'Ok, Google'
Fixed bug caused by using 'Ok, Google' feature on device. More details here.
v1.8.0 - Android 6 support
Added Android Runtime Permissions Support.
Before each listening the RECORD_AUDIO
will be checked. So, you have to add some permission requesting logic to your app, like here.
v1.7.6 - Common SessionId
Now sessionId is permanent for application. So, different instances of AIService
uses common sessionId.
Also, made some bug fixes.
v1.7.1 - Add Lifespan property to contexts
This release adds Lifespan
property to the AIContext
class. Lifespan
determines for how many requests context will affect the result.
final AIContext weatherContext = new AIContext("weather");
weatherContext.setParameters(Collections.singletonMap("location", "London"));
weatherContext.setLifespan(2);
v1.7.0 - Input contexts with parameters
From this release you can put some additional parameters to your input contexts, take a look:
final AIContext weatherContext = new AIContext("weather");
weatherContext.setParameters(Collections.singletonMap("location", "London"));
final AIRequest aiRequest = new AIRequest();
aiRequest.setQuery("and for tomorrow");
aiRequest.setContexts(Collections.singletonList(weatherContext));
final AIResponse aiResponse = aiDataService.request(aiRequest);
Also added methods for getting structured parameters from Result object:
public JsonObject getComplexParameter(final String name)
public JsonObject getComplexParameter(final String name, final JsonObject defaultValue)
v1.6.8 - Fixed issues with native Android speech recognition
Fixed issues with native Android/Google speech recognition (errors raised by Google's recognizer right after the start of the recognition).
v1.6.7 API.AI - User Entities for Session
In this release have been introduced option to set up user entities for current session. This entities will be applied for every request in 30 minutes period. After the period you need to reupload entities.
Sample code:
final Entity myDwarfs = new Entity("dwarfs");
myDwarfs.addEntry(new EntityEntry("Ori", new String[]{"Ori", "Nori"}));
myDwarfs.addEntry(new EntityEntry("Bifur", new String[] {"Bofur","Bombur"}));
final AIResponse uploadResult = aiDataService.uploadUserEntity(myDwarfs);
v1.6.6 API.AI - Widget sample
In this release getDialog
method was added to the AIDialog
class. This allow you to make some special customizations with the dialog.
Also pull request with widget sample was merged to the sample app. See AIWidgetActivity and AISampleAppWidget.
v1.6.5 API.AI - Bluetooth support
This release adds Bluetooth support, for details see documentation.