livekit-plugins-speechmatics 1.0.0rc9__tar.gz → 1.0.12__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-speechmatics
3
- Version: 1.0.0rc9
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.0.rc9
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
- agent = VoicePipelineAgent(
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=turn_detector.EOUModel(),
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://github.com/livekit/agents#in-house-phrase-endpointing-model) in mind,
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. For the best user experience,
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
 
@@ -11,9 +11,13 @@ pip install livekit-plugins-speechmatics
11
11
  Usage:
12
12
 
13
13
  ```python
14
- agent = VoicePipelineAgent(
14
+ from livekit.agents import AgentSession
15
+ from livekit.plugins.turn_detector.english import EnglishModel
16
+ from livekit.plugins import speechmatics
17
+
18
+ agent = AgentSession(
15
19
  stt=speechmatics.STT(),
16
- turn_detector=turn_detector.EOUModel(),
20
+ turn_detector=EnglishModel(),
17
21
  min_endpointing_delay=0.5,
18
22
  max_endpointing_delay=5.0,
19
23
  ...
@@ -21,11 +25,9 @@ agent = VoicePipelineAgent(
21
25
  ```
22
26
 
23
27
  Note: The plugin was built with
24
- LiveKit's [end-of-turn detection feature](https://github.com/livekit/agents#in-house-phrase-endpointing-model) in mind,
28
+ LiveKit's [end-of-turn detection feature](https://docs.livekit.io/agents/v1/build/turn-detection/) in mind,
25
29
  and it doesn't implement phrase endpointing. `AddTranscript` and `AddPartialTranscript` events are emitted as soon
26
- as they’re received from the Speechmatics STT engine. For the best user experience,
27
- we recommend running the agent with end-of-turn detection enabled (
28
- see [example](https://github.com/livekit-examples/voice-pipeline-agent-python/blob/main/agent.py)).
30
+ as they’re received from the Speechmatics STT engine.
29
31
 
30
32
  ## Pre-requisites
31
33
 
@@ -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(f"Failed to parse Speechmatics access token response: {e}") # noqa: B904
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(
@@ -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.0.rc9'
15
+ __version__ = "1.0.12"
@@ -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.0.rc9"]
25
+ dependencies = ["livekit-agents>=1.0.12"]
26
26
 
27
27
  [project.urls]
28
28
  Documentation = "https://docs.livekit.io"