ibm-cloud

How to deploy php, nodejs and mysql application to IBM Cloud

假如想象 提交于 2020-06-17 03:25:32
问题 I have a small app written with php, node js and mysql. both php and mysql are accessing the same database table. my question is? how do I upload the app to my IBM Cloud account. and how do I start my nodejs server there? 来源: https://stackoverflow.com/questions/51812503/how-to-deploy-php-nodejs-and-mysql-application-to-ibm-cloud

IBM Watson Text-to-speech API keeps throwing Error: 403 Forbidden

南笙酒味 提交于 2020-06-01 04:43:29
问题 I've been using the IBM Watson Text-to-speech API for quite a while now. The service credentials that was working until last night has been throwing an {"code":403, "error": "Forbidden"} since this morning. I use the lite plan and London region I tried curl requests and it still doesn't work or given any further logs. I tried with a newly created pair of credentials, it's still throwing the same error. Any ideas? Here's the curl request sample although the error persists in my original python

Flask app doesn't start successfully after deploying on IBM Toolchain

你。 提交于 2020-05-17 06:24:06
问题 The same code worked perfectly on my local machine and I could visit the deployed app at localhost:5000. However, when I uploaded the files on GitHub and then deployed them on IBM Toolchain, I'm unable to start the app successfully. Let me explain what I'm doing in brief. I'm using IBM's Cloud Object storage to access a .csv file and then continue to perform ML predictions and display the results. The user can also upload his/her own .csv file by connecting to Cloud Object storage. I have

Are IBM Watson IAM tokens good for all services or specific to each service, e.g., Speech-to-Text?

走远了吗. 提交于 2020-05-17 03:33:04
问题 IBM's documentation says that the following Node back end code enables you to Use the API key to have the SDK manage the lifecycle of the token. The SDK requests an access token, ensures that the access token is valid, and refreshes it if necessary. const SpeechToTextV1 = require('ibm-watson/speech-to-text/v1'); const { IamAuthenticator } = require('ibm-watson/auth'); const speechToText = new SpeechToTextV1({ authenticator: new IamAuthenticator({ apikey: '{apikey}', }), url: '{url}', }); How

I have just started using IBM Cloud. I am trying to get a different output from the IBM Voice depending on my voice input. How can I do this? [closed]

冷暖自知 提交于 2020-05-14 14:23:31
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 days ago . I am trying to design this simple virtual assistant. I am very new to all of this. import json from symbol import parameters from ibm_watson import TextToSpeechV1 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from ibm_watson import ApiException import speech

I have just started using IBM Cloud. I am trying to get a different output from the IBM Voice depending on my voice input. How can I do this? [closed]

不问归期 提交于 2020-05-14 14:20:00
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 days ago . I am trying to design this simple virtual assistant. I am very new to all of this. import json from symbol import parameters from ibm_watson import TextToSpeechV1 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from ibm_watson import ApiException import speech

I have just started using IBM Cloud. I am trying to get a different output from the IBM Voice depending on my voice input. How can I do this? [closed]

百般思念 提交于 2020-05-14 14:19:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 days ago . I am trying to design this simple virtual assistant. I am very new to all of this. import json from symbol import parameters from ibm_watson import TextToSpeechV1 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from ibm_watson import ApiException import speech

How to generate an IBM Cloud token from an API Key

六月ゝ 毕业季﹏ 提交于 2020-04-18 04:42:12
问题 I have generated an API key for IBM Cloud, how do I programmatically generate a token from the API key? 回答1: Here is a curl request to do that. curl --location --request POST 'https://iam.cloud.ibm.com/identity/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic Yng6Yng=' \ --data-urlencode 'apikey=xxx' \ --data-urlencode 'response_type=cloud_iam' \ --data-urlencode 'grant_type=urn:ibm:params:oauth:grant-type:apikey' Replace xxx with your API

How to generate an IBM Cloud token from an API Key

蹲街弑〆低调 提交于 2020-04-18 04:42:05
问题 I have generated an API key for IBM Cloud, how do I programmatically generate a token from the API key? 回答1: Here is a curl request to do that. curl --location --request POST 'https://iam.cloud.ibm.com/identity/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic Yng6Yng=' \ --data-urlencode 'apikey=xxx' \ --data-urlencode 'response_type=cloud_iam' \ --data-urlencode 'grant_type=urn:ibm:params:oauth:grant-type:apikey' Replace xxx with your API

IBM Cloud Speech-to-Text SDK auth failures with bearer token

独自空忆成欢 提交于 2020-04-17 21:08:23
问题 I'm learning to use the Watson Speech JS SDK. In particular I like Transcribe from Microphone, with Alternatives. I'm generating my token with a Firebase Cloud Function. I'm using AngularJS, not JQuery. The first problem I'm running into is var stream = WatsonSpeech.SpeechToText.recognizeMicrophone(Object.assign(token, { objectMode: true, format: false, wordConfidence: true })); I got this error message: WatsonSpeechToText: missing required parameter: opts.token (Using $scope.token or token