Skip to content

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

Merged
emir-karabeg merged 3 commits intostagingfrom
fix/eleven-tts-deployed
Jun 30, 2025
Merged

fix(eleven-labs): fixed URL path#584
emir-karabeg merged 3 commits intostagingfrom
fix/eleven-tts-deployed

Conversation

@emir-karabeg
Copy link
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
Copy link

vercel bot commented Jun 30, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Skipped (Inspect) Jun 30, 2025 4:24am
sim ⬜️ Skipped (Inspect) Jun 30, 2025 4:24am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Enhanced ElevenLabs text-to-speech implementation to fix deployment issues by replacing temporary blob URLs with persistent storage URLs.

  • Modified apps/sim/tools/elevenlabs/tts.ts to handle JSON responses with stored audioUrl instead of creating local blob URLs
  • Updated apps/sim/app/api/proxy/tts/route.ts to upload audio files to persistent storage and return accessible URLs
  • Fixed critical issue where deployed Eleven Labs blocks were returning unusable blobs
  • Added storage and URL utilities to manage audio file persistence

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

@delve-auditor
Copy link

delve-auditor bot commented Jun 30, 2025

No security or compliance issues detected. Reviewed everything up to 28b6099.

Security Overview
  • 🔎 Scanned files: 1 changed file(s)
Detected Code Changes
Change Type Relevant files
Enhancement ► route.ts
    Update audio URL generation using getBaseUrl utility

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.

@vercel vercel bot temporarily deployed to Preview – docs June 30, 2025 04:24 Inactive
@vercel vercel bot temporarily deployed to Preview – sim June 30, 2025 04:24 Inactive
@emir-karabeg emir-karabeg merged commit cb72606 into staging Jun 30, 2025
6 checks passed
@emir-karabeg emir-karabeg deleted the fix/eleven-tts-deployed branch June 30, 2025 04:28
emir-karabeg added a commit that referenced this pull request Jun 30, 2025
* fix: eleven labs deployment returning uploaded blob

* fix: added better URL pattern
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 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
* fix: icon properties error

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

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

* fix(eleven-labs): fixed URL path (simstudioai#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