livekit-plugins-cartesia 0.4.5__tar.gz → 0.4.7__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.
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/PKG-INFO +13 -3
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/models.py +1 -1
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/tts.py +7 -3
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/version.py +1 -1
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit_plugins_cartesia.egg-info/PKG-INFO +13 -3
- livekit_plugins_cartesia-0.4.7/livekit_plugins_cartesia.egg-info/requires.txt +1 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/setup.py +1 -1
- livekit_plugins_cartesia-0.4.5/livekit_plugins_cartesia.egg-info/requires.txt +0 -1
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/README.md +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/__init__.py +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/log.py +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/py.typed +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit_plugins_cartesia.egg-info/SOURCES.txt +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit_plugins_cartesia.egg-info/dependency_links.txt +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit_plugins_cartesia.egg-info/top_level.txt +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/pyproject.toml +0 -0
- {livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/setup.cfg +0 -0
@@ -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
|
|
{livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/models.py
RENAMED
@@ -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-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/tts.py
RENAMED
@@ -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)
|
@@ -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 @@
|
|
1
|
+
livekit-agents>=0.12.11
|
@@ -47,7 +47,7 @@ setuptools.setup(
|
|
47
47
|
license="Apache-2.0",
|
48
48
|
packages=setuptools.find_namespace_packages(include=["livekit.*"]),
|
49
49
|
python_requires=">=3.9.0",
|
50
|
-
install_requires=["livekit-agents>=0.11"],
|
50
|
+
install_requires=["livekit-agents>=0.12.11"],
|
51
51
|
project_urls={
|
52
52
|
"Documentation": "https://docs.livekit.io",
|
53
53
|
"Website": "https://livekit.io/",
|
@@ -1 +0,0 @@
|
|
1
|
-
livekit-agents>=0.11
|
File without changes
|
File without changes
|
{livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/log.py
RENAMED
File without changes
|
{livekit_plugins_cartesia-0.4.5 → livekit_plugins_cartesia-0.4.7}/livekit/plugins/cartesia/py.typed
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|