livekit-plugins-neuphonic 0.1.0__tar.gz → 1.0.0__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.
Files changed (18) hide show
  1. livekit_plugins_neuphonic-1.0.0/.gitignore +168 -0
  2. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/PKG-INFO +11 -23
  3. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/livekit/plugins/neuphonic/tts.py +50 -77
  4. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/livekit/plugins/neuphonic/version.py +1 -1
  5. livekit_plugins_neuphonic-1.0.0/pyproject.toml +37 -0
  6. livekit_plugins_neuphonic-0.1.0/livekit_plugins_neuphonic.egg-info/PKG-INFO +0 -46
  7. livekit_plugins_neuphonic-0.1.0/livekit_plugins_neuphonic.egg-info/SOURCES.txt +0 -14
  8. livekit_plugins_neuphonic-0.1.0/livekit_plugins_neuphonic.egg-info/dependency_links.txt +0 -1
  9. livekit_plugins_neuphonic-0.1.0/livekit_plugins_neuphonic.egg-info/requires.txt +0 -1
  10. livekit_plugins_neuphonic-0.1.0/livekit_plugins_neuphonic.egg-info/top_level.txt +0 -1
  11. livekit_plugins_neuphonic-0.1.0/pyproject.toml +0 -3
  12. livekit_plugins_neuphonic-0.1.0/setup.cfg +0 -4
  13. livekit_plugins_neuphonic-0.1.0/setup.py +0 -58
  14. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/README.md +0 -0
  15. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/livekit/plugins/neuphonic/__init__.py +0 -0
  16. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/livekit/plugins/neuphonic/log.py +0 -0
  17. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/livekit/plugins/neuphonic/models.py +0 -0
  18. {livekit_plugins_neuphonic-0.1.0 → livekit_plugins_neuphonic-1.0.0}/livekit/plugins/neuphonic/py.typed +0 -0
@@ -0,0 +1,168 @@
1
+ **/.vscode
2
+ **/.DS_Store
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # poetry
101
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105
+ #poetry.lock
106
+
107
+ # pdm
108
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109
+ #pdm.lock
110
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
111
+ # in version control.
112
+ # https://pdm.fming.dev/#use-with-ide
113
+ .pdm.toml
114
+
115
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
+ __pypackages__/
117
+
118
+ # Celery stuff
119
+ celerybeat-schedule
120
+ celerybeat.pid
121
+
122
+ # SageMath parsed files
123
+ *.sage.py
124
+
125
+ # Environments
126
+ .env
127
+ .venv
128
+ env/
129
+ venv/
130
+ ENV/
131
+ env.bak/
132
+ venv.bak/
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Rope project settings
139
+ .ropeproject
140
+
141
+ # mkdocs documentation
142
+ /site
143
+
144
+ # mypy
145
+ .mypy_cache/
146
+ .dmypy.json
147
+ dmypy.json
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
162
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ .idea/
164
+
165
+ node_modules
166
+
167
+ credentials.json
168
+ pyrightconfig.json
@@ -1,35 +1,23 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: livekit-plugins-neuphonic
3
- Version: 0.1.0
4
- Summary: LiveKit Agents Plugin for Neuphonic
5
- Home-page: https://github.com/livekit/agents
6
- License: Apache-2.0
3
+ Version: 1.0.0
4
+ Summary: Neuphonic inference plugin for LiveKit Agents
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
8
+ Author-email: LiveKit <hello@livekit.io>
9
+ License-Expression: Apache-2.0
10
+ Keywords: audio,livekit,neuphonic,realtime,webrtc
11
11
  Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Topic :: Multimedia :: Sound/Audio
14
- Classifier: Topic :: Multimedia :: Video
15
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
12
  Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.9
18
- Classifier: Programming Language :: Python :: 3.10
19
13
  Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Multimedia :: Sound/Audio
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
18
  Requires-Python: >=3.9.0
19
+ Requires-Dist: livekit-agents>=1.0.0
21
20
  Description-Content-Type: text/markdown
22
- Requires-Dist: livekit-agents<1.0.0,>=0.12.16
23
- Dynamic: classifier
24
- Dynamic: description
25
- Dynamic: description-content-type
26
- Dynamic: home-page
27
- Dynamic: keywords
28
- Dynamic: license
29
- Dynamic: project-url
30
- Dynamic: requires-dist
31
- Dynamic: requires-python
32
- Dynamic: summary
33
21
 
