livekit-plugins-fal 0.2.3__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.

@@ -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: Optional[str] = "en",
32
- task: Optional[str] = "transcribe",
33
- chunk_level: Optional[str] = "segment",
34
- version: Optional[str] = "3",
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: Optional[str] = None) -> None:
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: Optional[str] = None,
60
- task: Optional[str] = None,
61
- chunk_level: Optional[str] = None,
62
- version: Optional[str] = None,
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
@@ -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__ = "0.2.3"
15
+ __version__ = "1.0.0.dev4"
@@ -1,40 +1,30 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: livekit-plugins-fal
3
- Version: 0.2.3
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
- Keywords: webrtc,realtime,audio,video,livekit
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: Programming Language :: Python :: 3 :: Only
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>=0.12.3
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
- # LiveKit Plugins Fal
25
+ # LiveKit Plugins fal
36
26
 
37
- This plugin provides a simple way to integrate FAL models into the LiveKit Agent Framework. currently supports Whizper model for STT
27
+ This plugin provides a simple way to integrate fal.ai models into the LiveKit Agent Framework. currently supports Wizper model for STT.
38
28
 
39
29
  ## Installation
40
30
 
@@ -44,4 +34,4 @@ pip install livekit-plugins-fal
44
34
 
45
35
  ## Pre-requisites
46
36
 
47
- You'll need an API key from FAL. It can be set as an environment variable: `FAL_KEY`
37
+ You'll need an API key from fal. It can be set as an environment variable: `FAL_KEY`
@@ -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,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -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=HGOX_E-W6MCpefQFGj_UPw8X9gvsmoVLAO65FAz6-Es,3348
5
- livekit/plugins/fal/version.py,sha256=hlkazOSjHhPITxXYBxVrCPGHhRf5IltBTWpXAL6jTfw,599
6
- livekit_plugins_fal-0.2.3.dist-info/METADATA,sha256=Gu-XJuqmc0C1MKfsWvlvZGx9wmCj8rJRRLGKPbpvNpc,1510
7
- livekit_plugins_fal-0.2.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
8
- livekit_plugins_fal-0.2.3.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
9
- livekit_plugins_fal-0.2.3.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- livekit