Skip to content

fix(media): send ElevenLabs TTS text under the field fal requires - #9195

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/falai-elevenlabs-tts-text
Oct 18, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/falai-elevenlabs-tts-text

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Speech generation sent the text as prompt for every model. That is right for the default Gemini 3.1 Flash TTS, but fal's ElevenLabs TTS endpoints (fal-ai/elevenlabs/tts/*, which the generate-audio tool suggests as a speech override) require text, so every ElevenLabs speech call was rejected with a 422 (missing body.text)
  • ElevenLabs TTS models now get the text under text; voice still passes through as voice (the documented field on eleven-v3, multilingual-v2, and turbo-v2.5)
  • Model matching follows the existing model.includes('elevenlabs/music') pattern in the same function; Gemini, music, sfx, and voice-clone requests are unchanged

Type of Change

  • Bug fix

Testing

  • Field names confirmed against fal's published OpenAPI schemas: the ElevenLabs TTS inputs require text and accept voice; Gemini 3.1 Flash TTS requires prompt
  • New test in falai.test.ts asserts the body submitted to fal: ElevenLabs eleven-v3 and multilingual-v2 get { text, voice }, the Gemini default gets { prompt, voice }. Both ElevenLabs cases fail on the pre-fix code (prompt received); the whole file passes with the fix

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Oct 18, 2026 9:05pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Sends ElevenLabs speech text as text while keeping prompt for Gemini.

  • ElevenLabs speech requests send words in the text field.

Reviews (1) · Last reviewed commit: "fix(media): send ElevenLabs TTS text und..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 109bd82 into staging Oct 18, 2026
53 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/falai-elevenlabs-tts-text branch October 18, 2026 22:12

This branch was previously deployed

1 inactive deployment
Preview — 8b2141be Deployed Oct 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant