livekit-plugins-speechmatics 1.0.0rc9__py3-none-any.whl → 1.0.12__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/utils.py +3 -1
- livekit/plugins/speechmatics/version.py +1 -1
- {livekit_plugins_speechmatics-1.0.0rc9.dist-info → livekit_plugins_speechmatics-1.0.12.dist-info}/METADATA +10 -8
- livekit_plugins_speechmatics-1.0.12.dist-info/RECORD +10 -0
- livekit_plugins_speechmatics-1.0.0rc9.dist-info/RECORD +0 -10
- {livekit_plugins_speechmatics-1.0.0rc9.dist-info → livekit_plugins_speechmatics-1.0.12.dist-info}/WHEEL +0 -0
@@ -18,7 +18,9 @@ async def get_access_token(api_key: str) -> str:
|
|
18
18
|
data = await resp.json()
|
19
19
|
return data["key_value"]
|
20
20
|
except (ValueError, KeyError) as e:
|
21
|
-
raise Exception(
|
21
|
+
raise Exception(
|
22
|
+
f"Failed to parse Speechmatics access token response: {e}"
|
23
|
+
) from None
|
22
24
|
else:
|
23
25
|
error_message = await resp.text()
|
24
26
|
raise Exception(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: livekit-plugins-speechmatics
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.12
|
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.12
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
# LiveKit Plugins Speechmatics
|
@@ -34,9 +34,13 @@ pip install livekit-plugins-speechmatics
|
|
34
34
|
Usage:
|
35
35
|
|
36
36
|
```python
|
37
|
-
|
37
|
+
from livekit.agents import AgentSession
|
38
|
+
from livekit.plugins.turn_detector.english import EnglishModel
|
39
|
+
from livekit.plugins import speechmatics
|
40
|
+
|
41
|
+
agent = AgentSession(
|
38
42
|
stt=speechmatics.STT(),
|
39
|
-
turn_detector=
|
43
|
+
turn_detector=EnglishModel(),
|
40
44
|
min_endpointing_delay=0.5,
|
41
45
|
max_endpointing_delay=5.0,
|
42
46
|
...
|
@@ -44,11 +48,9 @@ agent = VoicePipelineAgent(
|
|
44
48
|
```
|
45
49
|
|
46
50
|
Note: The plugin was built with
|
47
|
-
LiveKit's [end-of-turn detection feature](https://
|
51
|
+
LiveKit's [end-of-turn detection feature](https://docs.livekit.io/agents/v1/build/turn-detection/) in mind,
|
48
52
|
and it doesn't implement phrase endpointing. `AddTranscript` and `AddPartialTranscript` events are emitted as soon
|
49
|
-
as they’re received from the Speechmatics STT engine.
|
50
|
-
we recommend running the agent with end-of-turn detection enabled (
|
51
|
-
see [example](https://github.com/livekit-examples/voice-pipeline-agent-python/blob/main/agent.py)).
|
53
|
+
as they’re received from the Speechmatics STT engine.
|
52
54
|
|
53
55
|
## Pre-requisites
|
54
56
|
|
@@ -0,0 +1,10 @@
|
|
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=t0yCkWAS49pry996VNaDVZiQuW9LWmXI6Gb6V8pNWOE,601
|
8
|
+
livekit_plugins_speechmatics-1.0.12.dist-info/METADATA,sha256=oD9iQ37Z9cwmGJsiNTjChfatQ_g993CBtdwhThp9kb8,1894
|
9
|
+
livekit_plugins_speechmatics-1.0.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
livekit_plugins_speechmatics-1.0.12.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=t9ZDg5byXji8GLlpKs2XSNGpmZ5-hm88kmx-UHu2XqU,1825
|
7
|
-
livekit/plugins/speechmatics/version.py,sha256=ZQLUqTDTW7pLQTzYWr_nNA8nNtqPQ7abK63VAJRqDk0,604
|
8
|
-
livekit_plugins_speechmatics-1.0.0rc9.dist-info/METADATA,sha256=ijJSYvY7w3RkH6RIysIlYlN0tsF4s6zlcLi6YE4a6ds,1980
|
9
|
-
livekit_plugins_speechmatics-1.0.0rc9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
-
livekit_plugins_speechmatics-1.0.0rc9.dist-info/RECORD,,
|
File without changes
|