livekit-plugins-bithuman 1.0.21__tar.gz → 1.0.23__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/PKG-INFO +3 -3
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/livekit/plugins/bithuman/avatar.py +18 -12
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/livekit/plugins/bithuman/version.py +1 -1
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/pyproject.toml +1 -1
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/.gitignore +0 -0
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/README.md +0 -0
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/livekit/plugins/bithuman/__init__.py +0 -0
- {livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/livekit/plugins/bithuman/log.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: livekit-plugins-bithuman
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.23
|
4
4
|
Summary: Agent Framework plugin for services from BitHuman Avatar Rendering
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
6
6
|
Project-URL: Website, https://livekit.io/
|
@@ -17,8 +17,8 @@ Classifier: Topic :: Multimedia :: Sound/Audio
|
|
17
17
|
Classifier: Topic :: Multimedia :: Video
|
18
18
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
19
19
|
Requires-Python: >=3.9.0
|
20
|
-
Requires-Dist: bithuman>=0.5.
|
21
|
-
Requires-Dist: livekit-agents>=1.0.
|
20
|
+
Requires-Dist: bithuman>=0.5.10
|
21
|
+
Requires-Dist: livekit-agents>=1.0.23
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
# BitHuman plugin for LiveKit Agents
|
@@ -39,6 +39,7 @@ class AvatarSession:
|
|
39
39
|
api_url: NotGivenOr[str] = NOT_GIVEN,
|
40
40
|
api_secret: NotGivenOr[str] = NOT_GIVEN,
|
41
41
|
api_token: NotGivenOr[str] = NOT_GIVEN,
|
42
|
+
runtime: NotGivenOr[AsyncBithuman | None] = NOT_GIVEN,
|
42
43
|
) -> None:
|
43
44
|
self._api_url = api_url or os.getenv("BITHUMAN_API_URL")
|
44
45
|
self._api_secret = api_secret or os.getenv("BITHUMAN_API_SECRET")
|
@@ -51,20 +52,25 @@ class AvatarSession:
|
|
51
52
|
raise BitHumanException("BITHUMAN_MODEL_PATH must be set")
|
52
53
|
|
53
54
|
self._avatar_runner: AvatarRunner | None = None
|
55
|
+
self._runtime = runtime
|
54
56
|
|
55
57
|
async def start(self, agent_session: AgentSession, room: rtc.Room) -> None:
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
58
|
+
if self._runtime:
|
59
|
+
runtime = self._runtime
|
60
|
+
else:
|
61
|
+
kwargs = {
|
62
|
+
"model_path": self._model_path,
|
63
|
+
}
|
64
|
+
if self._api_secret:
|
65
|
+
kwargs["api_secret"] = self._api_secret
|
66
|
+
if self._api_token:
|
67
|
+
kwargs["token"] = self._api_token
|
68
|
+
if self._api_url:
|
69
|
+
kwargs["api_url"] = self._api_url
|
70
|
+
|
71
|
+
runtime = await AsyncBithuman.create(**kwargs)
|
72
|
+
await runtime.start()
|
73
|
+
|
68
74
|
video_generator = BithumanGenerator(runtime)
|
69
75
|
|
70
76
|
output_width, output_height = video_generator.video_resolution
|
@@ -21,7 +21,7 @@ classifiers = [
|
|
21
21
|
"Programming Language :: Python :: 3.10",
|
22
22
|
"Programming Language :: Python :: 3 :: Only",
|
23
23
|
]
|
24
|
-
dependencies = ["livekit-agents>=1.0.
|
24
|
+
dependencies = ["livekit-agents>=1.0.23", "bithuman>=0.5.10"]
|
25
25
|
|
26
26
|
[project.urls]
|
27
27
|
Documentation = "https://docs.livekit.io"
|
File without changes
|
File without changes
|
File without changes
|
{livekit_plugins_bithuman-1.0.21 → livekit_plugins_bithuman-1.0.23}/livekit/plugins/bithuman/log.py
RENAMED
File without changes
|