sora-sdk 2024.4.0.dev45__cp311-cp311-macosx_15_0_arm64.whl → 2025.1.0__cp311-cp311-macosx_15_0_arm64.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 sora-sdk might be problematic. Click here for more details.

@@ -6,9 +6,9 @@ from numpy.typing import ArrayLike
6
6
 
7
7
 
8
8
  class Sora:
9
- def __init__(self, use_hardware_encoder: bool | None = None, openh264: str | None = None) -> None: ...
9
+ def __init__(self, openh264: str | None = None, video_codec_preference: SoraVideoCodecPreference | None = None) -> None: ...
10
10
 
11
- def create_connection(self, signaling_urls: list[str], role: str, channel_id: str, client_id: Optional[str] = None, bundle_id: Optional[str] = None, metadata: Optional[dict] = None, signaling_notify_metadata: Optional[dict] = None, audio_source: Optional[SoraTrackInterface] = None, video_source: Optional[SoraTrackInterface] = None, audio_frame_transformer: Optional[SoraAudioFrameTransformer] = None, video_frame_transformer: Optional[SoraVideoFrameTransformer] = None, audio: Optional[bool] = None, video: Optional[bool] = None, audio_codec_type: Optional[str] = None, video_codec_type: Optional[str] = None, video_bit_rate: Optional[int] = None, audio_bit_rate: Optional[int] = None, video_vp9_params: Optional[dict] = None, video_av1_params: Optional[dict] = None, video_h264_params: Optional[dict] = None, audio_opus_params: Optional[dict] = None, simulcast: Optional[bool] = None, spotlight: Optional[bool] = None, spotlight_number: Optional[int] = None, simulcast_rid: Optional[str] = None, spotlight_focus_rid: Optional[str] = None, spotlight_unfocus_rid: Optional[str] = None, forwarding_filter: Optional[dict] = None, forwarding_filters: Optional[list[dict]] = None, data_channels: Optional[list[dict]] = None, data_channel_signaling: Optional[bool] = None, ignore_disconnect_websocket: Optional[bool] = None, data_channel_signaling_timeout: Optional[int] = None, disconnect_wait_timeout: Optional[int] = None, websocket_close_timeout: Optional[int] = None, websocket_connection_timeout: Optional[int] = None, audio_streaming_language_code: Optional[str] = None, insecure: Optional[bool] = None, client_cert: Optional[bytes] = None, client_key: Optional[bytes] = None, ca_cert: Optional[bytes] = None, proxy_url: Optional[str] = None, proxy_username: Optional[str] = None, proxy_password: Optional[str] = None, proxy_agent: Optional[str] = None) -> SoraConnection: ...
11
+ def create_connection(self, signaling_urls: list[str], role: str, channel_id: str, client_id: Optional[str] = None, bundle_id: Optional[str] = None, metadata: Optional[dict] = None, signaling_notify_metadata: Optional[dict] = None, audio_source: Optional[SoraTrackInterface] = None, video_source: Optional[SoraTrackInterface] = None, audio_frame_transformer: Optional[SoraAudioFrameTransformer] = None, video_frame_transformer: Optional[SoraVideoFrameTransformer] = None, audio: Optional[bool] = None, video: Optional[bool] = None, audio_codec_type: Optional[str] = None, video_codec_type: Optional[str] = None, video_bit_rate: Optional[int] = None, audio_bit_rate: Optional[int] = None, video_vp9_params: Optional[dict] = None, video_av1_params: Optional[dict] = None, video_h264_params: Optional[dict] = None, audio_opus_params: Optional[dict] = None, simulcast: Optional[bool] = None, spotlight: Optional[bool] = None, spotlight_number: Optional[int] = None, simulcast_rid: Optional[str] = None, spotlight_focus_rid: Optional[str] = None, spotlight_unfocus_rid: Optional[str] = None, forwarding_filter: Optional[dict] = None, forwarding_filters: Optional[list[dict]] = None, data_channels: Optional[list[dict]] = None, data_channel_signaling: Optional[bool] = None, ignore_disconnect_websocket: Optional[bool] = None, data_channel_signaling_timeout: Optional[int] = None, disconnect_wait_timeout: Optional[int] = None, websocket_close_timeout: Optional[int] = None, websocket_connection_timeout: Optional[int] = None, audio_streaming_language_code: Optional[str] = None, insecure: Optional[bool] = None, client_cert: Optional[bytes] = None, client_key: Optional[bytes] = None, ca_cert: Optional[bytes] = None, proxy_url: Optional[str] = None, proxy_username: Optional[str] = None, proxy_password: Optional[str] = None, proxy_agent: Optional[str] = None, degradation_preference: Optional[SoraDegradationPreference] = None) -> SoraConnection: ...
12
12
 
