livekit-plugins-cartesia 0.4.5__py3-none-any.whl → 0.4.7__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.
- livekit/plugins/cartesia/models.py +1 -1
- livekit/plugins/cartesia/tts.py +7 -3
- livekit/plugins/cartesia/version.py +1 -1
- {livekit_plugins_cartesia-0.4.5.dist-info → livekit_plugins_cartesia-0.4.7.dist-info}/METADATA +13 -3
- livekit_plugins_cartesia-0.4.7.dist-info/RECORD +10 -0
- {livekit_plugins_cartesia-0.4.5.dist-info → livekit_plugins_cartesia-0.4.7.dist-info}/WHEEL +1 -1
- livekit_plugins_cartesia-0.4.5.dist-info/RECORD +0 -10
- {livekit_plugins_cartesia-0.4.5.dist-info → livekit_plugins_cartesia-0.4.7.dist-info}/top_level.txt +0 -0
@@ -10,7 +10,7 @@ TTSEncoding = Literal[
|
|
10
10
|
|
11
11
|
TTSModels = Literal["sonic-english", "sonic-multilingual"]
|
12
12
|
TTSLanguages = Literal["en", "es", "fr", "de", "pt", "zh", "ja"]
|
13
|
-
TTSDefaultVoiceId = "
|
13
|
+
TTSDefaultVoiceId = "794f9389-aac1-45b6-b726-9d9369183238"
|
14
14
|
TTSVoiceSpeed = Literal["fastest", "fast", "normal", "slow", "slowest"]
|
15
15
|
TTSVoiceEmotion = Literal[
|
16
16
|
"anger:lowest",
|
livekit/plugins/cartesia/tts.py
CHANGED
@@ -48,7 +48,7 @@ API_VERSION_HEADER = "Cartesia-Version"
|
|
48
48
|
API_VERSION = "2024-06-10"
|
49
49
|
|
50
50
|
NUM_CHANNELS = 1
|
51
|
-
BUFFERED_WORDS_COUNT =
|
51
|
+
BUFFERED_WORDS_COUNT = 3
|
52
52
|
|
53
53
|
|
54
54
|
@dataclass
|
@@ -67,7 +67,7 @@ class TTS(tts.TTS):
|
|
67
67
|
def __init__(
|
68
68
|
self,
|
69
69
|
*,
|
70
|
-
model: TTSModels | str = "sonic
|
70
|
+
model: TTSModels | str = "sonic",
|
71
71
|
language: str = "en",
|
72
72
|
encoding: TTSEncoding = "pcm_s16le",
|
73
73
|
voice: str | list[float] = TTSDefaultVoiceId,
|
@@ -267,6 +267,7 @@ class SynthesizeStream(tts.SynthesizeStream):
|
|
267
267
|
token_pkt["context_id"] = request_id
|
268
268
|
token_pkt["transcript"] = ev.token + " "
|
269
269
|
token_pkt["continue"] = True
|
270
|
+
self._mark_started()
|
270
271
|
await ws.send_str(json.dumps(token_pkt))
|
271
272
|
|
272
273
|
end_pkt = base_pkt.copy()
|
@@ -312,7 +313,10 @@ class SynthesizeStream(tts.SynthesizeStream):
|
|
312
313
|
aiohttp.WSMsgType.CLOSE,
|
313
314
|
aiohttp.WSMsgType.CLOSING,
|
314
315
|
):
|
315
|
-
raise
|
316
|
+
raise APIStatusError(
|
317
|
+
"Cartesia connection closed unexpectedly",
|
318
|
+
request_id=request_id,
|
319
|
+
)
|
316
320
|
|
317
321
|
if msg.type != aiohttp.WSMsgType.TEXT:
|
318
322
|
logger.warning("unexpected Cartesia message type %s", msg.type)
|
{livekit_plugins_cartesia-0.4.5.dist-info → livekit_plugins_cartesia-0.4.7.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: livekit-plugins-cartesia
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.7
|
4
4
|
Summary: LiveKit Agents Plugin for Cartesia
|
5
5
|
Home-page: https://github.com/livekit/agents
|
6
6
|
License: Apache-2.0
|
@@ -19,7 +19,17 @@ Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
20
20
|
Requires-Python: >=3.9.0
|
21
21
|
Description-Content-Type: text/markdown
|
22
|
-
Requires-Dist: livekit-agents>=0.11
|
22
|
+
Requires-Dist: livekit-agents>=0.12.11
|
23
|
+
Dynamic: classifier
|
24
|
+
Dynamic: description
|
25
|
+
Dynamic: description-content-type
|
26
|
+
Dynamic: home-page
|
27
|
+
Dynamic: keywords
|
28
|
+
Dynamic: license
|
29
|
+
Dynamic: project-url
|
30
|
+
Dynamic: requires-dist
|
31
|
+
Dynamic: requires-python
|
32
|
+
Dynamic: summary
|
23
33
|
|
24
34
|
# LiveKit Plugins Cartesia
|
25
35
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
livekit/plugins/cartesia/__init__.py,sha256=UTa6Q7IxhRBCwPftowHEUDvmBg99J_UjGS_yxTzKD7g,1095
|
2
|
+
livekit/plugins/cartesia/log.py,sha256=4Mnhjng_DU1dIWP9IWjIQGZ67EV3LnQhWMWCHVudJbo,71
|
3
|
+
livekit/plugins/cartesia/models.py,sha256=56CJgo7my-w-vpedir_ImV_aqKASeLihE5DbcCCgGJI,950
|
4
|
+
livekit/plugins/cartesia/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
livekit/plugins/cartesia/tts.py,sha256=MKMLQBLc9A9XBkfwbFFt7PogUiWUHl-HozUR9mBmtMI,13906
|
6
|
+
livekit/plugins/cartesia/version.py,sha256=85hVEOZ--XQ1Y7ngd1qGTZPpeywK2do8-2uhP_kdeyA,600
|
7
|
+
livekit_plugins_cartesia-0.4.7.dist-info/METADATA,sha256=gZFU-QvodV6JmJiLDZ_OluuXviq8Zef-pYxhNEvxHho,1463
|
8
|
+
livekit_plugins_cartesia-0.4.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
9
|
+
livekit_plugins_cartesia-0.4.7.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
10
|
+
livekit_plugins_cartesia-0.4.7.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
livekit/plugins/cartesia/__init__.py,sha256=UTa6Q7IxhRBCwPftowHEUDvmBg99J_UjGS_yxTzKD7g,1095
|
2
|
-
livekit/plugins/cartesia/log.py,sha256=4Mnhjng_DU1dIWP9IWjIQGZ67EV3LnQhWMWCHVudJbo,71
|
3
|
-
livekit/plugins/cartesia/models.py,sha256=fOO276Vzw3OkDUWUVcw7PH95ctFy38rj3q9I6_mYQ7M,950
|
4
|
-
livekit/plugins/cartesia/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
livekit/plugins/cartesia/tts.py,sha256=SZH1tYHxKDgZ5PbBHkC86vATPkxu81UGnU44FCEzasI,13778
|
6
|
-
livekit/plugins/cartesia/version.py,sha256=NVa5L7bU73cSrgbGChyGQDqP6rLxpFdXF6hoIrBpXM8,600
|
7
|
-
livekit_plugins_cartesia-0.4.5.dist-info/METADATA,sha256=HRCHZl35yVnXjG5yvSYCilcJeefHsve7-xKt1bOkGsE,1245
|
8
|
-
livekit_plugins_cartesia-0.4.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
9
|
-
livekit_plugins_cartesia-0.4.5.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
10
|
-
livekit_plugins_cartesia-0.4.5.dist-info/RECORD,,
|
{livekit_plugins_cartesia-0.4.5.dist-info → livekit_plugins_cartesia-0.4.7.dist-info}/top_level.txt
RENAMED
File without changes
|