34
22
  # LiveKit Plugins Neuphonic
35
23
 
@@ -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,
@@ -31,6 +31,8 @@ from livekit.agents import (
31
31
  tts,
32
32
  utils,
33
33
  )
34
+ from livekit.agents.types import DEFAULT_API_CONNECT_OPTIONS, NOT_GIVEN, NotGivenOr
35
+ from livekit.agents.utils import is_given
34
36
 
35
37
  from .log import logger
36
38
  from .models import TTSEncodings, TTSLangCodes, TTSModels
@@ -49,26 +51,20 @@ class _TTSOptions:
49
51
  encoding: TTSEncodings | str
50
52
  sampling_rate: int
51
53
  speed: float
52
- voice_id: str | None = None
54
+ voice_id: NotGivenOr[str] = NOT_GIVEN
53
55
 
54
56
  @property
55
57
  def model_params(self) -> dict:
56
- """Returns a dict of all model parameters and their values."""
57
- params = [
58
- "voice_id",
59
- "model",
60
- "lang_code",
61
- "encoding",
62
- "sampling_rate",
63
- "speed",
64
- ]
65
- values = {}
66
-
67
- for param in params:
68
- if hasattr(self, param) and getattr(self, param) is not None:
69
- values[param] = getattr(self, param)
70
-
71
- return values
58
+ """Returns a dictionary of model parameters for API requests."""
59
+ params = {
60
+ "voice_id": self.voice_id,
61
+ "model": self.model,
62
+ "lang_code": self.lang_code,
63
+ "encoding": self.encoding,
64
+ "sampling_rate": self.sampling_rate,
65
+ "speed": self.speed,
66
+ }
67
+ return {k: v for k, v in params.items() if is_given(v) and v is not None}
72
68
 
73
69
  def get_query_param_string(self):
74
70
  """Forms the query parameter string from all model parameters."""
@@ -97,9 +93,7 @@ def _parse_sse_message(message: str) -> dict:
97
93
  message = json.loads(value)
98
94
 
99
95
  if message.get("errors") is not None:
100
- raise Exception(
101
- f"Status {message.status_code} error received: {message.errors}."
102
- )
96
+ raise Exception(f"Status {message.status_code} error received: {message.errors}.")
103
97
 
104
98
  return message
105
99
 
@@ -109,12 +103,12 @@ class TTS(tts.TTS):
109
103
  self,
110
104
  *,
111
105
  model: TTSModels | str = "neu_hq",
112
- voice_id: str | None = None,
106
+ voice_id: NotGivenOr[str] = NOT_GIVEN,
113
107
  lang_code: TTSLangCodes | str = "en",
114
108
  encoding: TTSEncodings | str = "pcm_linear",
115
109
  speed: float = 1.0,
116
110
  sample_rate: int = 22050,
117
- api_key: str | None = None,
111
+ api_key: NotGivenOr[str] = NOT_GIVEN,
118
112
  http_session: aiohttp.ClientSession | None = None,
119
113
  base_url: str = API_BASE_URL,
120
114
  ) -> None:
@@ -133,17 +127,16 @@ class TTS(tts.TTS):
133
127
  api_key (str | None, optional): The Neuphonic API key. If not provided, it will be read from the NEUPHONIC_API_TOKEN environment variable.
134
128
  http_session (aiohttp.ClientSession | None, optional): An existing aiohttp ClientSession to use. If not provided, a new session will be created.
135
129
  base_url (str, optional): The base URL for the Neuphonic API. Defaults to "api.neuphonic.com".
136
- """
130
+ """ # noqa: E501
137
131
  super().__init__(
138
132
  capabilities=tts.TTSCapabilities(streaming=True),
139
133
  sample_rate=sample_rate,
140
134
  num_channels=NUM_CHANNELS,
141
135
  )
142
136
 
143
- api_key = api_key or os.environ.get("NEUPHONIC_API_TOKEN")
144
-
145
- if not api_key:
146
- raise ValueError("NEUPHONIC_API_TOKEN must be set")
137
+ neuphonic_api_key = api_key if is_given(api_key) else os.environ.get("NEUPHONIC_API_TOKEN")
138
+ if not neuphonic_api_key:
139
+ raise ValueError("API key must be provided or set in NEUPHONIC_API_TOKEN")
147
140
 
