Prerequisites
Obtain an API key in the console and set it as the DASHSCOPE_API_KEY environment variable.
Install the SDK
Requires Node.js 18 or later. Download the SDK 0.1.0 package, then run this command in your project:
Quick start
Download the sample audio as input.mp3 and convert it to 16 kHz, 16-bit, mono PCM:
example.mjs and run node example.mjs.