Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.25 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.25 KB

Quickstart: Synthesize speech in JavaScript on Node.js.

This sample demonstrates how to synthesize speech with the Speech SDK for JavaScript on Node.js.

Prerequisites

Prepare the sample

  • Download the sample code to your development PC.
  • Open a command prompt at the quickstart directory, and run npm install to install the dependencies of the quickstart. This will place the Speech SDK library in the node_modules directory.
  • Update the index.js file with your configuration:
    • Replace the string YourSubscriptionKey with your own subscription key.
    • Replace the string YourServiceRegion with the service region of your subscription. For example, replace with westus if you are using the 30-day free trial subscription.
    • Replace the string YourAudioFile.wav with a path you desire.

Run the sample

Execute node index.js from the location where you have downloaded this quickstart.

References