From b3adbebbd4f138bd4bb914e6f6248b70c2979660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Sp=C3=B6ck?= Date: Mon, 24 Jul 2017 09:12:32 +0200 Subject: [PATCH] doc: correct some typos --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1bfe0b3..89c9c83 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Import ApiAi: import ApiAi from "react-native-api-ai"; ``` -Set the `clientAccessToken` and the language in your contructor: +Set the `clientAccessToken` and the language in your constructor: ```javascript constructor(props) { super(props); @@ -73,7 +73,7 @@ Usage of `onListeningStarted`, `onListeningCanceled`, `onListeningFinished` and }} /> ``` -Note: Make sure you are setting the callbacks before startListening again every single time. Don't set in e.g. constructor or componentsDidMount if you are executing startListening more than one times. +Note: Make sure you are setting the callbacks before startListening every single time again. Don't set the callbacks in e.g. constructor or componentsDidMount if you are executing startListening more than one times. Using your own speech recognition: ```javascript @@ -115,4 +115,4 @@ ApiAi.setConfiguration("4xxxxxxxe90xxxxxxxxc372", ApiAi.LANG_GERMAN); | `onListeningStarted` | callback: ()=>{} | | | | `onListeningCanceled` | callback: ()=>{} || | | `onListeningFinished` | callback: ()=>{} | | | -| `onAudioLevel` | callback: (level: number)=>{} || | \ No newline at end of file +| `onAudioLevel` | callback: (level: number)=>{} || |