livekit-plugins-cartesia 1.1.2__py3-none-any.whl → 1.1.4__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.
@@ -113,6 +113,13 @@ class TTS(tts.TTS):
113
113
  if not cartesia_api_key:
114
114
  raise ValueError("CARTESIA_API_KEY must be set")
115
115
 
116
+ if (speed or emotion) and model != "sonic-2-2025-03-07":
117
+ logger.warning(
118
+ "speed and emotion controls are only supported for model 'sonic-2-2025-03-07', "
119
+ "see https://docs.cartesia.ai/developer-tools/changelog for details",
120
+ extra={"model": model, "speed": speed, "emotion": emotion},
121
+ )
122
+
116
123
  self._opts = _TTSOptions(
117
124
  model=model,
118
125
  language=language,
@@ -185,6 +192,13 @@ class TTS(tts.TTS):
185
192
  if is_given(emotion):
186
193
  self._opts.emotion = emotion
187
194
 
195
+ if (speed or emotion) and self._opts.model != "sonic-2-2025-03-07":
196
+ logger.warning(
197
+ "speed and emotion controls are only supported for model 'sonic-2-2025-03-07', "
198
+ "see https://docs.cartesia.ai/developer-tools/changelog for details",
199
+ extra={"model": self._opts.model, "speed": speed, "emotion": emotion},
200
+ )
201
+
188
202
  def synthesize(
189
203
  self, text: str, *, conn_options: APIConnectOptions = DEFAULT_API_CONNECT_OPTIONS
190
204
  ) -> ChunkedStream:
@@ -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.1.2"
15
+ __version__ = "1.1.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-cartesia
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: LiveKit Agents Plugin for Cartesia
5
5
  Project-URL: Documentation, https://docs.livekit.io
6
6
  Project-URL: Website, https://livekit.io/
@@ -18,7 +18,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
18
18
  Classifier: Topic :: Multimedia :: Video
19
19
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
20
  Requires-Python: >=3.9.0
21
- Requires-Dist: livekit-agents>=1.1.2
21
+ Requires-Dist: livekit-agents>=1.1.4
22
22
  Description-Content-Type: text/markdown
23
23
 
24
24
  # Cartesia plugin for LiveKit Agents
@@ -3,8 +3,8 @@ livekit/plugins/cartesia/log.py,sha256=4Mnhjng_DU1dIWP9IWjIQGZ67EV3LnQhWMWCHVudJ
3
3
  livekit/plugins/cartesia/models.py,sha256=TIJQa9gNKj_1t09XUjXN5hIrp6_xG1O7YZfVrr0KG4M,1530
4
4
  livekit/plugins/cartesia/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  livekit/plugins/cartesia/stt.py,sha256=9Y4DdSnjXlYnUYmxHWqWrbCkHt0JE6XeNTwfYbKRslM,14592
6
- livekit/plugins/cartesia/tts.py,sha256=gyTJIVmlA8HsWe51LCvSTLVKyO66eQZRGDZjQOOlU1E,14060
7
- livekit/plugins/cartesia/version.py,sha256=gqaIRup9hxsq6YNsBlKPmS5PL-B8yqSRTd8wRfj8zoQ,600
8
- livekit_plugins_cartesia-1.1.2.dist-info/METADATA,sha256=s7MSItG25nTedPJGmQXS_pHnbbl1TIpRc4duOBkyWnw,1329
9
- livekit_plugins_cartesia-1.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- livekit_plugins_cartesia-1.1.2.dist-info/RECORD,,
6
+ livekit/plugins/cartesia/tts.py,sha256=xBSyMY3I-npQNI40bTSVJJYVqrp7Go5EjIUGVnhXhhY,14816
7
+ livekit/plugins/cartesia/version.py,sha256=B5kiBdHIDDcwA9hDZC77YLcp8cT8rcpNKzBQ-kJeiYY,600
8
+ livekit_plugins_cartesia-1.1.4.dist-info/METADATA,sha256=UuGZX_AvAldAqM7fjLZm2HXQMgBqFJ3CsegDbgsndIk,1329
9
+ livekit_plugins_cartesia-1.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ livekit_plugins_cartesia-1.1.4.dist-info/RECORD,,