Skip to content

fix(product-launch): honor TTS provider selection#2229

Open
miguel-heygen wants to merge 1 commit into
mainfrom
fix/product-launch-tts-provider
Open

fix(product-launch): honor TTS provider selection#2229
miguel-heygen wants to merge 1 commit into
mainfrom
fix/product-launch-tts-provider

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Allow the product-launch audio adapter to pass an explicit TTS provider to the shared media engine. Support both --provider and HF_TTS_PROVIDER, with the CLI flag taking precedence.

Why

The adapter hard-coded provider: "auto", so users who selected an offline or alternate provider still hit HeyGen first and could receive an avoidable HTTP 402 before manually patching the copied skill script.

How

  • Resolve the provider from --provider, then HF_TTS_PROVIDER, then auto.
  • Include the selected provider in the neutral audio request.
  • Document provider selection in the product-launch workflow.
  • Add regression tests for flag passthrough, environment fallback, and precedence.

Test plan

  • bun run test:skills (217 passed)
  • bunx oxfmt --check skills/product-launch-video/SKILL.md skills/product-launch-video/scripts/audio.mjs skills/product-launch-video/scripts/audio.test.mjs
  • bunx oxlint skills/product-launch-video/scripts/audio.mjs skills/product-launch-video/scripts/audio.test.mjs
  • bun run lint:skills

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