- Sign up for an IBM Cloud account.
- Download the IBM Cloud CLI.
- Create an instance of the Speech to Text, Text to Speech and Assistant service and get your credentials:
- Copy the
apikey
value. - Copy the
url
value.
- Copy the
- Open the config/config.env file and add the service credentials that you obtained in the previous step.
TEXT_TO_SPEECH_IAM_APIKEY=<your text to speech apikey> TEXT_TO_SPEECH_URL=<your text to speech url> SPEECH_TO_TEXT_IAM_APIKEY=<your speech to text apikey> SPEECH_TO_TEXT_URL=<your speech to text url> ASSISTANT_APIKEY=<your assistant apikey> ASSISTANT_IAM_APIKEY=<your assistant iam apikey> ASSISTANT_URL=<your assistan url> ASSISTANT_AUTH_TYPE=iam workspaceId=<your workspace id>
-
Install the dependencies
npm install
-
Run the application
npm start
-
View the application in a browser at
localhost:8080
-
It will works like a charm