Search This Blog

Showing posts with label text to speech watson not working. Show all posts
Showing posts with label text to speech watson not working. Show all posts

Friday, April 14, 2017

How to use IBM Watson Text to Speech API via JAVA SDK


I was trying to see how text can be converted to speech using WATSON API, but due to some or the other reasons I was getting a few errors while trying to test locally as well as on blue mix.


I followed this link to set up the app.
https://github.com/watson-developer-cloud/text-to-speech-java

I could deploy but I was getting some error while testing the text to speech feature.
For local it gave me error on
./target/wlp/bin/bluemixUtility import text-to-speech-service
Some null pointer exception.

For Blue mix
Error while processing in red color on the results section of my page.


Finally I had to understand the complete code and I got to know that credentials are not submitted properly to the service from the local system and cloud was not able to bind to the service and was giving “Unknown service exception)


The following setup worked for me, try this.
Step 1
> mvn install

and it created the target folder and it  has a liberty run time with it.
image