Skip to content

Instantly share code, notes, and snippets.

View davidzhao's full-sized avatar
💥

David Zhao davidzhao

💥
View GitHub Profile
@davidzhao
davidzhao / cartesia-assistant.py
Last active December 22, 2024 14:01
LiveKit Voice Assistant with Cartesia
import asyncio
import json
from livekit import rtc
from livekit.agents import JobContext, WorkerOptions, cli, JobProcess
from livekit.agents.llm import (
ChatContext,
ChatMessage,
)
from livekit.agents.voice_assistant import VoiceAssistant
<iframe src="https://player.vimeo.com/video/169879142" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
@davidzhao
davidzhao / gist:10944135
Created April 17, 2014 00:16
opencv build error
[ 25%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_qtkit.mm.o
cd /tmp/opencv-o0TT/opencv-2.4.8.2/macbuild/modules/highgui && /usr/local/Library/ENV/4.3/clang++ -DCVAPI_EXPORTS -DHIGHGUI_EXPORTS -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -fno-omit-frame-pointer -msse -msse2 -mavx -Wno-deprecated-declarations -fPIC -I/tmp/opencv-o0TT/opencv-2.4.8.2/modules/imgproc/include -I/tmp/opencv-o0TT/opencv-2.4.8.2/modules/core/include -I/tmp/opencv-o0TT/opencv-2.4.8.2/macbuild/modules/highgui -I/tmp/opencv-o0TT/opencv-2.4.8.2/modules/highgui/src -I/tmp/opencv-o0TT/opencv-2.4.8.2/modules/highgui/include -I/tmp/opencv-o0TT/opencv-2.4.8.2/macbuild -isystem /usr/local/include/eigen3 -isystem /usr/local