Repository navigation
feat(teleport): carry the voice samples to workspaces that opt in - #1820
Merged
Merged
Conversation
…amples # Conflicts: # docs/text-to-speech.md
5 tasks
Contributor
|
🎉 This PR is included in version 0.259.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
A session that teleports to a workspace runs
TextToSpeechthere, and avoice_sampleis looked up on that machine - where the user's samples are not. A workspace entry can now ask for them: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 tomainonce that one merges.Changes
config/daemon.go-WorkspaceEntry.ForwardVoiceSamples.internal/agent/domain/teleport.go-Checkpoint.VoiceSamples, opaque bytes likeSealedEnv.internal/agent/infrastructure/voice_samples.go-PackVoiceSamplesandUnpackVoiceSampleson the existing tar helpers. Unpacking refuses anything that is not a WAV file at the top of the library.internal/agent/teleport- packed incheckpoint()when the target opts in, restored ininstall(). The library path comes in through the service'sConfig.cmd/daemon/daemon.go- wiresconfig.VoiceSamplesDir().tests/e2e/teleport_test.gowith two daemons in separate homes, with and without the setting.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.