assemblyai-v2-node-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@phillipchaffee/assemblyai-v2-node-sdk

Getting started

Installing the module

npm i @phillipchaffee/assemblyai-v2-node-sdk

Initialization

To start using the client, just instantiate a new instance with your AssemblyAI API key.

const assemblyai = require('@phillipchaffee/assemblyai-v2-node-sdk');
const client = new assemblyai.AssemblyClient('ENTER YOUR ASSEMBLY KEY HERE');

Upload an audio file for transcription

const transcript = await client.createTranscript({
  audio_url: 'my-public-audio-url.wav',
});

client.pollForTranscript(transcript.id).then(result => {
  console.log(result);
});

AssemblyClient

The main interface you will use is the AssemblyClient. You can find documentation for it here.

Full Documentation

For more detailed information on the functionality available read the docs.

You may also want to reference the AssemblyAI API documentation.

Package Sidebar

Install

npm i assemblyai-v2-node-sdk

Weekly Downloads

25

Version

0.0.4

License

ISC

Unpacked Size

1.05 MB

Total Files

185

Last publish

Collaborators

  • phillipchaffee