Add voice library for ~/.cornball/voices/#1
Merged
Conversation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Follows chatterbox rename to avoid conflict with tts.api::tts().
.gpuctl_acquire() now calls gpu_service_url() to get the correct URL (including remote hosts) and sets tts.api_base automatically. tts() wires this in for chatterbox and qwen3 container backends.
voice_library() scans TTS_VOICES_DIR (default ~/.cornball/voices) for audio files. voice_file() resolves voice name to file path with case-insensitive matching. voice_ensure() checks server, uploads from library if missing. Updated tts_voices() Chatterbox fallback to use voice_library().
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
voice_library(),voice_file(),voice_ensure()functions for canonical voice discovery from~/.cornball/voices/TTS_VOICES_DIRenv vartts_voices()to usevoice_library()Test plan
tts.api::voice_library()returns all voices from~/.cornball/voices/tts.api::voice_file("DelicateCasey")resolves correctly (case-insensitive)tts.api::voice_ensure()uploads to server when missing