148
141
  self._opts = _TTSOptions(
149
142
  model=model,
@@ -152,7 +145,7 @@ class TTS(tts.TTS):
152
145
  encoding=encoding,
153
146
  speed=speed,
154
147
  sampling_rate=sample_rate,
155
- api_key=api_key,
148
+ api_key=neuphonic_api_key,
156
149
  base_url=base_url,
157
150
  )
158
151
 
@@ -189,12 +182,12 @@ class TTS(tts.TTS):
189
182
  def update_options(
190
183
  self,
191
184
  *,
192
- model: TTSModels | str = None,
193
- voice_id: str | None = None,
194
- lang_code: TTSLangCodes | str | None = None,
195
- encoding: TTSEncodings | str | None = None,
196
- speed: float | None = None,
197
- sample_rate: int | None = None,
185
+ model: NotGivenOr[TTSModels] = NOT_GIVEN,
186
+ voice_id: NotGivenOr[str] = NOT_GIVEN,
187
+ lang_code: NotGivenOr[TTSLangCodes] = NOT_GIVEN,
188
+ encoding: NotGivenOr[TTSEncodings] = NOT_GIVEN,
189
+ speed: NotGivenOr[float] = NOT_GIVEN,
190
+ sample_rate: NotGivenOr[int] = NOT_GIVEN,
198
191
  ) -> None:
