Skip to content

feat!: regenerate Python SDK (TTS audio + voices); hoist errors/types to package root - #8

Merged
1 commit merged into
masterfrom
realtime-connect
Jun 17, 2026
Merged

1 commit merged into
masterfrom
realtime-connect

Conversation

@ghost

@ghost ghost commented Jun 16, 2026 •

Copy link
Copy Markdown

Regenerates the Python SDK from the current API spec. This PR is only the TTS regeneration — the realtime connect layer and the agent namespace that appeared on earlier revisions of this branch are intentionally out of scope here and are tracked separately.

Generated surface

client.tts (and the AsyncSpeechify equivalent) exposes two sub-clients:

client.tts.audio

  • speech(*, input, voice_id, audio_format=, language=, model=, options=, request_options=) -> GetSpeechResponse
  • stream(*, accept, input, voice_id, language=, model=, options=, request_options=) -> Iterator[bytes]

client.tts.voices

  • list(*, request_options=) -> List[GetVoice]
  • create(*, name, gender, sample, consent, locale=, avatar=, request_options=) -> CreatedVoice
  • delete(id, *, request_options=) -> None
  • download_sample(id, *, request_options=) -> Iterator[bytes]

Breaking changes (feat!)

Relative to master:

  • Shared errors and types moved to the package root. speechify.tts.errors -> speechify.errors, and speechify.tts.types -> speechify.types. Consumer imports must be updated.
  • Agent / telephony modules removed from the generated client. client.tts previously also exposed auth, agents, tools, conversations, knowledge_bases, memories, phone_numbers, sip_trunks, outbound_calls, and workspaces. The regenerated client exposes only audio and voices.

Verification

  • CI: compile and test both pass.

Follow-ups

  • A possible re-namespace of tts -> audio (client.audio.*) is under discussion and is not part of this PR.

@linear-code

linear-code Bot commented Jun 17, 2026

Copy link
Copy Markdown

DRG-31

@ghost
ghost marked this pull request as ready for review June 17, 2026 09:13
@ghost
ghost requested a review from Copilot June 17, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@ghost ghost changed the title feat: regenerate Python SDK (agent/tts namespaces) + bundled realtime connect layer feat!: regenerate Python SDK (agent/tts namespaces) + bundled realtime connect layer Jun 17, 2026
@ghost
ghost force-pushed the realtime-connect branch 2 times, most recently from eb230e8 to 2c32ddc Compare June 17, 2026 17:40
@ghost ghost mentioned this pull request Jun 17, 2026
@ghost ghost closed this Jun 17, 2026
@ghost
ghost force-pushed the realtime-connect branch from 2c32ddc to ebcf99d Compare June 17, 2026 17:45
@ghost ghost reopened this Jun 17, 2026
@ghost ghost changed the title feat!: regenerate Python SDK (agent/tts namespaces) + bundled realtime connect layer feat!: regenerate Python SDK (TTS audio + voices); hoist errors/types to package root Jun 17, 2026
@ghost
ghost merged commit 3c5be08 into master Jun 17, 2026
4 checks passed
@ghost
ghost deleted the realtime-connect branch August 14, 2026 16:30
This pull request was closed.
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