You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application case, I need to have the ability to "pause" the Multimodal agent so I can speak to participants in the channel without the LLM interrupting me. I also need to be able to resume the LLM interaction.
In addition to pausing the resume, I also need to be able to set the source participant the agent should be actively listening to. In my app there are multiple participants in the room.
def set_source_participant(self, participant_identity: str) -> None:
"""Set the source participant for the agent."""
self._link_participant(participant_identity)
def pause_listening(self) -> None:
"""Pause listening to the audio stream."""
if self._read_micro_atask is not None:
self._read_micro_atask.cancel() # Stop the current task
self._read_micro_atask = None
logger.info("Paused listening to the audio stream.")
def resume_listening(self) -> None:
"""Resume listening to the audio stream."""
if self._subscribed_track is not None and self._read_micro_atask is None:
self._read_micro_atask = asyncio.create_task(
self._micro_task(self._subscribed_track) # Restart the task
)
logger.info("Resumed listening to the audio stream.")
The text was updated successfully, but these errors were encountered:
See PR: #1119 - #1119
In my application case, I need to have the ability to "pause" the Multimodal agent so I can speak to participants in the channel without the LLM interrupting me. I also need to be able to resume the LLM interaction.
In addition to pausing the resume, I also need to be able to set the source participant the agent should be actively listening to. In my app there are multiple participants in the room.
Locally I am doing this and it seems to work:
update multimodal_agent.py
The text was updated successfully, but these errors were encountered: