Get started
Prerequisites
Python SDK
pip install "ojin-client[stv]"import os
from ojin.stv import OjinSTVClient
client = OjinSTVClient(
api_key=os.environ["OJIN_API_KEY"],
config_id=os.environ["OJIN_CONFIG_ID"], # your Oris Portrait or Oris Presence config
)
# Feed TTS audio with client.say(...) — or start_turn() + send_tts_audio() to stream —
# and consume the synced 25 fps audio + video from client.output_stream().Pipecat
transport.input() -> STT -> LLM -> TTS -> OjinVideoService -> transport.output()pip install pipecat-ojinfrom pipecat_ojin import OjinVideoService, OjinVideoSettings
avatar = OjinVideoService(
OjinVideoSettings(
api_key="OJIN_API_KEY",
config_id="OJIN_CONFIG_ID", # your Oris Portrait or Oris Presence config
image_size=(512, 512), # must match the transport's video_out size
)
)How it works
Next Steps
Last updated
Was this helpful?