Skip to content

feat(tts): keep voice samples in ~/.infer/voice/samples - #1819

Merged
edenreich merged 4 commits into
mainfrom
feat/voice-samples-dir
Nov 12, 2026
Merged

edenreich merged 4 commits into
mainfrom
feat/voice-samples-dir

Conversation

@edenreich

@edenreich edenreich commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The voice samples library - the WAV recordings TextToSpeech clones a voice from - lived in ~/.infer/models/tts/samples, inside the model cache. The samples are the user's own recordings, not something to download again, and the troubleshooting docs tell users to delete files from that cache. The library moves to ~/.infer/voice/samples.

A bare voice_sample name is looked up in the working directory, then in the new library. The old place is no longer read. Someone with samples there moves them once:

mkdir -p ~/.infer/voice && mv ~/.infer/models/tts/samples ~/.infer/voice/samples

Stacked on the PR that routes all speech through the gateway - retarget to main once that one merges.

Changes

  • config/projects.go - VoiceSamplesDir().
  • internal/tools/text_to_speech.go - the tool reads the library from there.
  • internal/tools/TextToSpeech.yaml and the tool definitions golden file - the new path in the description.
  • internal/tools/text_to_speech_test.go - the lookup order as a table, and a sample left in the old place is not found.
  • docs/text-to-speech.md, docs/tools-reference.md.

Affects inference-gateway/desktop, which writes the library - desktop PR 557.

@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/tts-through-gateway to main November 12, 2026 20:06
@edenreich
edenreich merged commit 645d52b into main Nov 12, 2026
13 checks passed
@edenreich
edenreich deleted the feat/voice-samples-dir branch November 12, 2026 20:15
@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