livekit-plugins-fal 0.2.4__py3-none-any.whl → 1.0.0.dev4__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.
Potentially problematic release.
This version of livekit-plugins-fal might be problematic. Click here for more details.
- livekit/plugins/fal/stt.py +13 -21
- livekit/plugins/fal/version.py +1 -1
- {livekit_plugins_fal-0.2.4.dist-info → livekit_plugins_fal-1.0.0.dev4.dist-info}/METADATA +11 -21
- livekit_plugins_fal-1.0.0.dev4.dist-info/RECORD +8 -0
- {livekit_plugins_fal-0.2.4.dist-info → livekit_plugins_fal-1.0.0.dev4.dist-info}/WHEEL +1 -2
- livekit_plugins_fal-0.2.4.dist-info/RECORD +0 -9
- livekit_plugins_fal-0.2.4.dist-info/top_level.txt +0 -1
livekit/plugins/fal/stt.py
CHANGED
|
@@ -3,15 +3,11 @@ from __future__ import annotations
|
|
|
3
3
|
import dataclasses
|
|
4
4
|
import os
|
|
5
5
|
from dataclasses import dataclass
|
|
6
|
-
from typing import Optional
|
|
7
6
|
|
|
8
7
|
import fal_client
|
|
8
|
+
|
|
9
9
|
from livekit import rtc
|
|
10
|
-
from livekit.agents import
|
|
11
|
-
APIConnectionError,
|
|
12
|
-
APIConnectOptions,
|
|
13
|
-
stt,
|
|
14
|
-
)
|
|
10
|
+
from livekit.agents import APIConnectionError, APIConnectOptions, stt
|
|
15
11
|
from livekit.agents.stt import SpeechEventType, STTCapabilities
|
|
16
12
|
from livekit.agents.utils import AudioBuffer
|
|
17
13
|
|
|
@@ -28,14 +24,12 @@ class WizperSTT(stt.STT):
|
|
|
28
24
|
def __init__(
|
|
29
25
|
self,
|
|
30
26
|
*,
|
|
31
|
-
language:
|
|
32
|
-
task:
|
|
33
|
-
chunk_level:
|
|
34
|
-
version:
|
|
27
|
+
language: str | None = "en",
|
|
28
|
+
task: str | None = "transcribe",
|
|
29
|
+
chunk_level: str | None = "segment",
|
|
30
|
+
version: str | None = "3",
|
|
35
31
|
):
|
|
36
|
-
super().__init__(
|
|
37
|
-
capabilities=STTCapabilities(streaming=False, interim_results=True)
|
|
38
|
-
)
|
|
32
|
+
super().__init__(capabilities=STTCapabilities(streaming=False, interim_results=True))
|
|
39
33
|
self._api_key = os.getenv("FAL_KEY")
|
|
40
34
|
self._opts = _STTOptions(
|
|
41
35
|
language=language or "en",
|
|
@@ -46,20 +40,18 @@ class WizperSTT(stt.STT):
|
|
|
46
40
|
self._fal_client = fal_client.AsyncClient()
|
|
47
41
|
|
|
48
42
|
if not self._api_key:
|
|
49
|
-
raise ValueError(
|
|
50
|
-
"fal AI API key is required. It should be set with env FAL_KEY"
|
|
51
|
-
)
|
|
43
|
+
raise ValueError("fal AI API key is required. It should be set with env FAL_KEY")
|
|
52
44
|
|
|
53
|
-
def update_options(self, *, language:
|
|
45
|
+
def update_options(self, *, language: str | None = None) -> None:
|
|
54
46
|
self._opts.language = language or self._opts.language
|
|
55
47
|
|
|
56
48
|
def _sanitize_options(
|
|
57
49
|
self,
|
|
58
50
|
*,
|
|
59
|
-
language:
|
|
60
|
-
task:
|
|
61
|
-
chunk_level:
|
|
62
|
-
version:
|
|
51
|
+
language: str | None = None,
|
|
52
|
+
task: str | None = None,
|
|
53
|
+
chunk_level: str | None = None,
|
|
54
|
+
version: str | None = None,
|
|
63
55
|
) -> _STTOptions:
|
|
64
56
|
config = dataclasses.replace(self._opts)
|
|
65
57
|
config.language = language or config.language
|
livekit/plugins/fal/version.py
CHANGED
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-fal
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0.dev4
|
|
4
4
|
Summary: fal plugin template for LiveKit Agents
|
|
5
|
-
Home-page: https://github.com/livekit/agents
|
|
6
|
-
License: Apache-2.0
|
|
7
5
|
Project-URL: Documentation, https://docs.livekit.io
|
|
8
6
|
Project-URL: Website, https://livekit.io/
|
|
9
7
|
Project-URL: Source, https://github.com/livekit/agents
|
|
10
|
-
|
|
8
|
+
Author: LiveKit
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
Keywords: audio,livekit,realtime,video,webrtc
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
-
Classifier: Topic :: Multimedia :: Sound/Audio
|
|
14
|
-
Classifier: Topic :: Multimedia :: Video
|
|
15
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
16
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
-
Classifier:
|
|
17
|
+
Classifier: Topic :: Multimedia :: Sound/Audio
|
|
18
|
+
Classifier: Topic :: Multimedia :: Video
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
20
|
Requires-Python: >=3.9.0
|
|
21
|
+
Requires-Dist: fal-client
|
|
22
|
+
Requires-Dist: livekit-agents>=1.0.0.dev4
|
|
21
23
|
Description-Content-Type: text/markdown
|
|
22
|
-
Requires-Dist: livekit-agents<1.0.0,>=0.12.16
|
|
23
|
-
Requires-Dist: fal_client
|
|
24
|
-
Dynamic: classifier
|
|
25
|
-
Dynamic: description
|
|
26
|
-
Dynamic: description-content-type
|
|
27
|
-
Dynamic: home-page
|
|
28
|
-
Dynamic: keywords
|
|
29
|
-
Dynamic: license
|
|
30
|
-
Dynamic: project-url
|
|
31
|
-
Dynamic: requires-dist
|
|
32
|
-
Dynamic: requires-python
|
|
33
|
-
Dynamic: summary
|
|
34
24
|
|
|
35
25
|
# LiveKit Plugins fal
|
|
36
26
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
livekit/plugins/fal/__init__.py,sha256=2yFGbnRBL846WEDry3a4CTTwWSiLSI4Otqhlo6g4Lf4,1476
|
|
2
|
+
livekit/plugins/fal/log.py,sha256=E03cKaUVgXY2O7RpX33IQIaRCpFJ_nJMSkRCvCxX5fc,66
|
|
3
|
+
livekit/plugins/fal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
livekit/plugins/fal/stt.py,sha256=PsLrehk5tunahzxAzOFA1OmpBHuV72ESCZE4MoqKCAw,3225
|
|
5
|
+
livekit/plugins/fal/version.py,sha256=RHCBvLr07ADSBvWGbsGfLuaJJOf3SRtoPnExZwLO43c,604
|
|
6
|
+
livekit_plugins_fal-1.0.0.dev4.dist-info/METADATA,sha256=OCqI-nT4YAP2I-juikLL43x11KOayFzgeeje-B6HkFU,1289
|
|
7
|
+
livekit_plugins_fal-1.0.0.dev4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
livekit_plugins_fal-1.0.0.dev4.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
livekit/plugins/fal/__init__.py,sha256=2yFGbnRBL846WEDry3a4CTTwWSiLSI4Otqhlo6g4Lf4,1476
|
|
2
|
-
livekit/plugins/fal/log.py,sha256=E03cKaUVgXY2O7RpX33IQIaRCpFJ_nJMSkRCvCxX5fc,66
|
|
3
|
-
livekit/plugins/fal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
livekit/plugins/fal/stt.py,sha256=TvGIphPqBImfIorwwCK7JIut1TiipZDKt31rYRDbhLU,3348
|
|
5
|
-
livekit/plugins/fal/version.py,sha256=sXZ-dkPIncKH50LWszX8L0gFQ6MnVIy6tT3cx6VkBjM,599
|
|
6
|
-
livekit_plugins_fal-0.2.4.dist-info/METADATA,sha256=G9Hpj8sHUBxC4at6UdGV_4E5N3SgMOeLhJbM0Og-8hM,1521
|
|
7
|
-
livekit_plugins_fal-0.2.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
8
|
-
livekit_plugins_fal-0.2.4.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
|
9
|
-
livekit_plugins_fal-0.2.4.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
livekit
|