livekit-plugins-speechmatics 1.0.20__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.
@@ -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
- [asyncio.gather(*tasks), wait_reconnect_task],
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()
@@ -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__ = "1.0.20"
15
+ __version__ = "1.0.21"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-speechmatics
3
- Version: 1.0.20
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,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.20
21
+ Requires-Dist: livekit-agents>=1.0.21
22
22
  Description-Content-Type: text/markdown
23
23
 
24
24
  # Speechmatics STT plugin for LiveKit Agents
@@ -1,10 +1,10 @@
1
1
  livekit/plugins/speechmatics/__init__.py,sha256=mHlhJcJJc0aIhQxHx6fUJC9epfGjw1E8b-FdR0eUzMQ,1228
2
2
  livekit/plugins/speechmatics/log.py,sha256=O1iyAF7cHUu_iMXh6l7KRwwWeDB5QyABI_qzAb0cs04,75
3
3
  livekit/plugins/speechmatics/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- livekit/plugins/speechmatics/stt.py,sha256=a7bYVtH20i2WDbUTp9qRZRqCUrLwW6Yyf1hOAzth7QA,11695
4
+ livekit/plugins/speechmatics/stt.py,sha256=NrK3cljwbx5dEgslepG3ROszvok-hZadanNHRNo7oFk,11775
5
5
  livekit/plugins/speechmatics/types.py,sha256=LG9ZL_r9f0LMmKPaWqCNzOU6wQJmXp8w7S23xuQaHO8,4829
6
6
  livekit/plugins/speechmatics/utils.py,sha256=9pbI8yrB8e06WY4NOH_RaoTSmY6JJc-P12-Sm8pW51U,1867
7
- livekit/plugins/speechmatics/version.py,sha256=eowe_xITAsTRciECINrTE1NIEbNPANBVY4NZ9Djf9S4,601
8
- livekit_plugins_speechmatics-1.0.20.dist-info/METADATA,sha256=SbgJwoX5rcuLzepzwHVna1sX2jxahUZ4r_A8Pydi8l0,2051
9
- livekit_plugins_speechmatics-1.0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- livekit_plugins_speechmatics-1.0.20.dist-info/RECORD,,
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,,