livekit-plugins-speechmatics 1.0.19__py3-none-any.whl → 1.0.21__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/speechmatics/__init__.py +14 -0
- livekit/plugins/speechmatics/stt.py +3 -1
- livekit/plugins/speechmatics/version.py +1 -1
- {livekit_plugins_speechmatics-1.0.19.dist-info → livekit_plugins_speechmatics-1.0.21.dist-info}/METADATA +6 -4
- livekit_plugins_speechmatics-1.0.21.dist-info/RECORD +10 -0
- livekit_plugins_speechmatics-1.0.19.dist-info/RECORD +0 -10
- {livekit_plugins_speechmatics-1.0.19.dist-info → livekit_plugins_speechmatics-1.0.21.dist-info}/WHEEL +0 -0
@@ -10,6 +10,11 @@
|
|
10
10
|
# See the License for the specific language governing permissions and
|
11
11
|
# limitations under the License.
|
12
12
|
|
13
|
+
"""Speechmatics STT plugin for LiveKit Agents
|
14
|
+
|
15
|
+
See https://docs.livekit.io/agents/integrations/stt/speechmatics/ for more information.
|
16
|
+
"""
|
17
|
+
|
13
18
|
from .log import logger
|
14
19
|
from .stt import STT, SpeechStream
|
15
20
|
from .version import __version__
|
@@ -30,3 +35,12 @@ class SpeechmaticsPlugin(Plugin):
|
|
30
35
|
|
31
36
|
|
32
37
|
Plugin.register_plugin(SpeechmaticsPlugin())
|
38
|
+
|
39
|
+
# Cleanup docs of unexported modules
|
40
|
+
_module = dir()
|
41
|
+
NOT_IN_ALL = [m for m in _module if m not in __all__]
|
42
|
+
|
43
|
+
__pdoc__ = {}
|
44
|
+
|
45
|
+
for n in NOT_IN_ALL:
|
46
|
+
__pdoc__[n] = False
|
@@ -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()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: livekit-plugins-speechmatics
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.21
|
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,12 +18,14 @@ 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.21
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
|
-
# LiveKit
|
24
|
+
# Speechmatics STT plugin for LiveKit Agents
|
25
25
|
|
26
|
-
|
26
|
+
Support for Speechmatics STT.
|
27
|
+
|
28
|
+
See [https://docs.livekit.io/agents/integrations/stt/speechmatics/](https://docs.livekit.io/agents/integrations/stt/speechmatics/) for more information.
|
27
29
|
|
28
30
|
## Installation
|
29
31
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
livekit/plugins/speechmatics/__init__.py,sha256=mHlhJcJJc0aIhQxHx6fUJC9epfGjw1E8b-FdR0eUzMQ,1228
|
2
|
+
livekit/plugins/speechmatics/log.py,sha256=O1iyAF7cHUu_iMXh6l7KRwwWeDB5QyABI_qzAb0cs04,75
|
3
|
+
livekit/plugins/speechmatics/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
livekit/plugins/speechmatics/stt.py,sha256=NrK3cljwbx5dEgslepG3ROszvok-hZadanNHRNo7oFk,11775
|
5
|
+
livekit/plugins/speechmatics/types.py,sha256=LG9ZL_r9f0LMmKPaWqCNzOU6wQJmXp8w7S23xuQaHO8,4829
|
6
|
+
livekit/plugins/speechmatics/utils.py,sha256=9pbI8yrB8e06WY4NOH_RaoTSmY6JJc-P12-Sm8pW51U,1867
|
7
|
+
livekit/plugins/speechmatics/version.py,sha256=apacAmHflDwYb7v3DRhLwJpN3PoP1xuIUhiTjovxdy8,601
|
8
|
+
livekit_plugins_speechmatics-1.0.21.dist-info/METADATA,sha256=GMWth68p1TYPLwt9Bgdy-CvJSHAoN0S4zBTo9brJVQE,2051
|
9
|
+
livekit_plugins_speechmatics-1.0.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
livekit_plugins_speechmatics-1.0.21.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
livekit/plugins/speechmatics/__init__.py,sha256=u1BkFot3ggFvlbdohgrWSvPgcfqO79dsRLN6lJsyxnU,919
|
2
|
-
livekit/plugins/speechmatics/log.py,sha256=O1iyAF7cHUu_iMXh6l7KRwwWeDB5QyABI_qzAb0cs04,75
|
3
|
-
livekit/plugins/speechmatics/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
livekit/plugins/speechmatics/stt.py,sha256=a7bYVtH20i2WDbUTp9qRZRqCUrLwW6Yyf1hOAzth7QA,11695
|
5
|
-
livekit/plugins/speechmatics/types.py,sha256=LG9ZL_r9f0LMmKPaWqCNzOU6wQJmXp8w7S23xuQaHO8,4829
|
6
|
-
livekit/plugins/speechmatics/utils.py,sha256=9pbI8yrB8e06WY4NOH_RaoTSmY6JJc-P12-Sm8pW51U,1867
|
7
|
-
livekit/plugins/speechmatics/version.py,sha256=OO9HL8TqwT22PuHegCHp0-QWucNWI_J-f22ybzRNzso,601
|
8
|
-
livekit_plugins_speechmatics-1.0.19.dist-info/METADATA,sha256=duUlw7JXthOP7F-6dPogsR5gfptW7ffs-nJo0_MPXyU,1894
|
9
|
-
livekit_plugins_speechmatics-1.0.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
-
livekit_plugins_speechmatics-1.0.19.dist-info/RECORD,,
|
File without changes
|