livekit-plugins-hume 1.2.1__py3-none-any.whl → 1.2.3__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.
@@ -24,7 +24,14 @@ from typing import Any, TypedDict
24
24
 
25
25
  import aiohttp
26
26
 
27
- from livekit.agents import APIConnectionError, APIConnectOptions, APITimeoutError, tts, utils
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))
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "1.2.1"
15
+ __version__ = "1.2.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-hume
3
- Version: 1.2.1
3
+ Version: 1.2.3
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.1
20
+ Requires-Dist: livekit-agents>=1.2.3
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=HPlGgKoRBGGxd2wALrVSaLRImqWgzvVFpznNIABDgU8,600
6
+ livekit_plugins_hume-1.2.3.dist-info/METADATA,sha256=3oWceDx5g17_yDvseuBVCm3cWQsjUFcUAoqfIsp3--8,1354
7
+ livekit_plugins_hume-1.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ livekit_plugins_hume-1.2.3.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=pYQpNgIgbth272w3R0ci4l1hZlZX8gQyfF25Y3ucrQ4,600
6
- livekit_plugins_hume-1.2.1.dist-info/METADATA,sha256=r5Y63LbK8nUeFPuJLtpQt6ijQDK1FaEziNqiKG16mME,1354
7
- livekit_plugins_hume-1.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- livekit_plugins_hume-1.2.1.dist-info/RECORD,,