IBM / Train-Custom-Speech-Model

Create a custom Watson Speech to Text model using specialized domain data
https://developer.ibm.com/patterns/customize-and-continuously-train-your-own-watson-speech-service/
Apache License 2.0
59 stars 42 forks source link

create language model fails #23

Closed rhagarty closed 5 years ago

rhagarty commented 5 years ago

cmd/create_language_model.py fails with following message:

Please set your username in the environment variable USERNAME

This is due to the apikey issue which needs to be consistently used. services.json doesn't use USERNAME and PASSWORD, so all of the python scripts need to be modified to accept apikey.

tonanhngo commented 5 years ago

Hi Rich, the python scripts are set up to accept both types of credential for flexibility. If you have the api key, then you can set the environment variable as: export USERNAME=apikey (the actual text is apikey) export PASSWORD=your-IAM-apikey This is explained in the instruction, but I guess it would be helpful to say this in the error message also, so let me do that.