diff --git a/docs/integration.md b/docs/integration.md index 20e20f3..6ee04f2 100644 --- a/docs/integration.md +++ b/docs/integration.md @@ -41,7 +41,7 @@ Use this type of integration if you want quickly integrate natural language proc 2. Add the following code to your activity's `onCreate` function ```java - final AIConfiguration config = new AIConfiguration("YOUR_ACCESS_TOKEN", "YOUR_SUBSCRIPTION_KEY", + final AIConfiguration config = new AIConfiguration("YOUR_ACCESS_TOKEN", AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System); @@ -73,7 +73,7 @@ Use this type of integration if you want quickly integrate natural language proc }); ``` -3. Replace "YOUR_ACCESS_TOKEN" and "YOUR_SUBSCRIPTION_KEY" with keys from your development console on the [API.AI](http://www.api.ai) site. +3. Replace "YOUR_ACCESS_TOKEN" with key from your development console on the [API.AI](http://www.api.ai) site. 4. Write your custom code instead of `// process response here` and `//process error here` to process success and error responses from the api.ai. # Integration with AIService @@ -93,11 +93,10 @@ Use the following steps: private AIService aiService; ``` -3. In the OnCreate method, add the following line to set up the configuration to use Google speech recognition. Replace CLIENT_ACCESS_TOKEN and SUBSCRIPTION KEY with your client access token and subscription key. +3. In the OnCreate method, add the following line to set up the configuration to use Google speech recognition. Replace CLIENT_ACCESS_TOKEN with your client access token. ```java final AIConfiguration config = new AIConfiguration("CLIENT_ACCESS_TOKEN", - "SUBSCRIPTION_KEY", AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System); ``` @@ -183,7 +182,6 @@ AIDialog is simple and ready to use dialog for making voice requests. All you ne ```java final AIConfiguration config = new AIConfiguration("CLIENT_ACCESS_TOKEN", - "SUBSCRIPTION_KEY", AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System); ```