livekit-plugins-resemble 0.1.1__py3-none-any.whl → 1.0.0rc8__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.

@@ -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
24
23
 
25
24
  import aiohttp
25
+
26
26
  from livekit.agents import (
27
27
  APIConnectionError,
28
28
  APIConnectOptions,
@@ -83,14 +83,13 @@ 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 environment variable"
86
+ "Resemble API key is required, either as argument or set RESEMBLE_API_KEY"
87
+ " environment variable"
87
88
  )
88
89
  self._api_key = api_key
89
90
 
90
91
  if tokenizer is None:
91
- tokenizer = tokenize.basic.SentenceTokenizer(
92
- min_sentence_len=BUFFERED_WORDS_COUNT
93
- )
92
+ tokenizer = tokenize.basic.SentenceTokenizer(min_sentence_len=BUFFERED_WORDS_COUNT)
94
93
 
95
94
  if voice_uuid is None:
96
95
  voice_uuid = DEFAULT_VOICE_UUID
@@ -151,7 +150,7 @@ class TTS(tts.TTS):
151
150
  self,
152
151
  text: str,
153
152
  *,
154
- conn_options: Optional[APIConnectOptions] = None,
153
+ conn_options: APIConnectOptions | None = None,
155
154
  ) -> ChunkedStream:
156
155
  return ChunkedStream(
157
156
  tts=self,
@@ -162,9 +161,7 @@ class TTS(tts.TTS):
162
161
  session=self._ensure_session(),
163
162
  )
164
163
 
165
- def stream(
166
- self, *, conn_options: Optional[APIConnectOptions] = None
167
- ) -> SynthesizeStream:
164
+ def stream(self, *, conn_options: APIConnectOptions | None = None) -> SynthesizeStream:
168
165
  stream = SynthesizeStream(
169
166
  tts=self,
170
167
  pool=self._pool,
@@ -215,7 +212,6 @@ class ChunkedStream(tts.ChunkedStream):
215
212
  "sample_rate": self._opts.sample_rate,
216
213
  "precision": "PCM_16",
217
214
  }
218
-
219
215
  decoder = utils.codecs.AudioStreamDecoder(
220
216
  sample_rate=self._opts.sample_rate,
221
217
  num_channels=NUM_CHANNELS,
@@ -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.1.1"
15
+ __version__ = "1.0.0.rc8"
@@ -1,33 +1,25 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-resemble
3
- Version: 0.1.1
3
+ Version: 1.0.0rc8
4
4
  Summary: LiveKit Agents Plugin for Resemble AI
5
- Home-page: https://github.com/livekit/agents
6
- License: Apache-2.0
7
5
  Project-URL: Documentation, https://docs.livekit.io
8
6
  Project-URL: Website, https://livekit.io/
9
7
  Project-URL: Source, https://github.com/livekit/agents
10
- Keywords: webrtc,realtime,audio,video,livekit,resemble,tts
8
+ Author-email: LiveKit <hello@livekit.io>
9
+ License-Expression: Apache-2.0
10
+ Keywords: audio,livekit,realtime,video,webrtc
11
11
  Classifier: Intended Audience :: Developers
12
- Classifier: Topic :: Multimedia :: Sound/Audio
13
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
12
+ Classifier: License :: OSI Approved :: Apache Software License
14
13
  Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
14
  Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Topic :: Multimedia :: Sound/Audio
18
+ Classifier: Topic :: Multimedia :: Video
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
20
  Requires-Python: >=3.9.0
21
+ Requires-Dist: livekit-agents>=1.0.0.rc8
19
22
  Description-Content-Type: text/markdown
20
- Requires-Dist: livekit-agents[codecs]>=0.12.10
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
31
23
 
32
24
  # LiveKit Plugins Resemble
33
25
 
@@ -146,4 +138,4 @@ This plugin uses two different approaches to generate speech:
146
138
  1. **One-off Synthesis** - Uses Resemble's REST API for simple text-to-speech conversion
147
139
  2. **Streaming Synthesis** - Uses Resemble's WebSocket API for real-time streaming synthesis
148
140
 
149
- The WebSocket streaming API is only available for Resemble AI Business plan users.
141
+ The WebSocket streaming API is only available for Resemble AI Business plan users.
@@ -0,0 +1,9 @@
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=1umJr-AvnH8tQPcdXwqGVDHsg4XwXnSoY9fC_FFDsLc,604
7
+ livekit_plugins_resemble-1.0.0rc8.dist-info/METADATA,sha256=3z2V1DYRJZstXV8Z_GU4zKfSNPct6yNKIFcbGpEaXO0,4801
8
+ livekit_plugins_resemble-1.0.0rc8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ livekit_plugins_resemble-1.0.0rc8.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -1,10 +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=Wx9IbO1YCgNApZY_woD6IYG2-LAEN4nDN4zOY4JU0t0,16228
6
- livekit/plugins/resemble/version.py,sha256=3-nEcobvIJfZdV4yNIRuYpAGQ3svREnYIv2ivxoIZcQ,600
7
- livekit_plugins_resemble-0.1.1.dist-info/METADATA,sha256=YO7MP6bQRgJdI559amkAif-o0azRPJnphZmuePHTRHc,4923
8
- livekit_plugins_resemble-0.1.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
9
- livekit_plugins_resemble-0.1.1.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
10
- livekit_plugins_resemble-0.1.1.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- livekit