livekit-plugins-clova 1.0.23__py3-none-any.whl → 1.1.1__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-clova might be problematic. Click here for more details.

@@ -30,10 +30,10 @@ from livekit.agents import Plugin
30
30
 
31
31
 
32
32
  class ClovaSTTPlugin(Plugin):
33
- def __init__(self):
33
+ def __init__(self) -> None:
34
34
  super().__init__(__name__, __version__, __package__)
35
35
 
36
- def download_files(self):
36
+ def download_files(self) -> None:
37
37
  pass
38
38
 
39
39
 
@@ -1,13 +1,13 @@
1
1
  import io
2
2
 
3
- from pydub import AudioSegment
3
+ from pydub import AudioSegment # type: ignore[import-untyped]
4
4
 
5
5
 
6
- def resample_audio(audio_bytes, original_sample_rate, target_sample_rate):
6
+ def resample_audio(audio_bytes: bytes, original_sample_rate: int, target_sample_rate: int) -> bytes:
7
7
  resampled_audio = AudioSegment.from_raw(
8
8
  io.BytesIO(audio_bytes),
9
9
  sample_width=2,
10
10
  frame_rate=original_sample_rate,
11
11
  channels=1,
12
12
  ).set_frame_rate(target_sample_rate)
13
- return resampled_audio.raw_data
13
+ return resampled_audio.raw_data # type: ignore
File without changes
@@ -62,16 +62,17 @@ class STT(stt.STT):
62
62
  """
63
63
 
64
64
  super().__init__(capabilities=STTCapabilities(streaming=False, interim_results=True))
65
- self._secret = secret if is_given(secret) else os.environ.get("CLOVA_STT_SECRET_KEY")
65
+ clova_secret = secret if is_given(secret) else os.environ.get("CLOVA_STT_SECRET_KEY")
66
66
  self._invoke_url = (
67
67
  invoke_url if is_given(invoke_url) else os.environ.get("CLOVA_STT_INVOKE_URL")
68
68
  )
69
69
  self._language = clova_languages_mapping.get(language, language)
70
70
  self._session = http_session
71
- if self._secret is None:
71
+ if clova_secret is None:
72
72
  raise ValueError(
73
73
  "Clova STT secret key is required. It should be set with env CLOVA_STT_SECRET_KEY"
74
74
  )
75
+ self._secret = clova_secret
75
76
  self.threshold = threshold
76
77
 
77
78
  def update_options(self, *, language: NotGivenOr[str] = NOT_GIVEN) -> None:
@@ -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.23"
15
+ __version__ = "1.1.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-clova
3
- Version: 1.0.23
3
+ Version: 1.1.1
4
4
  Summary: LiveKit Agents Plugin for LINE Clova STT
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.23
21
+ Requires-Dist: livekit-agents>=1.1.1
22
22
  Requires-Dist: pydub~=0.25.1
23
23
  Description-Content-Type: text/markdown
24
24
 
@@ -0,0 +1,11 @@
1
+ livekit/plugins/clova/__init__.py,sha256=W_ySatkiAntkLLtJ4Fd_kKu59LcDGtYsQvB7Enc3fTM,1224
2
+ livekit/plugins/clova/common.py,sha256=XamlyMuQPM_FzrPFqTlCjPLJNSedjxjFtKlzHHqsfZ4,433
3
+ livekit/plugins/clova/constants.py,sha256=b6X_va-KsJWDsDdjo-nka7yae_9fVmTnTb_sQm8gQao,66
4
+ livekit/plugins/clova/log.py,sha256=odnkyQ2umM1S3wZiHAaOrUowHZl-de1y57MXL9CD1uI,68
5
+ livekit/plugins/clova/models.py,sha256=R71m_BcWxmdqSPIrfc49a0yuJMlcrzT8HuQZTWmCpQk,378
6
+ livekit/plugins/clova/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ livekit/plugins/clova/stt.py,sha256=QAz0l3yMVQVFbVm012_7j6J5ITdLA2-BkvheGpMvI2U,6027
8
+ livekit/plugins/clova/version.py,sha256=E83fn58yMTAPuXx54IpvCWS3c9SBNF9zNIhbism7Hz0,600
9
+ livekit_plugins_clova-1.1.1.dist-info/METADATA,sha256=5MaPB_iHpebGYgs1yYXA2GyMWGBFf_bh1X1Fo9s0GkM,1421
10
+ livekit_plugins_clova-1.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ livekit_plugins_clova-1.1.1.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- livekit/plugins/clova/__init__.py,sha256=qpX66qOIRgb7FOWWdE6nXAPW8k74lIeC7dwMqRYyeKg,1208
2
- livekit/plugins/clova/common.py,sha256=67vNmTLX7le5nTpM4N8MFNmQuIYCXy7NKf9-OkP1JmI,359
3
- livekit/plugins/clova/constants.py,sha256=b6X_va-KsJWDsDdjo-nka7yae_9fVmTnTb_sQm8gQao,66
4
- livekit/plugins/clova/log.py,sha256=odnkyQ2umM1S3wZiHAaOrUowHZl-de1y57MXL9CD1uI,68
5
- livekit/plugins/clova/models.py,sha256=R71m_BcWxmdqSPIrfc49a0yuJMlcrzT8HuQZTWmCpQk,378
6
- livekit/plugins/clova/stt.py,sha256=cWU9t507GB6v1X1iYOO3kxtzvPM-A5YZQdRFtFRH5kI,5991
7
- livekit/plugins/clova/version.py,sha256=BRUqwxRBnPVqEcIODJdaZHGAanu4zkwM4NsAQjNtUEM,601
8
- livekit_plugins_clova-1.0.23.dist-info/METADATA,sha256=MEcrzYaPXWbBygWthaVNxvu1mymtVzbWMH82wrobeCo,1423
9
- livekit_plugins_clova-1.0.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- livekit_plugins_clova-1.0.23.dist-info/RECORD,,