franc-audio-to-text

2.0.4 • Public • Published

Assembly Ai wrapper

DEMO WITH NEXTJS

Installation

npm install franc-audio-to-text

Usage with Typescript

import TranscribeAudioToText from "franc-audio-to-text";

What you need to use this wrapper

Demo - Test using the following code

import TranscribeAudioToText from "franc-audio-to-text";
import * as dotenv from 'dotenv';
dotenv.config();
const apiKey = process.env.ASSEMBLY_API_KEY!; // User provides their API key
const audioUrl = 'https://storage.googleapis.com/aai-web-samples/5_common_sports_injuries.mp3';

const customAI = new TranscribeAudioToText(apiKey);

(async () => {
  try {
    const transcript = await customAI.createTranscript(audioUrl);
    console.log(transcript);
  } catch (error: any) {
    console.error(error.message);
  }
})();

Changelog for franc-audio-to-text

[2.0.4] - 2024-01-04 (Current version)

Removed

  • Removed 'natural' package: Due to persistent bugs causing issues with language detection, the 'natural' package dependency has been removed from the project.

Hint and note

this wrapper supports only typescript

That's it! You're ready to go!

support or contact

Having trouble with this wrapper? please contact me at E-mail me

Package Sidebar

Install

npm i franc-audio-to-text

Weekly Downloads

4

Version

2.0.4

License

ISC

Unpacked Size

21.6 kB

Total Files

8

Last publish

Collaborators

  • francis254