Always appending TTSTextFrame to the audio context.
This commit is contained in:
@@ -1060,11 +1060,8 @@ class TTSService(AIService):
|
|||||||
# Only override append_to_context if explicitly set
|
# Only override append_to_context if explicitly set
|
||||||
if append_tts_text_to_context is not None:
|
if append_tts_text_to_context is not None:
|
||||||
frame.append_to_context = append_tts_text_to_context
|
frame.append_to_context = append_tts_text_to_context
|
||||||
# For services using the audio context we are appending to the context, so it preserves the ordering.
|
# Appending to the context, so it preserves the ordering.
|
||||||
if self.audio_context_available(context_id):
|
await self.append_to_audio_context(context_id, frame)
|
||||||
await self.append_to_audio_context(context_id, frame)
|
|
||||||
else:
|
|
||||||
await self.push_frame(frame)
|
|
||||||
|
|
||||||
async def tts_process_generator(
|
async def tts_process_generator(
|
||||||
self, context_id: str, generator: AsyncGenerator[Frame | None, None]
|
self, context_id: str, generator: AsyncGenerator[Frame | None, None]
|
||||||
|
|||||||
Reference in New Issue
Block a user