chore: bump speechify SDK to v3.0.1 across recipes and rename api_key -> token - #3
Merged
Conversation
… -> token
speechify-api v3.0.0 renamed the constructor kwarg from api_key/apiKey to
token, so every recipe that constructed the client needed updating. Also bumps
the pnpm catalog + all pyproject pins so the recipes actually install v3.0.1.
- pnpm-workspace.yaml catalog: @speechify/api 2.0.0 -> 3.0.1
- recipes/audio/python/sdk/{quickstart,streaming,ssml-emotion,speech-marks,voice-cloning}/pyproject.toml
and templates/python/recipe/pyproject.toml + agents/python-recipes.md:
speechify-api>=2.0.0 -> >=3.0.1
- Python SDK recipes: rename api_key -> token everywhere (env var lookup,
guard, Speechify(token=...))
- Python native recipes: rename api_key -> token for symmetry with the TS
native recipes that already used `const token = ...`
- TypeScript SDK recipes + template: new SpeechifyClient({ apiKey }) ->
new SpeechifyClient({ token })
- recipes/audio/typescript/sdk/voice-cloning: voices.delete({ id }) is now
voices.delete({ voice_id }) in v3.0.0 (unrelated to the rename but blocks
tsc against v3 SDK)
- Markdown recipe pages (agents/{python-recipes,typescript-recipes,speechify-tts}.md):
code samples updated to match
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
speechify-apiv3.0.0 renamed the constructor kwarg fromapi_key/apiKeytotoken, so every recipe that constructed the client needed updating. Also bumps the pnpm catalog + all Python pyproject pins so the recipes actually install v3.0.1 (previously pinned>=2.0.0, which uv/pnpm was still resolving to v3 opportunistically depending on lockfile freshness).What changed
pnpm-workspace.yamlcatalog —@speechify/api2.0.0→3.0.1recipes/audio/python/sdk/{quickstart,streaming,ssml-emotion,speech-marks,voice-cloning}/pyproject.toml,templates/python/recipe/pyproject.toml, andagents/python-recipes.md:speechify-api>=2.0.0→>=3.0.1api_key→tokeneverywhere (env-var lookup, guard,Speechify(token=...))api_keyvariable totokenfor symmetry with the TS native recipes that already usedconst token = ...new SpeechifyClient({ apiKey })→new SpeechifyClient({ token })voices.delete({ id })→voices.delete({ voice_id })— unrelated v3 request-shape drift but it blockedtscagainst v3 SDKagents/python-recipes.md,agents/typescript-recipes.md,agents/speechify-tts.md— code samples updated to matchVerification
main.pyfiles passpython -m py_compileuv syncsucceeds cleanly againstspeechify-api==3.0.1for every Python SDK recipenpx tsc --noEmitclean for all 5 TypeScript SDK recipesgrep -rn -E '\bapi_key\b|\bapiKey\b'returns 0 hits repo-wide (aside from the intentionalSPEECHIFY_API_KEYenv var name)