Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions livekit-agents/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ murf = ["livekit-plugins-murf>=1.8.0"]
neuphonic = ["livekit-plugins-neuphonic>=1.8.0"]
nltk = ["livekit-plugins-nltk>=1.8.0"]
nvidia = ["livekit-plugins-nvidia>=1.8.0"]
ojin = ["livekit-plugins-ojin>=1.8.0"]
openai = ["livekit-plugins-openai>=1.8.0"]
palabra = ["livekit-plugins-palabra>=1.8.0"]
perplexity = ["livekit-plugins-perplexity>=1.8.0"]
Expand Down
16 changes: 16 additions & 0 deletions livekit-plugins/livekit-plugins-ojin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Ojin plugin for LiveKit Agents

Support for avatars with [Ojin](https://ojin.ai/)'s Speech-To-Video models.

See the [Ojin docs](https://docs.ojin.ai/) for more information.

## Installation

```bash
pip install livekit-plugins-ojin
```

## Pre-requisites

You'll need an API key from Ojin and the id of the persona to drive. They can be
set as environment variables: `OJIN_API_KEY`, `OJIN_CONFIG_ID`
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 2025 LiveKit, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


"""Ojin avatar plugin for LiveKit Agents.

See https://docs.livekit.io/agents/integrations/avatar/ for more information.
"""

from .avatar import AvatarSession
from .errors import OjinException
from .version import __version__

__all__ = [
"AvatarSession",
"OjinException",
"__version__",
]

from livekit.agents import Plugin

from .log import logger


class OjinPlugin(Plugin):
def __init__(self) -> None:
super().__init__(__name__, __version__, __package__, logger)


Plugin.register_plugin(OjinPlugin())

# Cleanup docs of unexported modules
_module = dir()
NOT_IN_ALL = [m for m in _module if m not in __all__]

__pdoc__ = {}

for n in NOT_IN_ALL:
__pdoc__[n] = False
Loading