Skip to content

Commit

Permalink
playai: enable streaming TTS
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Jan 6, 2025
1 parent 125e84d commit 74a3aac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(

super().__init__(
capabilities=tts.TTSCapabilities(
streaming=False,
streaming=True,
),
sample_rate=sample_rate,
num_channels=1,
Expand Down Expand Up @@ -251,7 +251,7 @@ def _send_last_frame(*, segment_id: str, is_final: bool) -> None:
raise APIConnectionError() from e
finally:
await utils.aio.gracefully_cancel(input_task)
self._client.close()
await self._client.close()

@utils.log_exceptions(logger=logger)
async def _tokenize_input(self):
Expand Down

0 comments on commit 74a3aac

Please sign in to comment.