livekit-plugins-elevenlabs 0.7.9__py3-none-any.whl → 0.7.10__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.
@@ -189,14 +189,17 @@ class TTS(tts.TTS):
189
189
  *,
190
190
  voice: Voice = DEFAULT_VOICE,
191
191
  model: TTSModels | str = "eleven_turbo_v2_5",
192
+ language: str | None = None,
192
193
  ) -> None:
193
194
  """
194
195
  Args:
195
196
  voice (Voice): Voice configuration. Defaults to `DEFAULT_VOICE`.
196
197
  model (TTSModels | str): TTS model to use. Defaults to "eleven_turbo_v2_5".
198
+ language (str | None): Language code for the TTS model. Optional.
197
199
  """
198
200
  self._opts.model = model or self._opts.model
199
201
  self._opts.voice = voice or self._opts.voice
202
+ self._opts.language = language or self._opts.language
200
203
 
201
204
  def synthesize(
202
205
  self,
@@ -469,8 +472,9 @@ class SynthesizeStream(tts.SynthesizeStream):
469
472
  aiohttp.WSMsgType.CLOSING,
470
473
  ):
471
474
  if not eos_sent:
472
- raise Exception(
473
- "11labs connection closed unexpectedly, not all tokens have been consumed"
475
+ raise APIStatusError(
476
+ "11labs connection closed unexpectedly, not all tokens have been consumed",
477
+ request_id=request_id,
474
478
  )
475
479
  return
476
480
 
@@ -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.7.9"
15
+ __version__ = "0.7.10"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: livekit-plugins-elevenlabs
3
- Version: 0.7.9
3
+ Version: 0.7.10
4
4
  Summary: Agent Framework plugin for voice synthesis with ElevenLabs' API.
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[codecs]>=0.11
22
+ Requires-Dist: livekit-agents[codecs]>=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 Elevenlabs
25
35
 
@@ -0,0 +1,10 @@
1
+ livekit/plugins/elevenlabs/__init__.py,sha256=YZVadomFq3JWiZN6GWXJbuE4vaNNWq1CmdH25du8qwg,1249
2
+ livekit/plugins/elevenlabs/log.py,sha256=hIuXqDsEB5GBa7rQY3z4Uqi1oCqc_lRmCHZEmXz0LHw,73
3
+ livekit/plugins/elevenlabs/models.py,sha256=ddBUlDT4707f64WDJASR0B60X0yQ-LRHK1ZpTuBJXK8,387
4
+ livekit/plugins/elevenlabs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ livekit/plugins/elevenlabs/tts.py,sha256=--2jLJcuWu49VhnogsyCQa3rufA33i-J763HSnmWPeQ,19633
6
+ livekit/plugins/elevenlabs/version.py,sha256=evm-fOLpHjdPwMzoYxCaNWj71Gwec6OKZFHBuyqYa-I,601
7
+ livekit_plugins_elevenlabs-0.7.10.dist-info/METADATA,sha256=h6B9H1DdF0NXtQRm3jNxfeso8lJkrFwn0ZOyoC_8mVU,1522
8
+ livekit_plugins_elevenlabs-0.7.10.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ livekit_plugins_elevenlabs-0.7.10.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
10
+ livekit_plugins_elevenlabs-0.7.10.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/elevenlabs/__init__.py,sha256=YZVadomFq3JWiZN6GWXJbuE4vaNNWq1CmdH25du8qwg,1249
2
- livekit/plugins/elevenlabs/log.py,sha256=hIuXqDsEB5GBa7rQY3z4Uqi1oCqc_lRmCHZEmXz0LHw,73
3
- livekit/plugins/elevenlabs/models.py,sha256=ddBUlDT4707f64WDJASR0B60X0yQ-LRHK1ZpTuBJXK8,387
4
- livekit/plugins/elevenlabs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- livekit/plugins/elevenlabs/tts.py,sha256=ZiBgBjHpTXQmvZ2QWV-P2lqfG8kqRzaTZI7DHqrx-sk,19399
6
- livekit/plugins/elevenlabs/version.py,sha256=Y-buDizIIkRMlhoxXYRvGcLWsb-FeH9R4TA8h7gN-vQ,600
7
- livekit_plugins_elevenlabs-0.7.9.dist-info/METADATA,sha256=YnE6bivP8gz9ONqCzmD64hprpV26iuLJRBNVG005lB8,1304
8
- livekit_plugins_elevenlabs-0.7.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
9
- livekit_plugins_elevenlabs-0.7.9.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
10
- livekit_plugins_elevenlabs-0.7.9.dist-info/RECORD,,