livekit-plugins-hume 1.0.17__tar.gz → 1.0.18__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.
Potentially problematic release.
This version of livekit-plugins-hume might be problematic. Click here for more details.
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/PKG-INFO +3 -3
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/livekit/plugins/hume/tts.py +8 -23
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/livekit/plugins/hume/version.py +1 -1
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/pyproject.toml +2 -2
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/.gitignore +0 -0
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/README.md +0 -0
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/livekit/plugins/hume/__init__.py +0 -0
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/livekit/plugins/hume/log.py +0 -0
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/livekit/plugins/hume/models.py +0 -0
- {livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/livekit/plugins/hume/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-hume
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.18
|
|
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,8 +17,8 @@ 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: hume
|
|
21
|
-
Requires-Dist: livekit-agents>=1.0.
|
|
20
|
+
Requires-Dist: hume>=0.8.3
|
|
21
|
+
Requires-Dist: livekit-agents>=1.0.18
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
|
|
24
24
|
# LiveKit Plugins Hume AI TTS
|
|
@@ -22,7 +22,7 @@ from dataclasses import dataclass
|
|
|
22
22
|
import aiohttp
|
|
23
23
|
|
|
24
24
|
from hume import AsyncHumeClient
|
|
25
|
-
from hume.tts import Format, FormatWav, PostedContext, PostedUtterance
|
|
25
|
+
from hume.tts import Format, FormatWav, PostedContext, PostedUtterance
|
|
26
26
|
from livekit.agents import (
|
|
27
27
|
APIConnectionError,
|
|
28
28
|
APIConnectOptions,
|
|
@@ -43,13 +43,7 @@ DEFAULT_SAMPLE_RATE = 24000
|
|
|
43
43
|
DEFAULT_NUM_CHANNELS = 1
|
|
44
44
|
|
|
45
45
|
# Default TTS settings
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# text is required in PostedUtterance but it is declared as an empty string
|
|
49
|
-
# it will be overwritten when input tokens are received
|
|
50
|
-
DEFAULT_UTTERANCE = PostedUtterance(
|
|
51
|
-
voice=DEFAULT_VOICE, speed=1, trailing_silence=0.35, description="", text=""
|
|
52
|
-
)
|
|
46
|
+
DEFAULT_UTTERANCE = PostedUtterance(text="")
|
|
53
47
|
|
|
54
48
|
|
|
55
49
|
@dataclass
|
|
@@ -188,17 +182,7 @@ class TTS(tts.TTS):
|
|
|
188
182
|
"""
|
|
189
183
|
|
|
190
184
|
if is_given(utterance_options):
|
|
191
|
-
|
|
192
|
-
# it will be overwritten when input tokens are received
|
|
193
|
-
self._opts.utterance_options = PostedUtterance(
|
|
194
|
-
description=utterance_options.description if utterance_options.description else "",
|
|
195
|
-
voice=utterance_options.voice if utterance_options.voice else DEFAULT_VOICE,
|
|
196
|
-
speed=utterance_options.speed if utterance_options.speed else 1,
|
|
197
|
-
trailing_silence=utterance_options.trailing_silence
|
|
198
|
-
if utterance_options.trailing_silence
|
|
199
|
-
else 0.35,
|
|
200
|
-
text="",
|
|
201
|
-
)
|
|
185
|
+
self._opts.utterance_options = utterance_options
|
|
202
186
|
if is_given(format):
|
|
203
187
|
self._opts.format = format
|
|
204
188
|
if is_given(context):
|
|
@@ -259,10 +243,11 @@ class ChunkedStream(tts.ChunkedStream):
|
|
|
259
243
|
utterances=[
|
|
260
244
|
PostedUtterance(
|
|
261
245
|
text=self._input_text,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
246
|
+
**{
|
|
247
|
+
k: v
|
|
248
|
+
for k, v in self._opts.utterance_options.__dict__.items()
|
|
249
|
+
if v is not None and k != "text"
|
|
250
|
+
},
|
|
266
251
|
)
|
|
267
252
|
],
|
|
268
253
|
context=self._opts.context,
|
|
File without changes
|
|
File without changes
|
{livekit_plugins_hume-1.0.17 → livekit_plugins_hume-1.0.18}/livekit/plugins/hume/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|