feat: add fish.audio TTS provider#353
Open
ytmknd wants to merge 1 commit into
Open
Conversation
Add FishAudioTTS (capability=tts) so tts_selector auto-discovers a new high-quality, voice-clone-capable provider. Backend model is required per call: s1 (previous flagship, kept for compatibility), s2-pro (first S2 generation), s2.1-pro (latest flagship — inline emotion tags, 80+ languages), s2.1-pro-free (free tier for drafts). s1-mini and the speech-1.x tier have been removed from the current fish.audio API and are no longer supported. Voice cloning via reference_id with voice_id as a selector-compatible alias. Adds temperature/top_p/repetition_penalty sampling controls, optional sample_rate, opus output format, and a "low" latency tier. Cost is estimated per UTF-8 byte to match fish.audio billing. Includes a Layer 3 skill, .env.example entry, and unit tests. Verified end-to-end with s2.1-pro + reference_id: generated a 7-segment Japanese narration successfully.
8fbfa99 to
58b9b98
Compare
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
FishAudioTTS(capability=tts) sotts_selectorauto-discovers a new high-quality, voice-clone-capable TTS providers1(previous flagship, kept for compatibility),s2-pro(first S2 generation),s2.1-pro(latest flagship — inline emotion tags, 80+ languages),s2.1-pro-free(free tier for drafts).s1-miniand thespeech-1.xtier have been removed from the current fish.audio API and are no longer supported.reference_id, withvoice_idaccepted as a selector-compatible aliastemperature/top_p/repetition_penaltysampling controls, optionalsample_rate,opusoutput format, and alowlatency tier.agents/skills/fish-audio-tts/SKILL.md),.env.exampleentry, and unit testsTest plan
pytest tests/tools/test_fish_audio_tts.py -v— 14 passedFISH_AUDIO_API_KEYviatts_selector— verifieds2.1-pro+reference_idgenerating a 7-segment Japanese narration