livekit-plugins-elevenlabs 0.4.0__py3-none-any.whl → 0.4.dev1__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.
@@ -119,11 +119,9 @@ class TTS(tts.TTS):
119
119
  json=dict(
120
120
  text=text,
121
121
  model_id=self._opts.model_id,
122
- voice_settings=(
123
- dataclasses.asdict(voice.settings)
124
- if voice.settings
125
- else None
126
- ),
122
+ voice_settings=dataclasses.asdict(voice.settings)
123
+ if voice.settings
124
+ else None,
127
125
  ),
128
126
  ) as resp:
129
127
  data = await resp.read()
@@ -317,7 +315,7 @@ class SynthesizeStream(tts.SynthesizeStream):
317
315
  data = await data_rx.recv()
318
316
  data_pkt = dict(
319
317
  text=data,
320
- try_trigger_generation=True,
318
+ try_trigger_generation=False,
321
319
  )
322
320
  if data == SynthesizeStream._STREAM_EOS:
323
321
  closing_ws = True
@@ -352,7 +350,7 @@ class SynthesizeStream(tts.SynthesizeStream):
352
350
  data=b64data,
353
351
  sample_rate=self._opts.sample_rate,
354
352
  num_channels=1,
355
- samples_per_channel=len(b64data) // 2,
353
+ samples_per_channel=len(data) // 2,
356
354
  )
357
355
  self._event_queue.put_nowait(
358
356
  tts.SynthesisEvent(
@@ -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.0"
15
+ __version__ = "0.4.dev1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-plugins-elevenlabs
3
- Version: 0.4.0
3
+ Version: 0.4.dev1
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
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
20
20
  Requires-Python: >=3.9.0
21
21
  Description-Content-Type: text/markdown
22
22
  Requires-Dist: livekit ~=0.11
23
- Requires-Dist: livekit-agents ~=0.6.0
23
+ Requires-Dist: livekit-agents ~=0.6.dev1
24
24
  Requires-Dist: aiohttp >=3.8.5
25
25
 
26
26
  # LiveKit Plugins Elevenlabs
@@ -0,0 +1,10 @@
1
+ livekit/plugins/elevenlabs/__init__.py,sha256=_IMIfE4YA7d3NxrN-iCrdfQ19mwh93SY676RJGEA57c,989
2
+ livekit/plugins/elevenlabs/log.py,sha256=hIuXqDsEB5GBa7rQY3z4Uqi1oCqc_lRmCHZEmXz0LHw,73
3
+ livekit/plugins/elevenlabs/models.py,sha256=g46mCMMHP3x3qtHmybHHMcid1UwmjKCcF0T4IWjMjWE,163
4
+ livekit/plugins/elevenlabs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ livekit/plugins/elevenlabs/tts.py,sha256=5PO_KjUzIMnHPD_iRyotLqR7qMIjpJYqR52K8wdnzts,12396
6
+ livekit/plugins/elevenlabs/version.py,sha256=aVtU3btnJkphqNZWTe3vkERuaW8-zZIFltfU6GWbC40,603
7
+ livekit_plugins_elevenlabs-0.4.dev1.dist-info/METADATA,sha256=Cvmffq7O7TUMYfo-fxnpZIjTqbpxrA3hg0-gdmdlwkc,1365
8
+ livekit_plugins_elevenlabs-0.4.dev1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
+ livekit_plugins_elevenlabs-0.4.dev1.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
10
+ livekit_plugins_elevenlabs-0.4.dev1.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- livekit/plugins/elevenlabs/__init__.py,sha256=_IMIfE4YA7d3NxrN-iCrdfQ19mwh93SY676RJGEA57c,989
2
- livekit/plugins/elevenlabs/log.py,sha256=hIuXqDsEB5GBa7rQY3z4Uqi1oCqc_lRmCHZEmXz0LHw,73
3
- livekit/plugins/elevenlabs/models.py,sha256=g46mCMMHP3x3qtHmybHHMcid1UwmjKCcF0T4IWjMjWE,163
4
- livekit/plugins/elevenlabs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- livekit/plugins/elevenlabs/tts.py,sha256=WRfuua0msUfvfNLPtpDn4PLNxw-2khdViUssDkQST8Q,12462
6
- livekit/plugins/elevenlabs/version.py,sha256=yelanl1wEXtgUH0CzoNVXfi2yTc2hElSzuAhULFzANc,600
7
- livekit_plugins_elevenlabs-0.4.0.dist-info/METADATA,sha256=rWQJu5rmeMSqI4_oElqzCMzz2svtgNb7UDipGFmRL2s,1359
8
- livekit_plugins_elevenlabs-0.4.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
- livekit_plugins_elevenlabs-0.4.0.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
10
- livekit_plugins_elevenlabs-0.4.0.dist-info/RECORD,,