livekit-plugins-hume 1.2.0__py3-none-any.whl → 1.2.2__py3-none-any.whl
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.
Potentially problematic release.
This version of livekit-plugins-hume might be problematic. Click here for more details.
- livekit/plugins/hume/tts.py +11 -1
- livekit/plugins/hume/version.py +1 -1
- {livekit_plugins_hume-1.2.0.dist-info → livekit_plugins_hume-1.2.2.dist-info}/METADATA +2 -2
- livekit_plugins_hume-1.2.2.dist-info/RECORD +8 -0
- livekit_plugins_hume-1.2.0.dist-info/RECORD +0 -8
- {livekit_plugins_hume-1.2.0.dist-info → livekit_plugins_hume-1.2.2.dist-info}/WHEEL +0 -0
livekit/plugins/hume/tts.py
CHANGED
|
@@ -24,7 +24,14 @@ from typing import Any, TypedDict
|
|
|
24
24
|
|
|
25
25
|
import aiohttp
|
|
26
26
|
|
|
27
|
-
from livekit.agents import
|
|
27
|
+
from livekit.agents import (
|
|
28
|
+
APIConnectionError,
|
|
29
|
+
APIConnectOptions,
|
|
30
|
+
APIError,
|
|
31
|
+
APITimeoutError,
|
|
32
|
+
tts,
|
|
33
|
+
utils,
|
|
34
|
+
)
|
|
28
35
|
from livekit.agents.types import DEFAULT_API_CONNECT_OPTIONS, NOT_GIVEN, NotGivenOr
|
|
29
36
|
from livekit.agents.utils import is_given
|
|
30
37
|
|
|
@@ -265,6 +272,9 @@ class ChunkedStream(tts.ChunkedStream):
|
|
|
265
272
|
continue
|
|
266
273
|
|
|
267
274
|
data = json.loads(line.decode())
|
|
275
|
+
if data.get("type") == "error":
|
|
276
|
+
raise APIError(message=str(data))
|
|
277
|
+
|
|
268
278
|
audio_b64 = data.get("audio")
|
|
269
279
|
if audio_b64:
|
|
270
280
|
output_emitter.push(base64.b64decode(audio_b64))
|
livekit/plugins/hume/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-hume
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Hume TTS plugin for LiveKit agents
|
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
|
6
6
|
Project-URL: Website, https://livekit.io/
|
|
@@ -17,7 +17,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
|
|
|
17
17
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
18
|
Requires-Python: >=3.9.0
|
|
19
19
|
Requires-Dist: aiohttp>=3.8.0
|
|
20
|
-
Requires-Dist: livekit-agents>=1.2.
|
|
20
|
+
Requires-Dist: livekit-agents>=1.2.2
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
|
|
23
23
|
# Hume AI TTS plugin for LiveKit Agents
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
livekit/plugins/hume/__init__.py,sha256=yYTwSJaYq5ufZ_EnoSuLa2FfSsnOZu-swAzYjNQAhhw,1374
|
|
2
|
+
livekit/plugins/hume/log.py,sha256=TwpK1FOwgD6Jb0A2nl-9nIgi0q5qWo9HGDrDuV_2g0g,67
|
|
3
|
+
livekit/plugins/hume/py.typed,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
4
|
+
livekit/plugins/hume/tts.py,sha256=LamNG1FxMKPm4NhV4wXJVu9u-fMaiZB_Qby_VpWjTfY,10451
|
|
5
|
+
livekit/plugins/hume/version.py,sha256=MtEIrukvMss4kmPVlD572-KIvIZ-2WlYgfxPsC_d6BE,600
|
|
6
|
+
livekit_plugins_hume-1.2.2.dist-info/METADATA,sha256=xhYunkua7JHy_OX2T3EpnCOMGl3paCeACxJgZHz2YDU,1354
|
|
7
|
+
livekit_plugins_hume-1.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
livekit_plugins_hume-1.2.2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
livekit/plugins/hume/__init__.py,sha256=yYTwSJaYq5ufZ_EnoSuLa2FfSsnOZu-swAzYjNQAhhw,1374
|
|
2
|
-
livekit/plugins/hume/log.py,sha256=TwpK1FOwgD6Jb0A2nl-9nIgi0q5qWo9HGDrDuV_2g0g,67
|
|
3
|
-
livekit/plugins/hume/py.typed,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
4
|
-
livekit/plugins/hume/tts.py,sha256=VYduFRxndfE0R-3A_Pt16pvcLd80VWnUJIda4iQBgPo,10301
|
|
5
|
-
livekit/plugins/hume/version.py,sha256=KsPLnoei7wS320ZtHT5r5LCbIL21vxXbkF0wR0_oC9Q,600
|
|
6
|
-
livekit_plugins_hume-1.2.0.dist-info/METADATA,sha256=QkSaMSwKBmPEVugIp68JEKJlPoM8K9SYUm-cijKHiAE,1354
|
|
7
|
-
livekit_plugins_hume-1.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
-
livekit_plugins_hume-1.2.0.dist-info/RECORD,,
|
|
File without changes
|