android speech2text app using ibm waston api
- Sign up for an IBM Cloud Account
- Create an instance of the Waston service you want to use and get your credentials
- Copy the
apikey
andurl
value from the instance
-
Create an file
app/src/main/res/values/credential.xml
-
Copy the following lines into it
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="speech_text_iam_apikey">{apikey}</string> <string name="speech_text_url">{url}</string> </resources>
where
{apikey}
and{url}
are the values copied from the official site -
Prepare the audio file and modify the path located in
app/src/main/java/com/example/ethen/myapplication2/MainActivity.java
line 109 and line 110