We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code:
const { BearerTokenAuthenticator, CloudPakForDataAuthenticator } = require("ibm-cloud-sdk-core"); let tts; const watsonInfo = io.config.get('watson') || null; console.log('watsonInfo is: ' + JSON.stringify(watsonInfo)); if (watsonInfo && watsonInfo.environment == 'cloudpak') { logger.info('environment is cloudpak (token)'); tts = new TextToSpeechV1({ authenticator: new BearerTokenAuthenticator({ bearerToken: watsonInfo.bearerToken, }), disableSslVerification: true, serviceUrl: watsonInfo.ttsURL, }); } else if (watsonInfo && watsonInfo.environment == "cloudpak-user-pass") { logger.info('environment is cloudpak-user-pass'); tts = new TextToSpeechV1({ authenticator: new CloudPakForDataAuthenticator({ username: watsonInfo.username, password: watsonInfo.password, disableSslVerification: true, url: watsonInfo.ttsUserPassURL + '/icp4d-api' }), disableSslVerification: true, serviceUrl: watsonInfo.ttsUserPassURL + watsonInfo.ttsUserPassPath }); } else { logger.info('environment is ibmcloud'); tts = new TextToSpeechV1({}); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
code:
The text was updated successfully, but these errors were encountered: