Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

text-to-speech-nodejs

:speaker: Sample Node.js Application for the IBM Watson Text to Speech Service

Subscribe to updates I use text-to-speech-nodejs


Statistics on text-to-speech-nodejs

Number of watchers on Github 177
Number of open issues 6
Average time to close an issue about 2 months
Main language CSS
Average time to merge a PR 5 days
Open pull requests 7+
Closed pull requests 23+
Last commit over 1 year ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 2.4 MB
Homepage https://www.ibm.c...
Organization / Authorwatson-developer-cloud
Latest Releasev1.1.5
Contributors8
Page Updated
Do you use text-to-speech-nodejs? Leave a review!
View open issues (6)
View text-to-speech-nodejs activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating text-to-speech-nodejs for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Text to Speech Demo Build Status

The IBM Watson Text to Speech service is designed for streaming, low latency, synthesis of audio from text. It is the inverse of the automatic speech recognition.

Deploy to Bluemix

Getting started

  1. You need a Bluemix account. If you don't have one, sign up.

  2. Download and install the Cloud-foundry CLI tool if you haven't already.

  3. Edit the manifest.yml file and change <application-name> to something unique. The name you use determines the URL of your application. For example, <application-name>.mybluemix.net.

  applications:
  - services:
    - my-service-instance
    name: <application-name>
    command: npm start
    path: .
    memory: 512M
  1. Connect to Bluemix with the command line tool.
  cf api https://api.ng.bluemix.net
  cf login
  1. Create and retrieve service keys to access the Text to Speech service:
  cf create-service text_to_speech standard my-tts-service
  cf create-service-key my-tts-service myKey
  cf service-key my-tts-service myKey
  1. Create a .env file in the root directory by copying the sample .env.example file using the following command:
  cp .env.example .env

You will update the .env with the information you retrieved in steps 5.

The .env file will look something like the following:

  TEXT_TO_SPEECH_USERNAME=<username>
  TEXT_TO_SPEECH_PASSWORD=<password>
  1. Install the dependencies you application need:
  npm install
  1. Start the application locally:
  npm start
  1. Point your browser to http://localhost:3000.

  2. Optional: Push the application to Bluemix:

  cf push

After completing the steps above, you are ready to test your application. Start a browser and enter the URL of your application.

        <your application name>.mybluemix.net

For more details about developing applications that use Watson Developer Cloud services in Bluemix, see Getting started with Watson Developer Cloud and Bluemix.

Troubleshooting

  • The main source of troubleshooting and recovery information is the Bluemix log. To view the log, run the following command:
  cf logs <application-name> --recent
  • For more details about the service, see the documentation for the Text to Speech service.

Directory structure

.
 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.

Open Source @ IBM

Find more open source projects on the IBM Github Page

Privacy Notice

Sample web applications that include this package may be configured to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Node.js package version
  • Node.js repository URL
  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)
  • Labels of bound services
  • Number of instances for each bound service and associated plan information

This data is collected from the package.json file in the sample application and the VCAP_APPLICATION and VCAP_SERVICES environment variables in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

text-to-speech-nodejs open issues Ask a question     (View All Issues)
  • about 3 years Synthesize stops when text contains invalid character(s)
  • about 3 years No error message when incorrect SSML input value is specified
  • over 3 years developer experience checklist
  • almost 4 years Investigate out of memory crashes
text-to-speech-nodejs open pull requests (View All Pulls)
  • watson-developer-cloud@1.2.4 untested ⚠️
  • watson-developer-cloud@1.2.5 untested ⚠️
  • Change to use platform sdk
  • [DO NOT MERGE] Implements design changes to demo
  • Fix prosody syntax error
  • Wait 5 seconds before testing the new application
  • use published npm package
text-to-speech-nodejs list of languages used
text-to-speech-nodejs latest release notes
v1.1.5 First Release

Node.js applications that uses the IBM Watson Text to Speech speech to synthesize text.

Other projects in CSS