feat!: regenerate SDK on fern-typescript-sdk@3.70.1 with TTS-only surface#6
Merged
Conversation
The 3.x TS generator writes package.json with packageManager: 'pnpm@10.33.0' and ships a pnpm-lock.yaml; the workflow's yarn calls fail because yarn 1.x refuses to install a project whose packageManager field isn't yarn. Corepack respects the packageManager field and fetches the correct pnpm version automatically.
luke-speechify
pushed a commit
that referenced
this pull request
Jun 22, 2026
🤖 I have created a release *beep* *boop* --- ## [2.0.0](1.0.2...2.0.0) (2026-06-22) ### ⚠ BREAKING CHANGES * `new SpeechifyClient({ token: ... })` is now `new SpeechifyClient({ apiKey: ... })`. The `tts.` namespace has been removed — call sites move from `client.tts.audio.speech(...)` to `client.audio.speech(...)` and from `client.tts.voices.X` to `client.voices.X`. Method return type changed from `Promise<T>` to `core.HttpResponsePromise<T>`; both are awaitable and resolve to `T` but type-import sites may need updates. Generator-line crossed `0.x` → `3.x` (plus image rename `fern-typescript-node-sdk` → `fern-typescript-sdk`), so internal/private code paths have moved. ### Features * regenerate SDK on fern-typescript-sdk@3.70.1 with TTS-only surface ([#6](#6)) ([69ff4e4](69ff4e4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Regenerated on the current Speechify spec with the latest generator (
fern-typescript-sdk@3.70.1). The TypeScript SDK generator image was renamed fromfernapi/fern-typescript-node-sdktofernapi/fern-typescript-sdkat version0.65.0; this PR adopts the new image name and pins to its current release. Brings the SDK shape in line with industry conventions (apiKey:, flatclient.audio.*namespace) and adopts thecore.HttpResponsePromise<T>return-type pattern from the 3.x generator line.Voice-agents methods and types are not exported from this release. The voice-agents API is public over HTTP today, but has never shipped in
@speechify/apinpm releases — the SDK is deliberately scoped to the stable TTS surface (audio.*,voices.*). Voice-agents methods will be added in a future release once that surface is locked.What changed
new SpeechifyClient({ token: '...' })is nownew SpeechifyClient({ apiKey: '...' }). TheSPEECHIFY_API_KEYenvironment variable continues to work without change.client.tts.audio.speech({...})→client.audio.speech({...});client.tts.voices.list()→client.voices.list(); and so on across all six methods. Thetts.intermediate namespace has been removed so SDK paths mirror the underlying URL paths (/v1/audio/...,/v1/voices/...).Promise<T>tocore.HttpResponsePromise<T>. Both are awaitable and resolve toT, but consumers that importedPromise<T>directly from method signatures may need to update type imports. Use.asResponse()or.withResponse()on the returned promise when you need raw fetchResponseaccess.0.49.1→3.70.1). Internal code structure has changed substantially. Public method signatures onaudio.speech,audio.stream,voices.list / get / create / delete / downloadSampleare preserved except for the namespace flatten and the return-type change above.New in this release
.fetch()passthrough method on the client for hitting endpoints not yet supported in the typed SDK, while still benefiting from configured auth, retries, logging..withResponse()on every method's returned promise for direct access to the raw fetchResponse.audio.speechandaudio.streamdocumenting the JSON-vs-raw-bytes response distinction between the two endpoints, plus theaudio/pcm→audio/L16Content-Type asymmetry on streaming (24 kHz mono LE PCM).Release
This PR is the regenerated SDK only. Once merged into
master, release-please will open a release PR that bumps the version (to2.0.0) and updatesCHANGELOG.md. Merging the release PR triggers the publish workflow to npm.BREAKING CHANGE:
new SpeechifyClient({ token: ... })is nownew SpeechifyClient({ apiKey: ... }). Thetts.namespace has been removed — call sites move fromclient.tts.audio.speech(...)toclient.audio.speech(...)and fromclient.tts.voices.Xtoclient.voices.X. Method return type changed fromPromise<T>tocore.HttpResponsePromise<T>; both are awaitable and resolve toTbut type-import sites may need updates. Generator-line crossed0.x→3.x(plus image renamefern-typescript-node-sdk→fern-typescript-sdk), so internal/private code paths have moved.