Voice
Transcribe
Whisper
WhisperAPI

whisperapi

Name

whisperApi

Description

Uses https://whisperapi.com (opens in a new tab) to transcribe voice into text.

Takes a url (audioUrl) and returns a string with the transcription.

API Key

Uses the whisperapi API key:

index.ts

const aigur = createClient({
apiKeys: {
whisperapi: process.env.WHISPER_API_KEY
}
})

Example

index.ts

import { whisperApi } from '@aigur/client';
//...
flow.node(whisperApi, () => ({
audioUrl: 'https://...',
})) // --> {text: 'Hello Boopsy'}

Input

Property Type Required Description Default Value
audioUrl string Yes The url of the audio file to be transcribed.
language string No The language of the audio. en
autoDetectLanguage boolean No If set, the API will attempt to autodetect the audio's language. (Overrides the language property) false
fileType string No The file type of the audio file. mp3
task enum('transcribe', 'translate') No Transcribes or translates (to English) the audio. transcribe

Output

Property Type
text string