An SDK to interact with the AssemblyAI v2 API in typescript/javascript.
npm install assemblyai-v2-node-sdknpm i @phillipchaffee/assemblyai-v2-node-sdk
To start using the client, just instantiate a new instance with your AssemblyAI API key.
``javascript`
const assemblyai = require('@phillipchaffee/assemblyai-v2-node-sdk');
const client = new assemblyai.AssemblyClient('ENTER YOUR ASSEMBLY KEY HERE');
`javascript
const transcript = await client.createTranscript({
audio_url: 'my-public-audio-url.wav',
});
client.pollForTranscript(transcript.id).then(result => {
console.log(result);
});
``
The main interface you will use is the AssemblyClient. You can find documentation for it here.
For more detailed information on the functionality available read the docs.
You may also want to reference the AssemblyAI API documentation.