livekit-plugins-neuphonic 1.0.20__py3-none-any.whl → 1.0.22__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.
- livekit/plugins/neuphonic/tts.py +15 -3
- livekit/plugins/neuphonic/version.py +1 -1
- {livekit_plugins_neuphonic-1.0.20.dist-info → livekit_plugins_neuphonic-1.0.22.dist-info}/METADATA +2 -2
- livekit_plugins_neuphonic-1.0.22.dist-info/RECORD +9 -0
- livekit_plugins_neuphonic-1.0.20.dist-info/RECORD +0 -9
- {livekit_plugins_neuphonic-1.0.20.dist-info → livekit_plugins_neuphonic-1.0.22.dist-info}/WHEEL +0 -0
livekit/plugins/neuphonic/tts.py
CHANGED
@@ -134,9 +134,14 @@ class TTS(tts.TTS):
|
|
134
134
|
num_channels=NUM_CHANNELS,
|
135
135
|
)
|
136
136
|
|
137
|
-
neuphonic_api_key =
|
137
|
+
neuphonic_api_key = (
|
138
|
+
api_key
|
139
|
+
if is_given(api_key)
|
140
|
+
else os.environ.get("NEUPHONIC_API_KEY") or os.environ.get("NEUPHONIC_API_TOKEN")
|
141
|
+
)
|
142
|
+
|
138
143
|
if not neuphonic_api_key:
|
139
|
-
raise ValueError("API key must be provided or set in
|
144
|
+
raise ValueError("API key must be provided or set in NEUPHONIC_API_KEY")
|
140
145
|
|
141
146
|
self._opts = _TTSOptions(
|
142
147
|
model=model,
|
@@ -366,7 +371,14 @@ class SynthesizeStream(tts.SynthesizeStream):
|
|
366
371
|
)
|
367
372
|
|
368
373
|
while True:
|
369
|
-
|
374
|
+
try:
|
375
|
+
msg = await ws.receive()
|
376
|
+
except Exception as e:
|
377
|
+
raise APIStatusError(
|
378
|
+
"Neuphonic connection closed unexpectedly",
|
379
|
+
request_id=request_id,
|
380
|
+
) from e
|
381
|
+
|
370
382
|
if msg.type in (
|
371
383
|
aiohttp.WSMsgType.CLOSED,
|
372
384
|
aiohttp.WSMsgType.CLOSE,
|
{livekit_plugins_neuphonic-1.0.20.dist-info → livekit_plugins_neuphonic-1.0.22.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: livekit-plugins-neuphonic
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.22
|
4
4
|
Summary: Neuphonic inference plugin for LiveKit Agents
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
6
6
|
Project-URL: Website, https://livekit.io/
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Topic :: Multimedia :: Sound/Audio
|
17
17
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
18
18
|
Requires-Python: >=3.9.0
|
19
|
-
Requires-Dist: livekit-agents>=1.0.
|
19
|
+
Requires-Dist: livekit-agents>=1.0.22
|
20
20
|
Description-Content-Type: text/markdown
|
21
21
|
|
22
22
|
# Neuphonic plugin for LiveKit Agents
|
@@ -0,0 +1,9 @@
|
|
1
|
+
livekit/plugins/neuphonic/__init__.py,sha256=QtlNAqYqv0gIHcVddh5INfdC1bnGkXErplWzhThtN3Q,1227
|
2
|
+
livekit/plugins/neuphonic/log.py,sha256=rAHz71IcbvPkixndXBVffPQsmWUKTLqRaYRuPIxO29w,72
|
3
|
+
livekit/plugins/neuphonic/models.py,sha256=Svfn_sWA3Q2ZXsPBXY-K5hslq5FE62hvyXBES2C3aSc,201
|
4
|
+
livekit/plugins/neuphonic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
livekit/plugins/neuphonic/tts.py,sha256=OIi6kqAJqqbczW1etEfy2-c244RqK2agm9kKalUdO28,14577
|
6
|
+
livekit/plugins/neuphonic/version.py,sha256=-8dkOE2vDSF9WN8VoBrSwU2sb5YBGFuwPnSQXQ-uaYM,601
|
7
|
+
livekit_plugins_neuphonic-1.0.22.dist-info/METADATA,sha256=BI31Xd-Xq76N2G5XK8wfH86rNR_zk5YybkNMP5qpoGQ,1315
|
8
|
+
livekit_plugins_neuphonic-1.0.22.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
livekit_plugins_neuphonic-1.0.22.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
livekit/plugins/neuphonic/__init__.py,sha256=QtlNAqYqv0gIHcVddh5INfdC1bnGkXErplWzhThtN3Q,1227
|
2
|
-
livekit/plugins/neuphonic/log.py,sha256=rAHz71IcbvPkixndXBVffPQsmWUKTLqRaYRuPIxO29w,72
|
3
|
-
livekit/plugins/neuphonic/models.py,sha256=Svfn_sWA3Q2ZXsPBXY-K5hslq5FE62hvyXBES2C3aSc,201
|
4
|
-
livekit/plugins/neuphonic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
livekit/plugins/neuphonic/tts.py,sha256=vRFkQl9sxI4lMeEWSvyQ8YWJcxX2N7eCG7e5fzTTgbM,14240
|
6
|
-
livekit/plugins/neuphonic/version.py,sha256=t4KmPVTpEy1pOJ2GRCA-GNJfCQq_-zHNDBxGj4GKfVk,601
|
7
|
-
livekit_plugins_neuphonic-1.0.20.dist-info/METADATA,sha256=i5y3gxc3jlZvE65pbLq0kbVgG6Yi3VQVPWsWFaYmQj4,1315
|
8
|
-
livekit_plugins_neuphonic-1.0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
-
livekit_plugins_neuphonic-1.0.20.dist-info/RECORD,,
|
{livekit_plugins_neuphonic-1.0.20.dist-info → livekit_plugins_neuphonic-1.0.22.dist-info}/WHEEL
RENAMED
File without changes
|