Search code examples
ibm-cloudibm-watson

Does the Watson Text-to-Speech service in Bluemix work for mobile apps?


Why doesn't the Watson Text-To-Speech service on Bluemix work for mobile devices? Is this a common issue for outputstream data coming from the server? Thanks!

Edit: Sry, somebody have changed my question totally. I am talking about Text-to-Speech


Solution

  • Text To Speech works in Android, and there is a SDK you can use.

    http://watson-developer-cloud.github.io/java-wrapper/

    For example, to get all the voices you can do:

    import com.ibm.watson.developer_cloud.text_to_speech.v1.TextToSpeech;
    import com.ibm.watson.developer_cloud.text_to_speech.v1.model.VoiceSet;
    
    TextToSpeech service = new TextToSpeech();
    service.setUsernameAndPassword("<username>", "<password>");
    
    VoiceSet voices = service.getVoices();
    System.out.println(voices);
    

    where username and password are the credentials you get in Bluemix when you bind the service. You can learn more about the Text to Speech methods by looking at the javadocs here.

    It was released today and I made it so let me know if you find any issue.