Skip to content

Commit ada3ac9

Browse files
committed
fish tts
1 parent 61a26cf commit ada3ac9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugins/fish/example/fish_tts_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def start_agent() -> None:
3232
agent = Agent(
3333
edge=getstream.Edge(),
3434
agent_user=User(name="Friendly AI"),
35-
instructions="You are a helpful AI assistant. Be friendly and conversational.",
35+
instructions="You're a voice AI assistant. Short replies only no special characters.",
3636
tts=fish.TTS(), # Uses Fish Audio for text-to-speech
3737
stt=deepgram.STT(),
3838
llm=gemini.LLM("gemini-2.0-flash"),

plugins/fish/vision_agents/plugins/fish/tts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class TTS(tts.TTS):
1515
1616
Fish Audio provides high-quality, multilingual text-to-speech synthesis with
1717
support for voice cloning via reference audio.
18+
19+
1820
"""
1921

2022
def __init__(
@@ -97,7 +99,7 @@ async def stream_audio(self, text: str, *_, **kwargs) -> AsyncIterator[bytes]:
9799
# Allow overriding via kwargs (e.g., for dynamic reference audio)
98100
tts_request_kwargs.update(kwargs)
99101

100-
tts_request = TTSRequest(**tts_request_kwargs)
102+
tts_request = TTSRequest(format="pcm", sample_rate=16000, normalize=True, **tts_request_kwargs)
101103

102104
# Stream audio from Fish Audio
103105
audio_stream = self.client.tts.awaitable(tts_request)

0 commit comments

Comments
 (0)