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

Muse · Audio

How to Use xAI Text to Speech in Muse

xAI Text to Speech turns written scripts into narration for tutorials, spoken articles, and character dialogue. Its speech tags let you add pauses, whispers, and slower delivery within a passage.

Prompts to try with xAI Text to Speech in Muse

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

Write a 100-word explanation of how rain forms for a seven-year-old. Generate the narration with xAI Text to Speech, leaving a short pause between evaporation, condensation, and rainfall.

xAI Text to SpeechMuse
Try asking
  • Write a 150-word mystery scene set in an empty train station. Generate it with xAI Text to Speech, making one complete sentence a whispered aside.

  • Create a six-sentence French listening exercise about ordering breakfast. Use xAI Text to Speech to generate a normal reading and a slower reading of the same wording.

  • Draft a 90-word introduction to a podcast about urban gardening. Generate it with xAI Text to Speech, adding a short pause after the opening question.

  • Write a short museum welcome in English and translate it into Spanish. Generate both with xAI Text to Speech using the same built-in voice, with a pause before the visiting instructions.

How to set up xAI Text to Speech in Muse

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

Use the Muse connector

  1. Create an API key

    Create one under API keys in the Spiral console.

  2. Send Muse this message

    Muse reads Spiral's skill and asks for an API key.

    set up https://spiral.ai/SKILL.md
  3. Give Muse the key

    Paste the key when Muse asks for it, never in the chat itself.

Use the Spiral skill

  1. Send Muse 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 xAI Text to Speech

    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": "xai/tts/v1",
        "input": {
          "text": "Hello! This is xAI text to speech, brought to you by Fal AI."
        }
      }'

Then paste one of the prompts above: Muse finds xAI Text to Speech on Spiral, shows the price and runs it.

xAI Text to Speech providers and prices

Spiral runs xAI Text to Speech through fal. Open a card for today's price, with every fee included.

falAudio

Settings you can ask for

xAI Text to Speech works from your text. Ask Muse for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Voicecarina, zagan, helix, orion, luna, iris, altair, zenith and 20 moreeve

Built-in xAI voice to use for synthesis.

Languageauto, en, ar-EG, ar-SA, ar-AE, bn, zh, fr and 13 moreauto

BCP-47 language code or 'auto' for automatic detection. Supported: en, zh, fr, de, hi, id, it, ja, ko, pt-BR, pt-PT, ru, es-MX, es-ES, tr, vi, bn, ar-EG, ar-SA, ar-AE.

Every API field of xAI Text to Speech is on its tool page: open its card above.

What can you do with xAI Text to Speech in Muse?

Turn explanations, stories, and prepared translations into listening material with xAI Text to Speech. Ask the chat app to finish the script first, then generate a reading with pauses or slower passages where useful.

Spoken articles

Turn an edited article into narration. Divide scripts longer than 15,000 characters at section boundaries.

Product tutorial narration

Generate spoken instructions for a walkthrough, placing pauses between actions so listeners can follow along.

Translated training narration

Narrate prepared translations of a training lesson using the same built-in voice across supported languages.

Character dialogue drafts

Try a scene with whispered phrases, sighs, or laughter before choosing the delivery for each line.

Podcast narration drafts

Convert an approved introduction or scripted segment into speech, then review the pacing before editing the episode.

Spoken daily briefings

Have an agent prepare a short briefing from verified updates, then generate narration with pauses between topics.

Practice listening exercises

Generate a normal reading and a slower reading of the same short passage for language practice.

xAI Text to Speech success rate and speed on Spiral

Success and speed over the last 24 hours, across every run of these tools on Spiral.

Success rate
100.0%
Fastest median run time
40.5s
Runs, last 24 hours
52
ToolSuccessMedian timeRuns
xAI Text to Speech100.0%40.5s52

Questions about xAI Text to Speech in Muse

Can Muse use xAI Text to Speech?

Yes. Add Spiral to Muse as an MCP server, and Muse can find and run xAI Text to Speech like any built-in tool.

How much does xAI Text to Speech cost in Muse?

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

Do I need a fal account to use xAI Text to Speech in Muse?

You need no fal account. Muse uses one Spiral API key for every tool, and Spiral runs xAI Text to Speech on its own fal account.

How long does it take to set up xAI Text to Speech in Muse?

About two minutes: create an API key, then send Muse this message, then give Muse the key.

Does Muse wait while xAI Text to Speech runs?

xAI Text to Speech runs in the background. Muse starts the run, checks on it and gives you the audio when it's ready.

What is xAI Text to Speech useful for?

Use it to turn finished scripts into spoken articles, tutorials, or dialogue. Speech tags help when a passage needs a pause, a whispered aside, or a change in pace.

Can xAI Text to Speech narrate a long article?

Yes, but the listed endpoint limits each request to 15,000 characters. Split longer scripts at paragraph or section boundaries before generating the audio.

How do I add pauses or change the delivery?

Put [pause] where a break belongs. Wrap a passage in <whisper>...</whisper> or <slow>...</slow> to change how that passage is spoken.

How should I apply speech tags?

Wrap complete phrases instead of tagging individual words. Start with one passage, listen to the result, and adjust the tagged span before generating the full script.

Can the same voice narrate different languages?

Yes. Any built-in voice can speak any supported language, so you can keep the same voice selection across translated scripts.

Get started

Start using xAI Text to Speech in Muse

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

Paste this into Muse:

Set up Muse

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