You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2019. It is now read-only.
Go to the dashboard https://console.ng.bluemix.net/
and click dashboard on the top right
Click Create a Space on top left
name it serviceTEST ( whatever you want… )
Once completed click Create App
Web App
SDK Node Js App
click Continue
name it serviceTESTApp1 ( whatever you want… ) If you get a weird error message that probably means someone is using that name just a number or 2 to the end… serviceTESTApp12345 etc…
click Finish
Hit the back or left arrow on the top left of the page
You will see 1 CF App
Now we need to make our services, you CANNOT AS OF THIS WRITING make a service without an app…
Click on Services
click Use Services APIs
click on Speech to Text
on top right click on the App drop down and you will see your new app serviceTESTApp1
Select it and click Create
It will ask to ReStage, say YES
hit the back arrow on the top left
You will now see Services has 1
Click Services and click Speech to Text
click Service Credentials on the left
click add Credentials on the right
name it serviceTESTApp1-STT (whatever you want or just leave the default…)
Now you will see your credentials, you need these for the app
Open a notepad session on Windows or Notes session on Mac and copy all of this block of text you will need this for the android app
Now lets make the Text to Speech Service same steps…
Hit the back or left arrow on the top left of the page
Click on Services
click Use Services APIs
click on Text to Speech
on top right click on the App drop down and you will see your new app serviceTESTApp1
Select it and click Create
It will ask to ReStage, say YES
hit the back arrow on the top left
You will now see Services has 2
Click Services and click Text to Speech
click Service Credentials on the left
click add Credentials on the right
name it serviceTESTApp1-TTS (whatever you want or just leave the default…)
Now you will see your credentials, you need these for the app
Open a notepad session on Windows or Notes session on Mac and copy all of this block of text you will need this for the android app
Now lets test your credentials before we move on
take the url above they are different
"url": "https://stream.watsonplatform.net/text-to-speech/api",
copy and paste the https…./api in your browser and use the user name and password blue mix provided you above
You will know you got in it will say invalid credentials if it didn’t work and if it did work you will see a JSON output and documentation recommendations…
Now we are done with Bluemix
go here and download the android SDK ( which you probably already have… )
unzip and in the folder you will see 2 folders, 2 project and a grade folder
Open Android Studio
Click open an existing project
Select the folder you just downloaded with all the 3 folders and files in it…
or
Click File > Open > and Select the folder you just downloaded with all the 3 folders and files in it…
Now lets set the credentials we just tested in place
Click on Project on the left side of the window if you don’t see any folders or code…
go to Examples > res > values > strings.xml
where you see default credentials… delete that block and replace with below….
If you see any please check internet connection messages, that simply means your credentials are not working. Test them again on your browser and also make sure the URLs for Speech to Text and Text to Speech are correct they are different urls and the credentials will NOT work on both
Now from this point if anyone has any resources on how to make the REST speech to text services work with Android please reply or message me so we can collaborate.
thanks
The text was updated successfully, but these errors were encountered:
Quick Guide to getting started with IBM Bluemix Watson Android SDK
I am writing this to help anyone who is going through or went through what I did to get the example up and running.
To get the Android SPEECH TO TEXT and TEXT TO SPEECH working following these instructions, I am writing them as I am doing them as of 2-1-2016.
First create an IBM BlueMix account
https://console.ng.bluemix.net
Once created make the page full screen…
Go to the dashboard
https://console.ng.bluemix.net/
and click dashboard on the top right
Click Create a Space on top left
name it serviceTEST ( whatever you want… )
Once completed click Create App
Web App
SDK Node Js App
click Continue
name it serviceTESTApp1 ( whatever you want… ) If you get a weird error message that probably means someone is using that name just a number or 2 to the end… serviceTESTApp12345 etc…
click Finish
Hit the back or left arrow on the top left of the page
You will see 1 CF App
Now we need to make our services, you CANNOT AS OF THIS WRITING make a service without an app…
Click on Services
click Use Services APIs
click on Speech to Text
on top right click on the App drop down and you will see your new app serviceTESTApp1
Select it and click Create
It will ask to ReStage, say YES
hit the back arrow on the top left
You will now see Services has 1
Click Services and click Speech to Text
click Service Credentials on the left
click add Credentials on the right
name it serviceTESTApp1-STT (whatever you want or just leave the default…)
Now you will see your credentials, you need these for the app
Open a notepad session on Windows or Notes session on Mac and copy all of this block of text you will need this for the android app
{
"credentials": {
"url": "https://stream.watsonplatform.net/speech-to-text/api",
"username": “yyyyyyyyyyyy”,
"password": “XXXXXXX”
}
}
Now lets make the Text to Speech Service same steps…
Hit the back or left arrow on the top left of the page
Click on Services
click Use Services APIs
click on Text to Speech
on top right click on the App drop down and you will see your new app serviceTESTApp1
Select it and click Create
It will ask to ReStage, say YES
hit the back arrow on the top left
You will now see Services has 2
Click Services and click Text to Speech
click Service Credentials on the left
click add Credentials on the right
name it serviceTESTApp1-TTS (whatever you want or just leave the default…)
Now you will see your credentials, you need these for the app
Open a notepad session on Windows or Notes session on Mac and copy all of this block of text you will need this for the android app
{
"credentials": {
"url": "https://stream.watsonplatform.net/text-to-speech/api",
"username": “yyyyyyyyyyyy”,
"password": “wwwwwwwww”
}
}
Now lets test your credentials before we move on
take the url above they are different
"url": "https://stream.watsonplatform.net/text-to-speech/api",
copy and paste the https…./api in your browser and use the user name and password blue mix provided you above
You will know you got in it will say invalid credentials if it didn’t work and if it did work you will see a JSON output and documentation recommendations…
Now we are done with Bluemix
go here and download the android SDK ( which you probably already have… )
https://github.com/watson-developer-cloud/speech-android-sdk
click download zip on top right
unzip and in the folder you will see 2 folders, 2 project and a grade folder
Open Android Studio
Click open an existing project
Select the folder you just downloaded with all the 3 folders and files in it…
or
Click File > Open > and Select the folder you just downloaded with all the 3 folders and files in it…
Now lets set the credentials we just tested in place
Click on Project on the left side of the window if you don’t see any folders or code…
go to Examples > res > values > strings.xml
where you see default credentials… delete that block and replace with below….
Now fill in the URL for Token Factory , Username , and password you received
We are done with this file
Now open Example project > Java > com….. > MainActivity
find this method initSTT comment out don’t delete it… then copy and paste this version of the method
find this method initTTS comment out don’t delete it… then copy and paste this version of the method
We are done with this file
Now run the app on a test device
If you see any please check internet connection messages, that simply means your credentials are not working. Test them again on your browser and also make sure the URLs for Speech to Text and Text to Speech are correct they are different urls and the credentials will NOT work on both
Now from this point if anyone has any resources on how to make the REST speech to text services work with Android please reply or message me so we can collaborate.
thanks
The text was updated successfully, but these errors were encountered: