livekit-plugins-cartesia 0.4.5__py3-none-any.whl → 0.4.6__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.
@@ -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 = "c2ac25f9-ecc4-4f56-9095-651354df60c0"
13
+ TTSDefaultVoiceId = "794f9389-aac1-45b6-b726-9d9369183238"
14
14
  TTSVoiceSpeed = Literal["fastest", "fast", "normal", "slow", "slowest"]
15
15
  TTSVoiceEmotion = Literal[
16
16
  "anger:lowest",
@@ -67,7 +67,7 @@ class TTS(tts.TTS):
67
67
  def __init__(
68
68
  self,
69
69
  *,
70
- model: TTSModels | str = "sonic-english",
70
+ model: TTSModels | str = "sonic",
71
71
  language: str = "en",
72
72
  encoding: TTSEncoding = "pcm_s16le",
73
73
  voice: str | list[float] = TTSDefaultVoiceId,
@@ -312,7 +312,10 @@ class SynthesizeStream(tts.SynthesizeStream):
312
312
  aiohttp.WSMsgType.CLOSE,
313
313
  aiohttp.WSMsgType.CLOSING,
314
314
  ):
315
- raise Exception("Cartesia connection closed unexpectedly")
315
+ raise APIStatusError(
316
+ "Cartesia connection closed unexpectedly",
317
+ request_id=request_id,
318
+ )
316
319
 
317
320
  if msg.type != aiohttp.WSMsgType.TEXT:
318
321
  logger.warning("unexpected Cartesia message type %s", msg.type)
@@ -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__ = "0.4.5"
15
+ __version__ = "0.4.6"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: livekit-plugins-cartesia
3
- Version: 0.4.5
3
+ Version: 0.4.6
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.3
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=M4Bxxu0cTyhA3QahgFubZcpREENw9C5GZjaepN4tPmc,13869
6
+ livekit/plugins/cartesia/version.py,sha256=D_Vma_D7upABLhXhjK1P5nahb5uh4zpuIiqYDq9sgJ0,600
7
+ livekit_plugins_cartesia-0.4.6.dist-info/METADATA,sha256=HGMhsernokDVPky0lA5zT6eNgK9MHHbiFi5eVoFKsPA,1462
8
+ livekit_plugins_cartesia-0.4.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ livekit_plugins_cartesia-0.4.6.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
10
+ livekit_plugins_cartesia-0.4.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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,,