13
13
  def create_audio_source(self, channels: int, sample_rate: int) -> SoraAudioSource: ...
14
14
 
@@ -156,6 +156,15 @@ class SoraConnection:
156
156
  @on_data_channel.setter
157
157
  def on_data_channel(self, arg: Callable[[str], None], /) -> None: ...
158
158
 
159
+ class SoraDegradationPreference(enum.IntEnum):
160
+ DISABLED = 0
161
+
162
+ BALANCED = 3
163
+
164
+ MAINTAIN_FRAMERATE = 1
165
+
166
+ MAINTAIN_RESOLUTION = 2
167
+
159
168
  class SoraFrameTransformer:
160
169
  def enqueue(self, arg: SoraTransformableFrame, /) -> None: ...
161
170
 
@@ -313,6 +322,132 @@ class SoraVAD:
313
322
 
314
323
  def analyze(self, frame: SoraAudioFrame) -> float: ...
315
324
 
325
+ class SoraVideoCodecCapability:
326
+ @property
327
+ def engines(self) -> list[SoraVideoCodecCapability.Engine]: ...
328
+
329
+ def to_json(self) -> object: ...
330
+
331
+ class Parameters:
332
+ @property
333
+ def version(self) -> str | None: ...
334
+
335
+ @property
336
+ def openh264_path(self) -> str | None: ...
337
+
338
+ @property
339
+ def vpl_impl(self) -> str | None: ...
340
+
341
+ @property
342
+ def vpl_impl_value(self) -> int | None: ...
343
+
344
+ @property
345
+ def nvcodec_gpu_device_name(self) -> str | None: ...
346
+
347
+ @property
348
+ def amf_runtime_version(self) -> str | None: ...
349
+
350
+ @property
351
+ def amf_embedded_version(self) -> str | None: ...
352
+
353
+ class Codec:
354
+ @property
355
+ def type(self) -> SoraVideoCodecType: ...
356
+
357
+ @property
358
+ def encoder(self) -> bool: ...
359
+
360
+ @property
361
+ def decoder(self) -> bool: ...
362
+
363
+ @property
364
+ def parameters(self) -> SoraVideoCodecCapability.Parameters: ...
365
+
366
+ class Engine:
367
+ @property
368
+ def name(self) -> SoraVideoCodecImplementation: ...
369
+
370
+ @property
371
+ def codecs(self) -> list[SoraVideoCodecCapability.Codec]: ...
372
+
373
+ @property
374
+ def parameters(self) -> SoraVideoCodecCapability.Parameters: ...
375
+
376
+ class SoraVideoCodecImplementation(enum.IntEnum):
377
+ INTERNAL = 0
378
+
379
+ CISCO_OPENH264 = 1
380
+
381
+ INTEL_VPL = 2
382
+
383
+ NVIDIA_VIDEO_CODEC_SDK = 3
384
+
385
+ AMD_AMF = 4
386
+
387
+ class SoraVideoCodecPreference:
388
+ def __init__(self, codecs: Sequence[SoraVideoCodecPreference.Codec] = []) -> None: ...
389
+
390
+ @property
391
+ def codecs(self) -> list[SoraVideoCodecPreference.Codec]: ...
392
+
393
+ @codecs.setter
394
+ def codecs(self, arg: Sequence[SoraVideoCodecPreference.Codec], /) -> None: ...
395
+
396
+ def to_json(self) -> object: ...
397
+
398
+ def find(self, arg: SoraVideoCodecType, /) -> int | None: ...
399
+
400
+ def get_or_add(self, arg: SoraVideoCodecType, /) -> int: ...
401
+
402
+ def has_implementation(self, arg: SoraVideoCodecImplementation, /) -> bool: ...
403
+
404
+ def merge(self, arg: SoraVideoCodecPreference, /) -> None: ...
405
+
406
+ class Parameters:
407
+ def __init__(self) -> None: ...
408
+
409
+ class Codec:
410
+ @overload
411
+ def __init__(self) -> None: ...
412
+
413
+ @overload
414
+ def __init__(self, type: SoraVideoCodecType, encoder: SoraVideoCodecImplementation | None = None, decoder: SoraVideoCodecImplementation | None = None, parameters: SoraVideoCodecPreference.Parameters = ...) -> None: ...
415
+
416
+ @property
417
+ def type(self) -> SoraVideoCodecType: ...
418
+
419
+ @type.setter
420
+ def type(self, arg: SoraVideoCodecType, /) -> None: ...
421
+
422
+ @property
423
+ def encoder(self) -> SoraVideoCodecImplementation | None: ...
424
+
425
+ @encoder.setter
426
+ def encoder(self, arg: SoraVideoCodecImplementation, /) -> None: ...
427
+
428
+ @property
429
+ def decoder(self) -> SoraVideoCodecImplementation | None: ...
430
+
431
+ @decoder.setter
432
+ def decoder(self, arg: SoraVideoCodecImplementation, /) -> None: ...
433
+
434
+ @property
435
+ def parameters(self) -> SoraVideoCodecPreference.Parameters: ...
436
+
437
+ @parameters.setter
438
+ def parameters(self, arg: SoraVideoCodecPreference.Parameters, /) -> None: ...
439
+
440
+ class SoraVideoCodecType(enum.IntEnum):
441
+ VP8 = 1
442
+
443
+ VP9 = 2
444
+
445
+ H264 = 4
446
+
447
+ H265 = 5
448
+
449
+ AV1 = 3
450
+
316
451
  class SoraVideoFrame:
