Skip to content

feat: default output format to mp3 - #8

Merged
vrishab-jpg merged 2 commits into
masterfrom
feat/default-mp3
Jul 7, 2026
Merged

feat: default output format to mp3#8
vrishab-jpg merged 2 commits into
masterfrom
feat/default-mp3

Conversation

@vrishab-jpg

Copy link
Copy Markdown
Collaborator

With no outputFormat, the provider previously sent no format and inherited the API's server default — wav, which is ~9x larger than mp3 for the same speech (390 KB vs 41 KB in the E2E run) and documented in the spec as subject to change ("we recommend always passing the specific param you expect"). Peer speech providers (ElevenLabs, OpenAI) default to mp3.

  • No format specified → audio_format: "mp3"
  • Unknown outputFormat (warned) → falls back to mp3 instead of the server default
  • Explicit formats and codec strings behave exactly as before

Live-verified: defaults now return audio/mpeg (41 KB) with zero warnings. 20/20 tests.

Dweeb1578 added 2 commits July 7, 2026 15:20
Without an explicit format the API's server default applies — currently
wav (~9x larger than mp3 for the same speech) and documented as subject
to change. Peer providers (ElevenLabs, OpenAI) default to mp3. The
unknown-format warning path now also falls back to mp3 instead of the
server default.
The developer platform brands as SpeechifyAI (one word) — docs.speechify.ai
title and product names — distinct from the Speechify consumer app. Code
identifiers, npm scope, and SPEECHIFY_API_KEY are unchanged contracts.
@vrishab-jpg
vrishab-jpg merged commit bc68f56 into master Jul 7, 2026
4 checks passed
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.

2 participants