199
192
  """
200
193
  Update the Text-to-Speech (TTS) configuration options.
@@ -210,20 +203,26 @@ class TTS(tts.TTS):
210
203
  encoding (TTSEncodings | str, optional): The audio encoding format.
211
204
  speed (float, optional): The audio playback speed.
212
205
  sample_rate (int, optional): The audio sample rate in Hz.
213
- """
214
- self._opts.model = model or self._opts.model
215
- self._opts.voice_id = voice_id or self._opts.voice_id
216
- self._opts.lang_code = lang_code or self._opts.lang_code
217
- self._opts.encoding = encoding or self._opts.encoding
218
- self._opts.speed = speed or self._opts.speed
219
- self._opts.sampling_rate = sample_rate or self._opts.sampling_rate
206
+ """ # noqa: E501
207
+ if is_given(model):
208
+ self._opts.model = model
209
+ if is_given(voice_id):
210
+ self._opts.voice_id = voice_id
211
+ if is_given(lang_code):
212
+ self._opts.lang_code = lang_code
213
+ if is_given(encoding):
214
+ self._opts.encoding = encoding
215
+ if is_given(speed):
216
+ self._opts.speed = speed
217
+ if is_given(sample_rate):
218
+ self._opts.sampling_rate = sample_rate
220
219
  self._pool.invalidate()
221
220
 
222
221
  def synthesize(
223
222
  self,
224
223
  text: str,
225
224
  *,
226
- conn_options: Optional[APIConnectOptions] = None,
225
+ conn_options: APIConnectOptions = DEFAULT_API_CONNECT_OPTIONS,
227
226
  ) -> ChunkedStream:
228
227
  return ChunkedStream(
229
228
  tts=self,
@@ -234,7 +233,7 @@ class TTS(tts.TTS):
234
233
  )
235
234
 
236
235
  def stream(
237
- self, *, conn_options: Optional[APIConnectOptions] = None
236
+ self, *, conn_options: APIConnectOptions = DEFAULT_API_CONNECT_OPTIONS
238
237
  ) -> SynthesizeStream:
239
238
  stream = SynthesizeStream(
240
239
  tts=self,
@@ -262,7 +261,7 @@ class ChunkedStream(tts.ChunkedStream):
262
261
  input_text: str,
263
262
  opts: _TTSOptions,
264
263
  session: aiohttp.ClientSession,
265
- conn_options: Optional[APIConnectOptions] = None,
264
+ conn_options: APIConnectOptions,
266
265
  ) -> None:
267
266
  super().__init__(tts=tts, input_text=input_text, conn_options=conn_options)
268
267
  self._opts, self._session = opts, session
@@ -310,9 +309,7 @@ class ChunkedStream(tts.ChunkedStream):
310
309
  parsed_message is not None
311
310
  and parsed_message.get("data", {}).get("audio") is not None
312
311
  ):
313
- audio_bytes = base64.b64decode(
314
- parsed_message["data"]["audio"]
315
- )
312
+ audio_bytes = base64.b64decode(parsed_message["data"]["audio"])
316
313
 
317
314
  for frame in bstream.write(audio_bytes):
318
315
  emitter.push(frame)
@@ -346,26 +343,6 @@ class SynthesizeStream(tts.SynthesizeStream):
346
343
 
347
344
  async def _run(self) -> None:
348
345
  request_id = utils.shortuuid()
349
- request_data = {request_id: {"sent": "", "recv": ""}}
350
-
351
- def _is_all_audio_recv():
352
- """Check whether all audio has been recieved."""
353
- recv_text = (
354
- request_data[request_id]["recv"]
355
- .lower()
356
- .replace(" ", "")
357
- .replace("\n", "")
358
- .replace("<stop>", "")
359
- )
360
- sent_text = (
361
- request_data[request_id]["sent"]
362
- .lower()
363
- .replace(" ", "")
364
- .replace("\n", "")
365
- .replace("<stop>", "")
366
- )
367
-
368
- return sent_text == recv_text
369
346
 
370
347
  async def _send_task(ws: aiohttp.ClientWebSocketResponse):
371
348
  """Stream text to the websocket."""
@@ -376,7 +353,6 @@ class SynthesizeStream(tts.SynthesizeStream):
376
353
  await ws.send_str(json.dumps({"text": "<STOP>"}))
377
354
  continue
378
355
 
379
- request_data[request_id]["sent"] += data
380
356
  await ws.send_str(json.dumps({"text": data}))
381
357
 
382
358
  async def _recv_task(ws: aiohttp.ClientWebSocketResponse):
@@ -409,20 +385,17 @@ class SynthesizeStream(tts.SynthesizeStream):
409
385
 
410
386
  if data.get("data"):
411
387
  b64data = base64.b64decode(data["data"]["audio"])
412
- recv_text = data["data"]["text"]
413
388
  for frame in audio_bstream.write(b64data):
414
389
  emitter.push(frame)
415
390
 
416
- request_data[request_id]["recv"] += recv_text
391
+ if data["data"].get("stop"): # A bool flag, is True when audio reaches "<STOP>"
392
+ for frame in audio_bstream.flush():
393
+ emitter.push(frame)
394
+ emitter.flush()
395
+ break # we are not going to receive any more audio
417
396
  else:
418
397
  logger.error("Unexpected Neuphonic message %s", data)
419
398
 
420
- if _is_all_audio_recv():
421
- for frame in audio_bstream.flush():
422
- emitter.push(frame)
423
- emitter.flush()
424
- break # we are not going to receive any more audio
425
-
426
399
  async with self._pool.connection() as ws:
427
400
  tasks = [
428
401
  asyncio.create_task(_send_task(ws)),
@@ -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.0"
15
+ __version__ = "1.0.0"
@@ -0,0 +1,37 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "livekit-plugins-neuphonic"
7
+ dynamic = ["version"]
8
+ description = "Neuphonic inference plugin for LiveKit Agents"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ requires-python = ">=3.9.0"
12
+ authors = [{ name = "LiveKit", email = "hello@livekit.io" }]
13
+ keywords = ["webrtc", "realtime", "audio", "livekit", "neuphonic"]
14
+ classifiers = [
15
+ "Intended Audience :: Developers",
16
+ "Topic :: Multimedia :: Sound/Audio",
17
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3 :: Only",
22
+ ]
23
+ dependencies = ["livekit-agents>=1.0.0"]
24
+
25
+ [project.urls]
26
+ Documentation = "https://docs.livekit.io"
27
+ Website = "https://livekit.io/"
28
+ Source = "https://github.com/livekit/agents"
29
+
30
+ [tool.hatch.version]
31
+ path = "livekit/plugins/neuphonic/version.py"
32
+
33
+ [tool.hatch.build.targets.wheel]
34
+ packages = ["livekit"]
35
+
36
+ [tool.hatch.build.targets.sdist]
37
+ include = ["/livekit"]
@@ -1,46 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: livekit-plugins-neuphonic
3
- Version: 0.1.0
4
- Summary: LiveKit Agents Plugin for Neuphonic
5
- Home-page: https://github.com/livekit/agents
6
- License: Apache-2.0
7
- Project-URL: Documentation, https://docs.livekit.io
8
- Project-URL: Website, https://livekit.io/
9
- Project-URL: Source, https://github.com/livekit/agents
10
- Keywords: webrtc,realtime,audio,video,livekit
11
- Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Topic :: Multimedia :: Sound/Audio
14
- Classifier: Topic :: Multimedia :: Video
15
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.9
18
- Classifier: Programming Language :: Python :: 3.10
19
- Classifier: Programming Language :: Python :: 3 :: Only
20
- Requires-Python: >=3.9.0
21
- Description-Content-Type: text/markdown
22
- Requires-Dist: livekit-agents<1.0.0,>=0.12.16
23
- Dynamic: classifier
24
- Dynamic: description
25
- Dynamic: description-content-type
26
- Dynamic: home-page
27
- Dynamic: keywords
28
- Dynamic: license
29
- Dynamic: project-url
30
- Dynamic: requires-dist
31
- Dynamic: requires-python
32
- Dynamic: summary
33
-
34
- # LiveKit Plugins Neuphonic
35
-
36
- Agent Framework plugin for voice synthesis with [Neuphonic](https://neuphonic.com) API.
37
-
38
- ## Installation
39
-
40
- ```bash
41
- pip install livekit-plugins-neuphonic
42
- ```
43
-
44
- ## Pre-requisites
45
-
46
- You'll need an API key from Neuphonic. It can be set as an environment variable: `NEUPHONIC_API_TOKEN`
@@ -1,14 +0,0 @@
1
- README.md
2
- pyproject.toml
3
- setup.py
4
- livekit/plugins/neuphonic/__init__.py
5
- livekit/plugins/neuphonic/log.py
6
- livekit/plugins/neuphonic/models.py
7
- livekit/plugins/neuphonic/py.typed
8
- livekit/plugins/neuphonic/tts.py
9
- livekit/plugins/neuphonic/version.py
10
- livekit_plugins_neuphonic.egg-info/PKG-INFO
11
- livekit_plugins_neuphonic.egg-info/SOURCES.txt
12
- livekit_plugins_neuphonic.egg-info/dependency_links.txt
13
- livekit_plugins_neuphonic.egg-info/requires.txt
14
- livekit_plugins_neuphonic.egg-info/top_level.txt
@@ -1 +0,0 @@
1
- livekit-agents<1.0.0,>=0.12.16
@@ -1,3 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=61.0"]
3
- build-backend = "setuptools.build_meta"
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,58 +0,0 @@
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
- import os
16
- import pathlib
17
-
18
- import setuptools
19
- import setuptools.command.build_py
20
-
21
- here = pathlib.Path(__file__).parent.resolve()
22
- about = {}
23
- with open(
24
- os.path.join(here, "livekit", "plugins", "neuphonic", "version.py"), "r"
25
- ) as f:
26
- exec(f.read(), about)
27
-
28
-
29
- setuptools.setup(
30
- name="livekit-plugins-neuphonic",
31
- version=about["__version__"],
32
- description="LiveKit Agents Plugin for Neuphonic",
33
- long_description=(here / "README.md").read_text(encoding="utf-8"),
34
- long_description_content_type="text/markdown",
35
- url="https://github.com/livekit/agents",
36
- cmdclass={},
37
- classifiers=[
38
- "Intended Audience :: Developers",
39
- "License :: OSI Approved :: Apache Software License",
40
- "Topic :: Multimedia :: Sound/Audio",
41
- "Topic :: Multimedia :: Video",
42
- "Topic :: Scientific/Engineering :: Artificial Intelligence",
43
- "Programming Language :: Python :: 3",
44
- "Programming Language :: Python :: 3.9",
45
- "Programming Language :: Python :: 3.10",
46
- "Programming Language :: Python :: 3 :: Only",
47
- ],
48
- keywords=["webrtc", "realtime", "audio", "video", "livekit"],
49
- license="Apache-2.0",
50
- packages=setuptools.find_namespace_packages(include=["livekit.*"]),
51
- python_requires=">=3.9.0",
52
- install_requires=["livekit-agents>=0.12.16,<1.0.0"],
53
- project_urls={
54
- "Documentation": "https://docs.livekit.io",
55
- "Website": "https://livekit.io/",
56
- "Source": "https://github.com/livekit/agents",
57
- },
58
- )