livekit-plugins-elevenlabs 0.0.5__tar.gz → 0.0.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-plugins-elevenlabs
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: LiveKit Python Plugins for ElevenLabs Services
5
5
  Home-page: https://github.com/livekit/python-agents
6
6
  License: Apache-2.0
@@ -23,6 +23,16 @@ Requires-Python: >=3.7.0
23
23
  Description-Content-Type: text/markdown
24
24
  Requires-Dist: livekit
25
25
  Requires-Dist: numpy>=1.24.0
26
- Requires-Dist: elevenlabs>=0.2.26
26
+ Requires-Dist: elevenlabs>=0.2.24
27
27
  Requires-Dist: websockets>=11.0.0
28
28
  Requires-Dist: aiohttp>=3.8.5
29
+
30
+ # LiveKit Plugins Elevenlabs
31
+
32
+ Plugins for ElevenLabs to use with LiveKit Agents.
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ pip install livekit-plugins-elevenlabs
38
+ ```
@@ -0,0 +1,9 @@
1
+ # LiveKit Plugins Elevenlabs
2
+
3
+ Plugins for ElevenLabs to use with LiveKit Agents.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install livekit-plugins-elevenlabs
9
+ ```
@@ -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
- from .tts import ElevenLabsTTSPlugin
15
+ from .tts import TTSPlugin
@@ -15,7 +15,6 @@
15
15
  import asyncio
16
16
  import os
17
17
  from livekit import rtc
18
- from livekit.plugins import core
19
18
  import numpy as np
20
19
  from typing import AsyncIterator, Optional, AsyncIterable
21
20
  import websockets.client as wsclient
@@ -52,13 +51,18 @@ class _WSWrapper:
52
51
  self._voice_id = voice['voice_id']
53
52
 
54
53
 
55
- class ElevenLabsTTSPlugin(core.TTSPlugin):
56
- def __init__(self):
57
- super().__init__(process=self._process, close=self._close)
58
- self._result_iterator = core.AsyncQueueIterator(
59
- asyncio.Queue[AsyncIterable[rtc.AudioFrame]]())
60
-
54
+ class TTSPlugin:
55
+ """Eleven Labs TTS plugin
56
+ """
61
57
  async def generate_speech(self, text_stream: AsyncIterator[str]) -> AsyncIterable[rtc.AudioFrame]:
58
+ """Generate streamed speech from a stream of text
59
+
60
+ Args:
61
+ text_stream (AsyncIterator[str]): Iterator of text to be converted to speech
62
+
63
+ Returns:
64
+ AsyncIterable[rtc.AudioFrame]: Iterator of audio frames
65
+ """
62
66
  ws = _WSWrapper()
63
67
  await ws.connect()
64
68
  result_queue = asyncio.Queue[rtc.AudioFrame]()
@@ -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.0.5"
15
+ __version__ = "0.0.6"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-plugins-elevenlabs
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: LiveKit Python Plugins for ElevenLabs Services
5
5
  Home-page: https://github.com/livekit/python-agents
6
6
  License: Apache-2.0
@@ -23,6 +23,16 @@ Requires-Python: >=3.7.0
23
23
  Description-Content-Type: text/markdown
24
24
  Requires-Dist: livekit
25
25
  Requires-Dist: numpy>=1.24.0
26
- Requires-Dist: elevenlabs>=0.2.26
26
+ Requires-Dist: elevenlabs>=0.2.24
27
27
  Requires-Dist: websockets>=11.0.0
28
28
  Requires-Dist: aiohttp>=3.8.5
29
+
30
+ # LiveKit Plugins Elevenlabs
31
+
32
+ Plugins for ElevenLabs to use with LiveKit Agents.
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ pip install livekit-plugins-elevenlabs
38
+ ```
@@ -1,5 +1,5 @@
1
1
  livekit
2
2
  numpy>=1.24.0
3
- elevenlabs>=0.2.26
3
+ elevenlabs>=0.2.24
4
4
  websockets>=11.0.0
5
5
  aiohttp>=3.8.5
@@ -54,7 +54,7 @@ setuptools.setup(
54
54
  install_requires=[
55
55
  "livekit",
56
56
  "numpy >= 1.24.0",
57
- "elevenlabs >= 0.2.26",
57
+ "elevenlabs >= 0.2.24",
58
58
  "websockets >= 11.0.0",
59
59
  "aiohttp >= 3.8.5"
60
60
  ],
File without changes