Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Aug 17, 2024
1 parent a1d0ce4 commit 1fa44a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/voice-assistant/minimal_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async def entrypoint(ctx: JobContext):
llm=openai.LLM(),
tts=openai.TTS(),
chat_ctx=initial_ctx,
plotting=True,
)
assistant.start(ctx.room)

Expand Down
4 changes: 2 additions & 2 deletions livekit-agents/livekit/agents/voice_assistant/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _draw_plot(mp_cch):

def _draw_cb(sp, pv):
while True:
events = selector.select(timeout=0)
events = selector.select(timeout=0.01)
if not events:
break

Expand Down Expand Up @@ -140,7 +140,7 @@ def _draw_cb(sp, pv):

fig.canvas.draw()

timer = fig.canvas.new_timer(interval=33)
timer = fig.canvas.new_timer(interval=150)
timer.add_callback(_draw_cb, sp, pv)
timer.start()
plt.show()
Expand Down

0 comments on commit 1fa44a0

Please sign in to comment.