naïve
Back to Primitives

5 actions · from $0.002 / second

Voice

NaiveTool

Lifelike speech from text in stock voices, a scripted dialogue between several voices, a recording re-spoken in another voice, or a voice lifted clean off its background noise. Billed per character of text or per second of audio, at cost.

Part of AI models

Actions

Every action: POST /v1/tools/runs { "tool": "<name>", "input": { … } }

  • Voice

    Text to speech

    voice.speak

    An audio file from text.

    Parameters
    ParameterDescription
    text
    string · required
    The words to say, up to 4,096 characters.
    voice
    string
    A voice id from List voices. Left out, the default voice reads it.
    Example response
    {
      "object": "speech_generation",
      "file": {
        "id": "fil_01JDXC",
        "url": "https://files.usenaive.ai/fil_01JDXC.mp3"
      },
      "duration_seconds": 3.4
    }
    up to $0.10 / 1K characters
  • Voice

    List voices

    voice.voices

    The stock voices you can speak with, by id.

    Example response
    {
      "object": "list",
      "data": [
        {
          "id": "voice_warm_narrator",
          "object": "voice",
          "name": "Warm narrator",
          "gender": "female",
          "accent": "american",
          "language": "en"
        }
      ]
    }
    Free
  • Voice

    Text to dialogue

    voice.dialogue

    A conversation between several voices as one audio file.

    Parameters
    ParameterDescription
    lines
    object[] · required
    The lines in order (up to 20, 3,000 characters in all), each {text, voice} with a voice id from List voices. Up to 10 voices.
    Example response
    {
      "object": "speech_generation",
      "file": {
        "id": "fil_01JDXT",
        "url": "https://files.usenaive.ai/fil_01JDXT.mp3"
      },
      "duration_seconds": 3.9,
      "cost_micro_usd": 4700
    }
    $0.10 / 1K characters
  • Voice

    Change a voice

    voice.change

    A recording re-spoken in a stock voice, same words and timing.

    Parameters
    ParameterDescription
    file
    string · required
    The file id (fil_…) of the recording, up to 5 minutes.
    voice
    string · required
    The voice id to speak it in, from List voices.
    Example response
    {
      "object": "speech_generation",
      "file": {
        "id": "fil_01JDXU",
        "url": "https://files.usenaive.ai/fil_01JDXU.mp3"
      },
      "duration_seconds": 3.4,
      "cost_micro_usd": 8000
    }
    $0.002 / second
  • Voice

    Isolate a voice

    voice.isolate

    The voice in a recording with the background noise removed.

    Parameters
    ParameterDescription
    file
    string · required
    The file id (fil_…) of the recording, up to 10 minutes.
    Example response
    {
      "object": "speech_generation",
      "file": {
        "id": "fil_01JDXV",
        "url": "https://files.usenaive.ai/fil_01JDXV.mp3"
      },
      "duration_seconds": 3.4,
      "cost_micro_usd": 8000
    }
    $0.002 / second

Pricing

from $0.002 / second

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("voice.speak", {"text":"Your order has shipped and arrives Thursday."}, { wait: true });console.log(run.output);

Related tools

  • Naive

    Speech to text with timestamps, from a file or a link.

    from $0.0034
    per minute
    2 actions
  • Naive

    A short sound effect from a prompt.

    $0.002
    per second
    1 action
  • Naive

    Instrumental tracks and sound effects.

    $0.0025
    per second
    1 action