GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - IBM/text-to-speech-code-pattern: WARNING: This repository is no longer maintained

This repository was archived by the owner on Feb 15, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

474 Commits
474 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.husky
.husky
 
 
config
config
 
 
doc/source
doc/source
 
 
public
public
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
ACKNOWLEDGEMENTS.md
ACKNOWLEDGEMENTS.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DEVELOPING.md
DEVELOPING.md
 
 
Dockerfile
Dockerfile
 
 
Dockerfile-tools
Dockerfile-tools
 
 
LICENSE
LICENSE
 
 
MAINTAINERS.md
MAINTAINERS.md
 
 
README.md
README.md
 
 
TESTING.md
TESTING.md
 
 
app.js
app.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
server.js
server.js
 
 

Repository files navigation

WARNING: This repository is no longer maintained ⚠️

This repository will not be updated. The repository will be kept available in read-only mode.

Build Status

Text to Speech Code Pattern

Sample React app for playing around with the Watson Text to Speech service

✨ Demo: https://text-to-speech-code-pattern.ng.bluemix.net/ ✨

architecture

Flow

  1. User supplies some text as input to the application (running locally, in the IBM Cloud or in IBM Cloud Pak for Data).
  2. The application sends the text to the Watson Text to Speech service.
  3. As the data is processed, the Text to Speech service returns audio information to the HTML5 audio element for playback.

Steps

  1. Provision Watson Text to Speech
  2. Deploy the server
  3. Use the web app

1. Provision Watson Text to Speech

The instructions will depend on whether you are provisioning services using IBM Cloud Pak for Data or on IBM Cloud.

Click to expand one:

IBM Cloud Pak for Data

Install and provision

The service is not available by default. An administrator must install it on the IBM Cloud Pak for Data platform, and you must be given access to the service. To determine whether the service is installed, click the Services icon (services_icon) and check whether the service is enabled.

Gather credentials

  1. For production use, create a user to use for authentication. From the main navigation menu (☰), select Administer > Manage users and then + New user.
  2. From the main navigation menu (☰), select My instances.
  3. On the Provisioned instances tab, find your service instance, and then hover over the last column to find and click the ellipses icon. Choose View details.
  4. Copy the URL to use as the TEXT_TO_SPEECH_URL when you configure credentials.
  5. Optionally, copy the Bearer token to use in development testing only. It is not recommended to use the bearer token except during testing and development because that token does not expire.
  6. Use the Menu and select Users and + Add user to grant your user access to this service instance. This is the TEXT_TO_SPEECH_USERNAME (and TEXT_TO_SPEECH_PASSWORD) you will use when you configure credentials to allow the Node.js server to authenticate.
IBM Cloud

Create the service instance

  • If you do not have an IBM Cloud account, register for a free trial account here.
  • Click here to create a Text to Speech instance.
    • Select a region.
    • Select a pricing plan (Lite is free).
    • Set your Service name or use the generated one.
    • Click Create.
  • Gather credentials
    • Copy the API Key and URL to use when you configure and deploy the server.

If you need to find the service later, use the main navigation menu (☰) and select Resource list to find the service under Services. Click on the service name to get back to the Manage view (where you can collect the API Key and URL).

2. Deploy the server

Click on one of the options below for instructions on deploying the Node.js server.

local openshift

3. Use the web app

  • Select an input Voice model.

  • Use the demo Text to synthesize or enter your own text into that text box.

  • Press the Synthesize button to create audio from that text and hear it in the selected voice.

  • The audio plays automatically. You can also use the Synthesized audio controls to pause, play, etc.

ui.png

Developing and testing

See DEVELOPING.md and TESTING.md for more details about developing and testing this app.

License

This code pattern is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 and the Apache License, Version 2.

Apache License FAQ

About

WARNING: This repository is no longer maintained

developer.ibm.com/patterns/generate-human-like-audio-from-text/

Topics

carboncarbon-design-systemibm-cloudibm-cloud-pakibm-watsonibm-watson-servicesibm-watson-speechnodejsreactreactjsspeech-servicesspeech-synthesistext-to-speechwatson-serviceswatson-speech

Resources

Readme
Apache-2.0 license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

14 stars

Watchers

7 watching

Forks

10 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.