livekit-plugins-hume 1.0.17__py3-none-any.whl → 1.0.18__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.

@@ -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, PostedUtteranceVoiceWithName
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
- DEFAULT_VOICE = PostedUtteranceVoiceWithName(name="Colton Rivers", provider="HUME_AI")
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
- # text is required in PostedUtterance but it is declared as an empty string
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
- description=self._opts.utterance_options.description,
263
- voice=self._opts.utterance_options.voice,
264
- speed=self._opts.utterance_options.speed,
265
- trailing_silence=self._opts.utterance_options.trailing_silence,
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,
@@ -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.0.17"
15
+ __version__ = "1.0.18"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-hume
3
- Version: 1.0.17
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.17
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
@@ -0,0 +1,9 @@
1
+ livekit/plugins/hume/__init__.py,sha256=CdEjcQRVL3dBso4xBL-zOgCESSqwH0Xdb01VT35P8u0,1362
2
+ livekit/plugins/hume/log.py,sha256=TwpK1FOwgD6Jb0A2nl-9nIgi0q5qWo9HGDrDuV_2g0g,67
3
+ livekit/plugins/hume/models.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ livekit/plugins/hume/py.typed,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
5
+ livekit/plugins/hume/tts.py,sha256=X6AQyrHYHw3_yMu_L2714IbbpTUWJiTuIAn_y5xa8Xk,11032
6
+ livekit/plugins/hume/version.py,sha256=lZIiOQF6Av8ptH13BtppSBfb58nO8XlwJyzWslLTnKs,601
7
+ livekit_plugins_hume-1.0.18.dist-info/METADATA,sha256=VEeLAiSyZIGehiZp5ZinYHvQj9_wRkWp0PZWFp83FJM,1258
8
+ livekit_plugins_hume-1.0.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ livekit_plugins_hume-1.0.18.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- livekit/plugins/hume/__init__.py,sha256=CdEjcQRVL3dBso4xBL-zOgCESSqwH0Xdb01VT35P8u0,1362
2
- livekit/plugins/hume/log.py,sha256=TwpK1FOwgD6Jb0A2nl-9nIgi0q5qWo9HGDrDuV_2g0g,67
3
- livekit/plugins/hume/models.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- livekit/plugins/hume/py.typed,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
5
- livekit/plugins/hume/tts.py,sha256=aVlp-PebRsIily2mcsCewuZzcgHKwzbBSYwHcFnSo0w,12029
6
- livekit/plugins/hume/version.py,sha256=oT9vgJC1WR2E9D9qKy-VZ5neWTTotVE-IZcSbmiQP98,601
7
- livekit_plugins_hume-1.0.17.dist-info/METADATA,sha256=EpRs_Biq7BWbNk8P-COP1Sgm0LqZiMd6L1Zp--oDsN8,1251
8
- livekit_plugins_hume-1.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- livekit_plugins_hume-1.0.17.dist-info/RECORD,,