https://github.com/watson-developer-cloud/text-to-speech-nodejs
This is a deprecated Watson Text to Speech Service Demo. A link to the newly supported demo is below
https://github.com/watson-developer-cloud/text-to-speech-nodejs
Last synced: 5 months ago
JSON representation
This is a deprecated Watson Text to Speech Service Demo. A link to the newly supported demo is below
- Host: GitHub
- URL: https://github.com/watson-developer-cloud/text-to-speech-nodejs
- Owner: watson-developer-cloud
- License: apache-2.0
- Archived: true
- Created: 2015-02-05T00:40:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T16:01:21.000Z (over 5 years ago)
- Last Synced: 2025-10-23T18:41:16.494Z (7 months ago)
- Language: JavaScript
- Homepage: https://www.ibm.com/demos/live/tts-demo/self-service/
- Size: 7.26 MB
- Stars: 350
- Watchers: 37
- Forks: 271
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-video - watson-developer-cloud/text-to-speech-nodejs - :speaker: Sample Node.js Application for the IBM Watson Text to Speech Service - watson-developer-cloud/text-to-speech-nodejs (Miscellaneous, Experimental & Niche Tools / Cross-Platform Media Tools)
README
# DEPRECATED
This demo and repo is no longer supported. You can find the newly supported Text to Speech Demo
here.
🔊 Text to Speech Demo
Node.js sample applications that shows some of the the IBM Watson Text to Speech service features.
Text to Speech is designed for streaming, low latency, synthesis of audio from text. It is the inverse of the automatic speech recognition.
You can view a [demo][demo_url] of this app.
## Prerequisites
1. Sign up for an [IBM Cloud account](https://cloud.ibm.com/registration/).
1. Download the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started#overview).
1. Create an instance of the Text to Speech service and get your credentials:
- Go to the [Text to Speech](https://cloud.ibm.com/catalog/services/text-to-speech) page in the IBM Cloud Catalog.
- Log in to your IBM Cloud account.
- Click **Create**.
- Click **Show** to view the service credentials.
- Copy the `apikey` value.
- Copy the `url` value.
## Configuring the application
1. In the application folder, copy the *.env.example* file and create a file called *.env*
```
cp .env.example .env
```
2. Open the *.env* file and add the service credentials that you obtained in the previous step.
Example *.env* file that configures the `apikey` and `url` for a Text to Speech service instance hosted in the US East region:
```
TEXT_TO_SPEECH_IAM_APIKEY=X4rbi8vwZmKpXfowaS3GAsA7vdy17Qh7km5D6EzKLHL2
TEXT_TO_SPEECH_URL=https://gateway-wdc.watsonplatform.net/text-to-speech/api
```
## Running locally
1. Install the dependencies
```
npm install
```
1. Run the application
```
npm start
```
1. View the application in a browser at `localhost:3000`
## Deploying to IBM Cloud as a Cloud Foundry Application
1. Login to IBM Cloud with the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started#overview)
```
ibmcloud login
```
1. Target a Cloud Foundry organization and space.
```
ibmcloud target --cf
```
1. Edit the *manifest.yml* file. Change the **name** field to something unique. For example, `- name: my-app-name`.
1. Deploy the application
```
ibmcloud app push
```
1. View the application online at the app URL, for example: https://my-app-name.mybluemix.net
## Directory structure
```none
.
├── app.js // express routes
├── config // express configuration
│ ├── error-handler.js
│ ├── express.js
│ └── security.js
├── manifest.yml
├── package.json
├── public // static resources
├── server.js // entry point
├── test // tests
└── views // react components
```
## License
This sample code is licensed under Apache 2.0.
## Contributing
See [CONTRIBUTING](./CONTRIBUTING.md).
## Open Source @ IBM
Find more open source projects on the [IBM Github Page](http://ibm.github.io/)
[service_url]: https://www.ibm.com/watson/services/text-to-speech/
[docs]: https://cloud.ibm.com/apidocs/text-to-speech
[sign_up]: https://cloud.ibm.com/registration/?target=/catalog/services/text-to-speech/
[demo_url]: https://text-to-speech-demo.ng.bluemix.net