livekit-plugins-speechmatics 1.0.20__tar.gz → 1.0.22__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_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/PKG-INFO +2 -2
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/livekit/plugins/speechmatics/stt.py +3 -1
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/livekit/plugins/speechmatics/version.py +1 -1
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/pyproject.toml +1 -1
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/.gitignore +0 -0
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/README.md +0 -0
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/livekit/plugins/speechmatics/__init__.py +0 -0
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/livekit/plugins/speechmatics/log.py +0 -0
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/livekit/plugins/speechmatics/py.typed +0 -0
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/livekit/plugins/speechmatics/types.py +0 -0
- {livekit_plugins_speechmatics-1.0.20 → livekit_plugins_speechmatics-1.0.22}/livekit/plugins/speechmatics/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: livekit-plugins-speechmatics
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.22
|
4
4
|
Summary: Agent Framework plugin for Speechmatics
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
6
6
|
Project-URL: Website, https://livekit.io/
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
|
|
18
18
|
Classifier: Topic :: Multimedia :: Video
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
20
20
|
Requires-Python: >=3.9.0
|
21
|
-
Requires-Dist: livekit-agents>=1.0.
|
21
|
+
Requires-Dist: livekit-agents>=1.0.22
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
# Speechmatics STT plugin for LiveKit Agents
|
@@ -216,11 +216,12 @@ class SpeechStream(stt.SpeechStream):
|
|
216
216
|
asyncio.create_task(send_task(ws)),
|
217
217
|
asyncio.create_task(recv_task(ws)),
|
218
218
|
]
|
219
|
+
tasks_group = asyncio.gather(*tasks)
|
219
220
|
wait_reconnect_task = asyncio.create_task(self._reconnect_event.wait())
|
220
221
|
|
221
222
|
try:
|
222
223
|
done, _ = await asyncio.wait(
|
223
|
-
[
|
224
|
+
[tasks_group, wait_reconnect_task],
|
224
225
|
return_when=asyncio.FIRST_COMPLETED,
|
225
226
|
) # type: ignore
|
226
227
|
for task in done:
|
@@ -233,6 +234,7 @@ class SpeechStream(stt.SpeechStream):
|
|
233
234
|
self._reconnect_event.clear()
|
234
235
|
finally:
|
235
236
|
await utils.aio.gracefully_cancel(*tasks, wait_reconnect_task)
|
237
|
+
await tasks_group
|
236
238
|
finally:
|
237
239
|
if ws is not None:
|
238
240
|
await ws.close()
|
@@ -22,7 +22,7 @@ classifiers = [
|
|
22
22
|
"Programming Language :: Python :: 3.10",
|
23
23
|
"Programming Language :: Python :: 3 :: Only",
|
24
24
|
]
|
25
|
-
dependencies = ["livekit-agents>=1.0.
|
25
|
+
dependencies = ["livekit-agents>=1.0.22"]
|
26
26
|
|
27
27
|
[project.urls]
|
28
28
|
Documentation = "https://docs.livekit.io"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|