agents icon indicating copy to clipboard operation
agents copied to clipboard

Feature: ability to post-process responses from LLM in voice assistant

Open davidzhao opened this issue 1 year ago • 2 comments

Sometimes it's desirable to control or change the output from LLMs before TTS.

davidzhao avatar Jul 17 '24 22:07 davidzhao

Similar: https://github.com/livekit/agents/issues/451

seanmuirhead avatar Jul 19 '24 16:07 seanmuirhead

@davidzhao I'm still working on the same thing (discussed in slack), but the changes I've made in my code are specific to my requirements and not generalised. I'm not sure if that thing can help you. I'm eagerly waiting for the solution of this.

parshvadaftari avatar Jul 31 '24 05:07 parshvadaftari

@theomonnom why this marked as completed?
can we use this feature now? is there any docs about this? any information will be appreciated:)

ericyue avatar Sep 10 '24 01:09 ericyue

you'd want to use the before_tts_cb callback with VoiceAssistant. you can reference this example here

davidzhao avatar Sep 19 '24 06:09 davidzhao