naïve
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
    ParameterDescription
    url
    string
    A public link (https) to the audio or video. Send this or file.
    file
    string
    The file id (fil_…) of an audio or video file in your library. Send this or url.
    language
    string
    The spoken language as a code, e.g. "en". Left out, it is detected.
    timestamps
    boolean
    Return 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
    ParameterDescription
    file
    string · required
    The file id (fil_…) of the recording.
    text
    string · required
    The 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.

    from $0.002
    per second
    5 actions
  • Naive

    A long video cut into short, captioned clips.

    at cost + $0.10
    per job
    1 action
  • Naive

    Every video, clip, transcript and 3D job you started.

    Free
    no charge
    1 action