317
452
  def data(self) -> Annotated[ArrayLike, dict(dtype='uint8', shape=(None, None, 3))]: ...
318
453
 
@@ -348,4 +483,10 @@ class SoraVideoSource(SoraTrackInterface):
348
483
  @overload
349
484
  def on_captured(self, ndarray: Annotated[ArrayLike, dict(dtype='uint8', shape=(None, None, 3), order='C', device='cpu')], timestamp_us: int) -> None: ...
350
485
 
486
+ def create_video_codec_preference_from_implementation(arg0: SoraVideoCodecCapability, arg1: SoraVideoCodecImplementation, /) -> SoraVideoCodecPreference: ...
487
+
351
488
  def enable_libwebrtc_log(arg: SoraLoggingSeverity, /) -> None: ...
489
+
490
+ def get_video_codec_capability(openh264: str | None = None) -> SoraVideoCodecCapability: ...
491
+
492
+ def rtc_log(arg0: SoraLoggingSeverity, arg1: str, /) -> None: ...
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: sora_sdk
3
- Version: 2024.4.0.dev45
3
+ Version: 2025.1.0
4
4
  Summary: WebRTC SFU Sora Python SDK
5
5
  Home-page: https://github.com/shiguredo/sora-python-sdk
6
6
  Author-email: "Shiguredo Inc." <contact+pypi@shiguredo.jp>
@@ -187,14 +187,14 @@ Project-URL: Documentation, https://sora-python-sdk.shiguredo.jp
187
187
  Project-URL: Discord, https://discord.gg/shiguredo
188
188
  Classifier: License :: OSI Approved :: Apache Software License
189
189
  Classifier: Programming Language :: Python :: 3 :: Only
190
- Classifier: Programming Language :: Python :: 3.10
191
190
  Classifier: Programming Language :: Python :: 3.11
192
191
  Classifier: Programming Language :: Python :: 3.12
193
192
  Classifier: Programming Language :: Python :: 3.13
194
- Requires-Python: >=3.10
193
+ Requires-Python: >=3.11
195
194
  Description-Content-Type: text/markdown
196
195
  License-File: LICENSE
197
196
  License-File: NOTICE.md
197
+ Dynamic: home-page
198
198
 
199
199
  # Sora Python SDK
200
200
 
@@ -228,13 +228,24 @@ Please read <https://github.com/shiguredo/oss/blob/master/README.en.md> before u
228
228
  - Windows / macOS / Linux (Ubuntu) プラットフォームに対応
