Skip to content

feat(teleport): carry the voice samples to workspaces that opt in - #1820

Merged
edenreich merged 6 commits into
mainfrom
feat/teleport-voice-samples
Nov 12, 2026
Merged

edenreich merged 6 commits into
mainfrom
feat/teleport-voice-samples

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

A session that teleports to a workspace runs TextToSpeech there, and a voice_sample is looked up on that machine - where the user's samples are not. A workspace entry can now ask for them:

workspaces:
  - name: ubuntu-desktop
    compute: infer-k3s
    forward_voice_samples: true

Every teleport to that workspace then carries the WAV files at the top of this machine's voice samples library in its checkpoint, and the target daemon restores them into its own library. A sample of the same name is replaced, the target's other samples stay, a library over 64 MiB fails the teleport, and a teleport back carries none. Workspaces that do not ask get nothing, so a code-only workspace never receives voice recordings.

An older target ignores the new checkpoint field, so the schema version is unchanged.

Stacked on the PR that moves the library to ~/.infer/voice/samples - retarget to main once that one merges.

Changes

  • config/daemon.go - WorkspaceEntry.ForwardVoiceSamples.
  • internal/agent/domain/teleport.go - Checkpoint.VoiceSamples, opaque bytes like SealedEnv.
  • internal/agent/infrastructure/voice_samples.go - PackVoiceSamples and UnpackVoiceSamples on the existing tar helpers. Unpacking refuses anything that is not a WAV file at the top of the library.
  • internal/agent/teleport - packed in checkpoint() when the target opts in, restored in install(). The library path comes in through the service's Config.
  • cmd/daemon/daemon.go - wires config.VoiceSamplesDir().
  • Tests: pack and unpack tables, and tests/e2e/teleport_test.go with two daemons in separate homes, with and without the setting.
  • Docs: daemon.md, configuration-reference.md, browser-extension-protocol.md, text-to-speech.md, internal/agent/README.md.

Affects inference-gateway/desktop, whose Text to speech switch will set the key.

@edenreich
edenreich marked this pull request as ready for review November 12, 2026 19:36
@edenreich
edenreich requested a review from a team as a code owner November 12, 2026 19:36
Base automatically changed from feat/voice-samples-dir to main November 12, 2026 20:15
…amples

# Conflicts:
#	docs/text-to-speech.md
@edenreich
edenreich merged commit 12bf77c into main Nov 12, 2026
7 checks passed
@edenreich
edenreich deleted the feat/teleport-voice-samples branch November 12, 2026 20:19
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.259.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 12, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant