JavaScript SDK

The JavaScript SDK can be downloaded from SDK Downloads.

The JavaScript SDK contains the following files:

  • voicelayer.js - this is the main file that contains the functions that will be called directly.
  • dw.js - this file is a Web Worker automatically imported by voicelayer.js
  • ew.js - this file is a Web Worker automatically imported by voicelayer.js
  • rw.js - this file is a Web Worker automatically imported by voicelayer.js
  • sw.js - this file is a Web Worker automatically imported by voicelayer.js

Since the workers are automatically imported into when you import voicelayer.js the only step required to get started with the SDK is:

<script src="voicelayer.js"></script>

By default the worker files files are expected to be located in the root directory. The directory can be configured when intializing If the SDK files are located in a different directory.