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.
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/PKG-INFO +12 -2
- livekit-plugins-elevenlabs-0.0.6/README.md +9 -0
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit/plugins/elevenlabs/__init__.py +1 -1
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit/plugins/elevenlabs/tts.py +11 -7
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit/plugins/elevenlabs/version.py +1 -1
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/PKG-INFO +12 -2
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/requires.txt +1 -1
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/setup.py +1 -1
- livekit-plugins-elevenlabs-0.0.5/README.md +0 -0
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/SOURCES.txt +0 -0
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/dependency_links.txt +0 -0
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/top_level.txt +0 -0
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/pyproject.toml +0 -0
- {livekit-plugins-elevenlabs-0.0.5 → livekit-plugins-elevenlabs-0.0.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-elevenlabs
|
3
|
-
Version: 0.0.
|
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
|
+
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
|
+
```
|
@@ -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
|
56
|
-
|
57
|
-
|
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]()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-elevenlabs
|
3
|
-
Version: 0.0.
|
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
|
+
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
|
+
```
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|