Fix ruff formatting

This commit is contained in:
hankehly
2025-08-04 08:13:16 +09:00
parent 2177a2b805
commit 77057eb829

View File

@@ -84,8 +84,9 @@ class PiperTTSService(TTSService):
try: try:
await self.start_ttfb_metrics() await self.start_ttfb_metrics()
payload = {"text": text} async with self._session.post(
async with self._session.post(self._base_url, json=payload, headers=headers) as response: self._base_url, json={"text": text}, headers=headers
) as response:
if response.status != 200: if response.status != 200:
error = await response.text() error = await response.text()
logger.error( logger.error(