livekit-plugins-elevenlabs 0.0.4__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.4 → 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.6/livekit/plugins/elevenlabs/__init__.py +15 -0
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/livekit/plugins/elevenlabs/tts.py +25 -7
- livekit-plugins-elevenlabs-0.0.6/livekit/plugins/elevenlabs/version.py +15 -0
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/PKG-INFO +12 -2
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/requires.txt +1 -1
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/setup.py +1 -1
- livekit-plugins-elevenlabs-0.0.4/README.md +0 -0
- livekit-plugins-elevenlabs-0.0.4/livekit/plugins/elevenlabs/__init__.py +0 -1
- livekit-plugins-elevenlabs-0.0.4/livekit/plugins/elevenlabs/version.py +0 -1
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/SOURCES.txt +0 -0
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/dependency_links.txt +0 -0
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/livekit_plugins_elevenlabs.egg-info/top_level.txt +0 -0
- {livekit-plugins-elevenlabs-0.0.4 → livekit-plugins-elevenlabs-0.0.6}/pyproject.toml +0 -0
- {livekit-plugins-elevenlabs-0.0.4 → 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
|
+
```
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2023 LiveKit, Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
from .tts import TTSPlugin
|
@@ -1,7 +1,20 @@
|
|
1
|
+
# Copyright 2023 LiveKit, Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
1
15
|
import asyncio
|
2
16
|
import os
|
3
17
|
from livekit import rtc
|
4
|
-
from livekit.plugins import core
|
5
18
|
import numpy as np
|
6
19
|
from typing import AsyncIterator, Optional, AsyncIterable
|
7
20
|
import websockets.client as wsclient
|
@@ -38,13 +51,18 @@ class _WSWrapper:
|
|
38
51
|
self._voice_id = voice['voice_id']
|
39
52
|
|
40
53
|
|
41
|
-
class
|
42
|
-
|
43
|
-
|
44
|
-
self._result_iterator = core.AsyncQueueIterator(
|
45
|
-
asyncio.Queue[AsyncIterable[rtc.AudioFrame]]())
|
46
|
-
|
54
|
+
class TTSPlugin:
|
55
|
+
"""Eleven Labs TTS plugin
|
56
|
+
"""
|
47
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
|
+
"""
|
48
66
|
ws = _WSWrapper()
|
49
67
|
await ws.connect()
|
50
68
|
result_queue = asyncio.Queue[rtc.AudioFrame]()
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2023 LiveKit, Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
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.
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
from .tts import ElevenLabsTTSPlugin
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.0.4"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|