Skip to content

fix(eleven-labs): fixed deployed eleven labs returning unusable blob#583

Merged
emir-karabeg merged 1 commit into
stagingfrom
fix/eleven-tts-deployed
Jun 30, 2025
Merged

fix(eleven-labs): fixed deployed eleven labs returning unusable blob#583
emir-karabeg merged 1 commit into
stagingfrom
fix/eleven-tts-deployed

Conversation

@emir-karabeg

Copy link
Copy Markdown
Collaborator

Description

Previously, a deployed Eleven Labs block would return an unusable blob. Now, we upload to storage and return a stored URL.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Use Eleven Labs in the workflow and deployed.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally and in CI (bun run test)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have updated version numbers as needed (if needed)
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Security Considerations:

  • My changes do not introduce any new security vulnerabilities
  • I have considered the security implications of my changes

@vercel

vercel Bot commented Jun 30, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 30, 2025 4:06am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Skipped (Inspect) Jun 30, 2025 4:06am

@greptile-apps greptile-apps 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.

PR Summary

Fixed critical ElevenLabs TTS functionality in deployed environments by implementing persistent audio storage. Previously unusable blob URLs are now replaced with stable storage URLs.

  • Modified apps/sim/app/api/proxy/tts/route.ts to store audio files in S3/Azure instead of returning raw blobs
  • Updated apps/sim/tools/elevenlabs/tts.ts to handle JSON responses containing stored audio URLs
  • Added proper error handling and logging for storage operations
  • Ensured audio URLs remain accessible across different contexts and browser sessions

2 files reviewed, no comments
Edit PR Review Bot Settings | Greptile

@emir-karabeg emir-karabeg force-pushed the fix/eleven-tts-deployed branch from 2053a95 to d376410 Compare June 30, 2025 04:00
@vercel vercel Bot temporarily deployed to Preview – docs June 30, 2025 04:00 Inactive
@delve-auditor

delve-auditor Bot commented Jun 30, 2025

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to d376410.

Security Overview
  • 🔎 Scanned files: 2 changed file(s)
Detected Code Changes
Change Type Relevant files
Bug Fix ► route.ts
    Update Eleven Labs TTS response to return uploaded file URL
► tts.ts
    Update response handling to use provided audio URL

Reply to this PR with @delve-auditor followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.

@emir-karabeg emir-karabeg merged commit 29374ec into staging Jun 30, 2025
6 checks passed
@emir-karabeg emir-karabeg deleted the fix/eleven-tts-deployed branch June 30, 2025 04:08
emir-karabeg added a commit that referenced this pull request Jun 30, 2025
* fix: icon properties error

* chore(ci): run ci on staging + migrations (#575)

* fix: eleven labs deployment returning uploaded blob (#583)

* fix(eleven-labs): fixed URL path (#584)

* fix: eleven labs deployment returning uploaded blob

* fix: added better URL pattern

---------

Co-authored-by: Aditya Tripathi <aditya@climactic.co>
arenadeveloper02 referenced this pull request in arenadeveloper02/p2-sim Sep 19, 2025
* fix: icon properties error

* chore(ci): run ci on staging + migrations (#575)

* fix: eleven labs deployment returning uploaded blob (#583)

* fix(eleven-labs): fixed URL path (#584)

* fix: eleven labs deployment returning uploaded blob

* fix: added better URL pattern

---------

Co-authored-by: Aditya Tripathi <aditya@climactic.co>
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