Spiral gives your agent every tool with one account. Browse the tools →

opencode · AudioReleased 2026-10-20

How to Use HeyGen Voice in opencode

Use HeyGen Voice for course narration, podcast scripts, and spoken app content. It follows the standard generation path; HeyGen Voice Turbo shortens that step when faster production matters.

Prompts to try with HeyGen Voice in opencode

Copy an example into opencode, or ask in your own words.

Read the README and draft an 80-word spoken introduction to the project. Use HeyGen Voice with low expressiveness to generate the narration, keeping commands and code blocks out of the spoken text.

HeyGen Voiceopencode
Try asking
  • Read the tutorial files and turn the first lesson into a conversational narration script. Use HeyGen Voice to generate one paragraph as a sample before processing the remaining sections.

  • Find the approved troubleshooting instructions in the docs. Rewrite one answer for listening, then use HeyGen Voice to generate a WAV with clear sentence boundaries and low expressiveness.

  • Read this paragraph aloud with HeyGen Voice in a calm, warm voice and give me the MP3. Save the result in ./assets.

  • Make a 30-second podcast intro voiceover with HeyGen Voice.

How to set up HeyGen Voice in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run HeyGen Voice

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "heygen/heygen-voice",
        "input": {
          "text": "Hello! This is HeyGen Voice, speaking on fal."
        }
      }'

Then paste one of the prompts above: opencode finds HeyGen Voice on Spiral, shows the price and runs it.

HeyGen Voice providers and prices

Spiral runs HeyGen Voice through fal. Open a card for today's price, with every fee included.

falAudio
HeyGen Voice
heygen/heygen-voice

Settings you can ask for

HeyGen Voice works from your text. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
VoiceJonah, Nadine, Tabitha, Soren, Elowen, Vincent, Jocelyn, Marielle and 16 moreJonah

HeyGen public voice. Ignored when reference_audio_url is set.

Languagear, be, bg, ca, cs, da, de, el and 31 more

Language of the text. Detected from the text when omitted.

Expressiveness boost0 to 11

How expressive the delivery is.

Every API field of HeyGen Voice is on its tool page: open its card above.

What can you do with HeyGen Voice in opencode?

Turn project documentation into spoken walkthroughs, onboarding messages, and tutorial narration. Have the agent draft scripts from the files, then generate separate audio sections for review.

Course lesson narration

Turn a lesson script into spoken instruction. Test one explanatory paragraph with lower expressiveness before producing the remaining sections.

App welcome messages

Create a spoken welcome that explains the app's first useful action. Keep the script focused on one task and review the opening sentence by ear.

Support reply audio

Convert an approved troubleshooting answer into a spoken response. Use short sentences and listen for pauses between instructions.

Podcast intros

Generate an introduction from the episode title and summary. Keep production directions outside the spoken script and audition the complete introduction.

Ad read comparisons

Produce several reads of approved ad copy with different expressiveness levels. Compare delivery while keeping the wording fixed.

Product walkthrough narration

Write a spoken explanation of a product workflow, then generate each section separately. Review terminology and pacing before adding the narration to the edit.

Questions about HeyGen Voice in opencode

Can opencode use HeyGen Voice?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run HeyGen Voice like any built-in tool.

How much does HeyGen Voice cost in opencode?

Each item in `text` adds $0.000039. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a fal account to use HeyGen Voice in opencode?

No. Spiral runs HeyGen Voice on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up HeyGen Voice in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while HeyGen Voice runs?

HeyGen Voice runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.

How should I choose between HeyGen Voice and HeyGen Voice Turbo?

Turbo uses the same voices with a shorter generation step. Choose it when frequent revisions or repeated narration make speed useful; compare a representative passage before committing to a longer project.

What audio format does HeyGen Voice produce?

HeyGen Voice and HeyGen Voice Turbo produce 44.1 kHz WAV audio. That gives you an audio file to use in an editor or app.

How much expressiveness should I use?

Start lower for instructional narration and higher for an ad read. Zero gives the baseline delivery; compare the same sentence at different levels before generating the full script.

How should I write a script for HeyGen Voice?

Write complete sentences with enough context to establish the intended emotion. The model reads contextual cues, so test a complete paragraph rather than judging a voice from an isolated word.

Can I count on an exact emotional performance?

Text-to-speech can miss subtle tone, pacing, or emotion. Review important lines by ear and try revised wording or punctuation before approving the recording.

Get started

Start using HeyGen Voice in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options