229
229
  - [WebRTC 統計情報](https://www.w3.org/TR/webrtc-stats/) の取得が可能
230
230
  - [WebRTC Encoded Transform](https://www.w3.org/TR/webrtc-encoded-transform/) に対応
231
+ - 回線が不安定になった際、解像度とフレームレートどちらを維持するかの設定をする [DegradationPreference](https://w3c.github.io/mst-content-hint/#degradation-preference-when-encoding) に対応
232
+ - MAINTAIN_FRAMERATE / MAINTAIN_RESOLUTION / BALANCED が指定できる
231
233
  - Intel / Apple / NVIDIA のハードウェアデコーダー/エンコーダーに対応
232
- - Intel VPL (AV1 / H.264 / H.265)
233
234
  - Apple Video Toolbox (H.264 / H.265)
234
- - NVIDIA Video Codec SDK (VP9 / H.264 / H.265)
235
+ - macOS arm64 で利用できる
236
+ - Intel VPL (AV1 / H.264 / H.265)
237
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
238
+ - AMD AMF (VP9 /AV1 / H.264 / H.265)
239
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
240
+ - AV1 エンコードは Windows x86_64 でのみ利用できる
241
+ - VP9 はデコードのみ利用できる
242
+ - NVIDIA Video Codec SDK (VP8 / VP9 / AV1 / H.264 / H.265)
243
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
244
+ - VP8 と VP9 はデコードのみ利用できる
235
245
  - NVIDIA Jetson JetPack SDK (AV1 / H.264 / H.265)
236
246
  - [各プラットフォームで利用可能な HWA への対応](https://github.com/shiguredo/sora-cpp-sdk?tab=readme-ov-file#%E7%89%B9%E5%BE%B4)
237
247
  - [OpenH264](https://github.com/cisco/openh264) を利用した H.264 のソフトウェアエンコーダー/デコーダーに対応
248
+ - Ubuntu x86_64 / Ubuntu arm64 / Windows x86_64 / macOS arm64 で利用できる
238
249
  - 音声デバイス処理に [sounddevice](https://pypi.org/project/sounddevice/) などが利用できる
239
250
  - 映像デバイス処理に [opencv-python](https://pypi.org/project/opencv-python/) などが利用できる
240
251
  - 音声認識などの入力に受信した音声を利用できる
@@ -282,20 +293,24 @@ PyPI 経由ではインストールできません。
282
293
 
283
294
  ## システム条件
284
295
 
285
- - WebRTC SFU Sora 2023.2.0 以降
286
- - Python 3.10 以上
296
+ - WebRTC SFU Sora 2024.1.0 以降
297
+ - Python 3.11 以上
298
+
299
+ ## Python サポートポリシー
300
+
301
+ 直近の 3 バージョンの Python をサポートします。
287
302
 
288
303
  ## 対応プラットフォーム
289
304
 
290
- - Windows 11 x86_64
291
- - Windows Server 2022 x86_64
292
- - macOS Sequoia 15 arm64
293
- - macOS Ventura 14 arm64
294
305
  - Ubuntu 24.04 LTS x86_64
295
306
  - Ubuntu 24.04 LTS arm64
296
307
  - Ubuntu 22.04 LTS x86_64
297
308
  - Ubuntu 22.04 LTS arm64 (NVIDIA Jetson JetPack SDK 6)
298
309
  - PyPI からではなくパッケージファイルを利用してください
310
+ - macOS Sequoia 15 arm64
311
+ - macOS Ventura 14 arm64
312
+ - Windows 11 x86_64
313
+ - Windows Server 2022 x86_64
299
314
 
300
315
  ### macOS の対応バージョン
301
316
 
@@ -319,12 +334,9 @@ PyPI 経由ではインストールできません。
319
334
  ### 優先実装が可能な機能一覧
320
335
 
321
336
  - Windows 11 arm64
322
- - macOS Sonoma 13 arm64
323
337
  - Ubuntu 22.04 arm64
338
+ - Ubuntu 22.04 arm64 (NVIDIA Jetson JetPack SDK 6.1)
324
339
  - Ubuntu 20.04 arm64 (NVIDIA Jetson JetPack SDK 5)
325
- - AMD Video Core Next (VCN) 対応
326
- - VP9 / AV1 / H.264 / H.265
327
- - Python 3.9 以前への対応
328
340
 
329
341
  ## サポートについて
330
342
 
@@ -347,9 +359,9 @@ Discord へお願いします。
347
359
  Apache License 2.0
348
360
 
349
361
  ```text
350
- Copyright 2023-2024, tnoho (Original Author)
351
- Copyright 2023-2024, Wandbox LLC (Original Author)
352
- Copyright 2023-2024, Shiguredo Inc.
362
+ Copyright 2023-2025, tnoho (Original Author)
363
+ Copyright 2023-2025, Wandbox LLC (Original Author)
364
+ Copyright 2023-2025, Shiguredo Inc.
353
365
 
354
366
  Licensed under the Apache License, Version 2.0 (the "License");
355
367
  you may not use this file except in compliance with the License.
@@ -0,0 +1,10 @@
1
+ sora_sdk-2025.1.0.data/purelib/sora_sdk/__init__.py,sha256=wmp56UEjNDhA8r3i98RVW_6oVTCskhSOd8qENIU6B5Q,1180
2
+ sora_sdk-2025.1.0.data/purelib/sora_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ sora_sdk-2025.1.0.data/purelib/sora_sdk/sora_sdk_ext.cpython-311-darwin.so,sha256=r7TxoXLRgr-f-or3ek2V5KgcsaH1fUMpgKLQ620i9u8,14616928
4
+ sora_sdk-2025.1.0.data/purelib/sora_sdk/sora_sdk_ext.pyi,sha256=tjh-XIdJx0A0OlE-PlYglKua0lIezpUJyX91pPTTXUY,15384
5
+ sora_sdk-2025.1.0.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
6
+ sora_sdk-2025.1.0.dist-info/METADATA,sha256=euZGBV__Cko_Ki2z_2RuYNW5PUe6f0A79ZC3ELIfcuE,21045
7
+ sora_sdk-2025.1.0.dist-info/NOTICE.md,sha256=lYwHwtm82A3TWxdWhE-TEuCF517wKb1sdk8eBMH47Yk,31624
8
+ sora_sdk-2025.1.0.dist-info/WHEEL,sha256=iUX9MVyQPlqcbj1J89EPRyXxI0aHHHaR3CeuJ8dOcv0,109
9
+ sora_sdk-2025.1.0.dist-info/top_level.txt,sha256=edTg20cFFAjWfRrB0APD_SXho5Qq24PwLESbyPoCVko,9
10
+ sora_sdk-2025.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (76.1.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-macosx_15_0_arm64
5
5
 
@@ -1,10 +0,0 @@
1
- sora_sdk-2024.4.0.dev45.data/purelib/sora_sdk/__init__.py,sha256=wmp56UEjNDhA8r3i98RVW_6oVTCskhSOd8qENIU6B5Q,1180
2
- sora_sdk-2024.4.0.dev45.data/purelib/sora_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- sora_sdk-2024.4.0.dev45.data/purelib/sora_sdk/sora_sdk_ext.cpython-311-darwin.so,sha256=u0-8vRh3FO6noSzY2VDKl1mOw1tDeqyO78Gtmvj3ZhQ,14566128
4
- sora_sdk-2024.4.0.dev45.data/purelib/sora_sdk/sora_sdk_ext.pyi,sha256=olz4kMGitd32S0YCX6a-E1NUxxf9ACFObD1iZ377v2w,11555
5
- sora_sdk-2024.4.0.dev45.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
6
- sora_sdk-2024.4.0.dev45.dist-info/METADATA,sha256=Bqfp221UefPesUw9jtrTPN6VSdiCKotinNFKlBUGYzM,20234
7
- sora_sdk-2024.4.0.dev45.dist-info/NOTICE.md,sha256=lYwHwtm82A3TWxdWhE-TEuCF517wKb1sdk8eBMH47Yk,31624
8
- sora_sdk-2024.4.0.dev45.dist-info/WHEEL,sha256=BH79EMEZDNHclVtodvdRJ5hxB6-dyW8VVf908vJ9aKg,109
9
- sora_sdk-2024.4.0.dev45.dist-info/top_level.txt,sha256=edTg20cFFAjWfRrB0APD_SXho5Qq24PwLESbyPoCVko,9
10
- sora_sdk-2024.4.0.dev45.dist-info/RECORD,,