livekit-plugins-resemble 0.1.0rc1__py3-none-any.whl → 0.1.2__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.
Potentially problematic release.
This version of livekit-plugins-resemble might be problematic. Click here for more details.
- livekit/plugins/resemble/tts.py +10 -6
- livekit/plugins/resemble/version.py +1 -1
- {livekit_plugins_resemble-0.1.0rc1.dist-info → livekit_plugins_resemble-0.1.2.dist-info}/METADATA +20 -12
- livekit_plugins_resemble-0.1.2.dist-info/RECORD +10 -0
- {livekit_plugins_resemble-0.1.0rc1.dist-info → livekit_plugins_resemble-0.1.2.dist-info}/WHEEL +2 -1
- livekit_plugins_resemble-0.1.2.dist-info/top_level.txt +1 -0
- livekit_plugins_resemble-0.1.0rc1.dist-info/RECORD +0 -9
livekit/plugins/resemble/tts.py
CHANGED
|
@@ -20,9 +20,9 @@ import json
|
|
|
20
20
|
import os
|
|
21
21
|
import weakref
|
|
22
22
|
from dataclasses import dataclass
|
|
23
|
+
from typing import Optional
|
|
23
24
|
|
|
24
25
|
import aiohttp
|
|
25
|
-
|
|
26
26
|
from livekit.agents import (
|
|
27
27
|
APIConnectionError,
|
|
28
28
|
APIConnectOptions,
|
|
@@ -83,13 +83,14 @@ class TTS(tts.TTS):
|
|
|
83
83
|
api_key = api_key or os.environ.get("RESEMBLE_API_KEY")
|
|
84
84
|
if not api_key:
|
|
85
85
|
raise ValueError(
|
|
86
|
-
"Resemble API key is required, either as argument or set RESEMBLE_API_KEY"
|
|
87
|
-
" environment variable"
|
|
86
|
+
"Resemble API key is required, either as argument or set RESEMBLE_API_KEY environment variable"
|
|
88
87
|
)
|
|
89
88
|
self._api_key = api_key
|
|
90
89
|
|
|
91
90
|
if tokenizer is None:
|
|
92
|
-
tokenizer = tokenize.basic.SentenceTokenizer(
|
|
91
|
+
tokenizer = tokenize.basic.SentenceTokenizer(
|
|
92
|
+
min_sentence_len=BUFFERED_WORDS_COUNT
|
|
93
|
+
)
|
|
93
94
|
|
|
94
95
|
if voice_uuid is None:
|
|
95
96
|
voice_uuid = DEFAULT_VOICE_UUID
|
|
@@ -150,7 +151,7 @@ class TTS(tts.TTS):
|
|
|
150
151
|
self,
|
|
151
152
|
text: str,
|
|
152
153
|
*,
|
|
153
|
-
conn_options: APIConnectOptions
|
|
154
|
+
conn_options: Optional[APIConnectOptions] = None,
|
|
154
155
|
) -> ChunkedStream:
|
|
155
156
|
return ChunkedStream(
|
|
156
157
|
tts=self,
|
|
@@ -161,7 +162,9 @@ class TTS(tts.TTS):
|
|
|
161
162
|
session=self._ensure_session(),
|
|
162
163
|
)
|
|
163
164
|
|
|
164
|
-
def stream(
|
|
165
|
+
def stream(
|
|
166
|
+
self, *, conn_options: Optional[APIConnectOptions] = None
|
|
167
|
+
) -> SynthesizeStream:
|
|
165
168
|
stream = SynthesizeStream(
|
|
166
169
|
tts=self,
|
|
167
170
|
pool=self._pool,
|
|
@@ -212,6 +215,7 @@ class ChunkedStream(tts.ChunkedStream):
|
|
|
212
215
|
"sample_rate": self._opts.sample_rate,
|
|
213
216
|
"precision": "PCM_16",
|
|
214
217
|
}
|
|
218
|
+
|
|
215
219
|
decoder = utils.codecs.AudioStreamDecoder(
|
|
216
220
|
sample_rate=self._opts.sample_rate,
|
|
217
221
|
num_channels=NUM_CHANNELS,
|
{livekit_plugins_resemble-0.1.0rc1.dist-info → livekit_plugins_resemble-0.1.2.dist-info}/METADATA
RENAMED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-resemble
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: LiveKit Agents Plugin for Resemble AI
|
|
5
|
+
Home-page: https://github.com/livekit/agents
|
|
6
|
+
License: Apache-2.0
|
|
5
7
|
Project-URL: Documentation, https://docs.livekit.io
|
|
6
8
|
Project-URL: Website, https://livekit.io/
|
|
7
9
|
Project-URL: Source, https://github.com/livekit/agents
|
|
8
|
-
|
|
9
|
-
License-Expression: Apache-2.0
|
|
10
|
-
Keywords: audio,livekit,realtime,video,webrtc
|
|
10
|
+
Keywords: webrtc,realtime,audio,video,livekit,resemble,tts
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
12
|
Classifier: Topic :: Multimedia :: Sound/Audio
|
|
18
|
-
Classifier: Topic :: Multimedia :: Video
|
|
19
13
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
18
|
Requires-Python: >=3.9.0
|
|
21
|
-
Requires-Dist: livekit-agents>=1.0.0.rc7
|
|
22
19
|
Description-Content-Type: text/markdown
|
|
20
|
+
Requires-Dist: livekit-agents[codecs]>=0.12.20
|
|
21
|
+
Dynamic: classifier
|
|
22
|
+
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: keywords
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: project-url
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
Dynamic: summary
|
|
23
31
|
|
|
24
32
|
# LiveKit Plugins Resemble
|
|
25
33
|
|
|
@@ -138,4 +146,4 @@ This plugin uses two different approaches to generate speech:
|
|
|
138
146
|
1. **One-off Synthesis** - Uses Resemble's REST API for simple text-to-speech conversion
|
|
139
147
|
2. **Streaming Synthesis** - Uses Resemble's WebSocket API for real-time streaming synthesis
|
|
140
148
|
|
|
141
|
-
The WebSocket streaming API is only available for Resemble AI Business plan users.
|
|
149
|
+
The WebSocket streaming API is only available for Resemble AI Business plan users.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
livekit/plugins/resemble/__init__.py,sha256=9xuQxGYo_lKpEOLN_o7FbWVFiyeP-_v-PJmy_zOs5Y8,1108
|
|
2
|
+
livekit/plugins/resemble/log.py,sha256=Pgg3yqt4OUcjrnnF8SKfH7G-Dk7jFI0yIhDa5hjTW5k,71
|
|
3
|
+
livekit/plugins/resemble/models.py,sha256=nK29wOCKkS29KjbiDaTpb7mlmUQSad9U_0bTD8yRcwk,74
|
|
4
|
+
livekit/plugins/resemble/py.typed,sha256=ajz1GSNU9xYVrFEDSz6Xwg7amWQ_yvW75tQa1ZvRIWc,3
|
|
5
|
+
livekit/plugins/resemble/tts.py,sha256=Wx9IbO1YCgNApZY_woD6IYG2-LAEN4nDN4zOY4JU0t0,16228
|
|
6
|
+
livekit/plugins/resemble/version.py,sha256=S3xxF-H96nScSv_7l7IUvROJ0avu9oz5Gm6j673md_Y,600
|
|
7
|
+
livekit_plugins_resemble-0.1.2.dist-info/METADATA,sha256=XY6bOOrGWvudAcnDYiEfrTsHG1fBjBYWi-ZrPHMYFTU,4923
|
|
8
|
+
livekit_plugins_resemble-0.1.2.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
9
|
+
livekit_plugins_resemble-0.1.2.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
|
10
|
+
livekit_plugins_resemble-0.1.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
livekit
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
livekit/plugins/resemble/__init__.py,sha256=9xuQxGYo_lKpEOLN_o7FbWVFiyeP-_v-PJmy_zOs5Y8,1108
|
|
2
|
-
livekit/plugins/resemble/log.py,sha256=Pgg3yqt4OUcjrnnF8SKfH7G-Dk7jFI0yIhDa5hjTW5k,71
|
|
3
|
-
livekit/plugins/resemble/models.py,sha256=nK29wOCKkS29KjbiDaTpb7mlmUQSad9U_0bTD8yRcwk,74
|
|
4
|
-
livekit/plugins/resemble/py.typed,sha256=ajz1GSNU9xYVrFEDSz6Xwg7amWQ_yvW75tQa1ZvRIWc,3
|
|
5
|
-
livekit/plugins/resemble/tts.py,sha256=N8T0NrYh_nW77DN9yzI4OiNmSxzY7h9fISD2xHYfI8A,16169
|
|
6
|
-
livekit/plugins/resemble/version.py,sha256=xALnp90Zq1RJWmgPi_DHhHh2uCgvunb6LEWBCu5gQ20,604
|
|
7
|
-
livekit_plugins_resemble-0.1.0rc1.dist-info/METADATA,sha256=Yw_yuKL1RPJ_8smSjz24cXblMDc3MamQSRfukffzlx0,4801
|
|
8
|
-
livekit_plugins_resemble-0.1.0rc1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
9
|
-
livekit_plugins_resemble-0.1.0rc1.dist-info/RECORD,,
|