Thumbnail

Watson Text To Speech

by Avatarptp

Convert written text into natural-sounding audio in a variety of languages and voices.

How to add the Watson Text To Speech robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Audio category tab.
  5. Press the Watson Text To Speech icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Watson Text To Speech robot skill.

How to use the Watson Text To Speech robot skill

With Watson Text to Speech, you can generate human-like audio from written text. Improve the customer experience and engagement by interacting with users in multiple languages and tones. Increase content accessibility for users with different abilities, provide audio options to avoid distracted driving, or automate customer service interactions to increase efficiencies.

You will need an IBM cloud account (Free Tier)

Watson Text To Speech User-inserted image

Sign up for IBM Cloud User-inserted image

Log in to IBM Cloud User-inserted image

IBM Cloud dashboard User-inserted image Press "Create Resource" Text to Speech resource: User-inserted image

Quote:

The Lite plan gets you started with 10,000 characters per month at no cost.
Plugin Configuration: User-inserted image

  1. Press Change to configure Service Credentials i.e. URL and Api Key
  2. Select the default Voice for the Text To Speech
  3. Check the Active checkbox to enable the service

How to use examples :

EZ Script: User-inserted image Note: A specific voice name can be copied from the debug window

$text = "Hallo Wereld! Dit is Watson aan het woord"

#Text to speech will use the default voice specified in the configuration.
controlCommand("Watson Text To Speech", "SayWait", $text)

controlCommand("Watson Text To Speech", "SayWait2", "Bonjour le monde! C'est Watson qui parle", "fr-FR_ReneeV3Voice")

controlCommand("Watson Text To Speech", "SayWait2", "Ciao mondo! Questo è Watson che parla", "it-IT_FrancescaV3Voice")

controlCommand("Watson Text To Speech", "SayWait2", "Hello World! This is Watson speaking", "en-US_OliviaV3Voice")

Cheat Sheet: User-inserted image

Blocky example: User-inserted image


ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

#1   — Edited

WOW! How about this! This is no simple thing. Lot's of work went into this. Thanks!!

PRO
USA
#2  

Thanks Dave !

Before it was a single Watson plugin supporting multiple services: Speech To Text Text To Speech Visual Recognition Assistant Language Translator

It was too big and a little difficult to maintain, so I split in multiple service plugins and I'm fixing/releasing one by one.

The big one became the: Watson Speech To Text

PRO
Canada
#4   — Edited

ControlCommand under javascript doesn't work even though it is on menu for selected items.

Example: ControlCommand("Watson Speech To Text", StartListening);

in Javascript gets error StartLisening not defined Start Stop etc all get the same error

You need to modify the auto menu generated command to put quotations around StartListening ControlCommand("Watson Speech To Text", "StartListening");

In EZ-Script this works fine ControlCommand("Watson Speech To Text", StartListening)

I think ARC will need an update to fix this until then if using the auto ControlCommand menu to generate Javascript remember to add quotes.

PRO
Synthiam
#5  

Arc doesn’t need an update - the robot skill needs the update. Arc’s compilers can’t guess when a quote is needed or not :)

My solution is put your own quotes around the word/string. All strings need quotes.