This commit is contained in:
Moishe Lettvin
2024-02-27 13:51:55 -05:00
parent 8f9c252af9
commit fc19a55f04
4 changed files with 7 additions and 8 deletions

View File

@@ -187,7 +187,7 @@ class TTSService(AIService):
# Convenience function to send the audio for a sentence to the given queue
async def say(self, sentence, queue: asyncio.Queue|None=None):
queue = queue or self.output_queue
queue = queue or self.sink
if not queue:
raise Exception("No queue to send audio to")
await self.run_to_queue(queue, [TextQueueFrame(sentence)])