Call Us Today! 877.742.2583

Page tree
Skip to end of metadata
Go to start of metadata


This is will cover the purchase, installation, and configuration of our commercial module mod_watson. This is a mod to interface with IBM's Watson TTS and ASR interfaces.
Out-of-the-box this package is ONLY Available on Debian 8, when FreeSWITCH is installed from packages. See below for further instruction how to install on compiled FreeSWITCH

 Click here to expand Table of Contents




1) Purchase the module

Scroll down the page to find the the Watson product

2) Install the deb file

3) Run the commercial module validator

input your 32 character hex code license number provided with your purchase code when prompted

4) Unzip the resulting zip file you received from validator

5) Place unzipped <hex>.conf file /etc/freeswitch directory

6) Start the FreeSWITCH License Server

You can restart the license server if needed in future

Modify watson.xml to match your api settings.

#TODO: show more detailed examples of how this is done

Load the module from fs_cli

Add an ./autoload_config/modules.conf.xml entry

Usage Examples

#TODO: show more examples for dialplan and ESL

Dialplan TTS example

you find using "watson" will cache files
<action application="speak" data="watson|en-US_LisaVoice|Please hold while we connect you to the conference"/>

mod_watson.c:368 found cached file [/tmp/watson-en-US_LisaVoice-ebad4a40ba900909e04f28c13ea8a862-8000.wav]

and "watson_ws" does not cache files
<action application="speak" data="watson_ws|en-US_LisaVoice|Please hold while we connect you to the conference"/>

This is working as designed. Additional functionality will require a Feature Request

Lua TTS example

Lua ASR exmple

Javascript usage example

--->  must have mod_v8 installed  <---

How to manually install mod_watson on a compiled FreeSWITCH

  • No labels