Adding missing flush_audio method to AzureTTSService.
This commit is contained in:
@@ -577,6 +577,10 @@ class AzureTTSService(AzureBaseTTSService):
|
|||||||
logger.error(f"Speech synthesis canceled: {evt.result.cancellation_details.reason}")
|
logger.error(f"Speech synthesis canceled: {evt.result.cancellation_details.reason}")
|
||||||
self._audio_queue.put_nowait(None)
|
self._audio_queue.put_nowait(None)
|
||||||
|
|
||||||
|
async def flush_audio(self):
|
||||||
|
logger.trace(f"{self}: flushing audio")
|
||||||
|
# TODO: check what we need to implement here ?
|
||||||
|
|
||||||
async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]:
|
async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]:
|
||||||
logger.debug(f"{self}: Generating TTS [{text}]")
|
logger.debug(f"{self}: Generating TTS [{text}]")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user