Back to Primitives
2 actions · from $0.0034 / minute
Transcription
NaiveTool
Turn speech in an audio or video file into text, with per-segment timestamps and the language it detected. Or line up a script you already have with its recording, word by word. Billed per minute of audio, at cost.
Part of AI models
Actions
Every action: POST /v1/tools/runs { "tool": "<name>", "input": { … } }
- Transcription
Transcribe audio
audio.transcribe
Speech in a file or a link as text, with timestamps.
Parameters Parameter Description urlstringA public link (https) to the audio or video. Send this or file. filestringThe file id (fil_…) of an audio or video file in your library. Send this or url. languagestringThe spoken language as a code, e.g. "en". Left out, it is detected. timestampsbooleanReturn per-segment start and end times (on by default). Example response
{ "text": "Welcome back to the show. Today we talk pricing.", "language": "en", "duration_seconds": 5.2, "segments": [ { "start_seconds": 0, "end_seconds": 2.1, "text": "Welcome back to the show." }, { "start_seconds": 2.1, "end_seconds": 5.2, "text": "Today we talk pricing." } ] }about $0.004 / minuteAsync - Transcription
Align a script
voice.align
Word-by-word timings for a script and its recording.
Parameters Parameter Description filestring · requiredThe file id (fil_…) of the recording. textstring · requiredThe exact words spoken in it, up to 100,000 characters. Example response
{ "object": "audio_alignment", "words": [ { "text": "Your", "start_seconds": 0, "end_seconds": 0.21 }, { "text": "order", "start_seconds": 0.21, "end_seconds": 0.52 } ], "duration_seconds": 3.4, "cost_micro_usd": 224 }$0.0034 / minute
Pricing
from $0.0034 / minute
Billed per call to one prepaid balance. No vendor accounts, no subscription.
Code
import { createNaive } from "@usenaive-sdk/naive"; const naive = createNaive(); // reads NAIVE_API_KEYconst run = await naive.tools.run("audio.transcribe", {"url":"https://files.usenaive.ai/episode-12.mp3"}, { wait: true });console.log(run.output);
Related tools
- Naive
Text to speech, dialogue, voice changer and voice isolation.
5 actionsfrom $0.002per second - Naive
A long video cut into short, captioned clips.
1 actionat cost + $0.10per job - Naive
Every video, clip, transcript and 3D job you started.
1 actionFreeno charge