We've provided a sample funWithSpeech.py (https://github.com/PacktPublishing/Cognitive-Computing-with-IBM-Watson/blob/master/Chapter04/funWithSpeech.py) application that you can use to have fun with the Watson speech service.
Before using this sample program, you will have to substitute in your own username and password for the service instance that you created earlier.
Let's take a look at what this program is doing:
- The program can take in three optional command-line arguments—the text string that you want to synthesize, the voice in which you want it expressed, and the customization-id of any custom model that you want to use (assuming that you created one previously and have the customization-id that was created with it).
- The program begins by parsing and testing the inclusion of any of these three arguments...