diff --git a/src/pipecat/services/piper/tts.py b/src/pipecat/services/piper/tts.py index 8c7743d32..d5b663c77 100644 --- a/src/pipecat/services/piper/tts.py +++ b/src/pipecat/services/piper/tts.py @@ -84,8 +84,9 @@ class PiperTTSService(TTSService): try: await self.start_ttfb_metrics() - payload = {"text": text} - async with self._session.post(self._base_url, json=payload, headers=headers) as response: + async with self._session.post( + self._base_url, json={"text": text}, headers=headers + ) as response: if response.status != 200: error = await response.text() logger.error(