sora-sdk 2025.1.0.dev17__tar.gz → 2025.2.0__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.
Files changed (48) hide show
  1. sora_sdk-2025.2.0/PKG-INFO +237 -0
  2. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/README.md +16 -5
  3. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/pyproject.toml +11 -10
  4. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/src/sora_sdk/sora_sdk_ext.cpython-311-darwin.so +0 -0
  5. sora_sdk-2025.2.0/src/sora_sdk.egg-info/PKG-INFO +237 -0
  6. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/src/sora_sdk.egg-info/SOURCES.txt +1 -2
  7. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_amd_amf.py +28 -27
  8. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_apple_video_toolbox.py +58 -41
  9. sora_sdk-2025.2.0/tests/test_authz_simulcast.py +544 -0
  10. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_intel_vpl.py +45 -37
  11. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_nvidia_video_codec_sdk.py +38 -29
  12. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_openh264.py +0 -128
  13. sora_sdk-2025.2.0/tests/test_openh264_simulcast.py +434 -0
  14. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_sendonly_recvonly.py +7 -8
  15. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_simulcast.py +44 -34
  16. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_sora_disconnect.py +0 -12
  17. sora_sdk-2025.1.0.dev17/NOTICE.md +0 -580
  18. sora_sdk-2025.1.0.dev17/PKG-INFO +0 -404
  19. sora_sdk-2025.1.0.dev17/src/sora_sdk.egg-info/PKG-INFO +0 -404
  20. sora_sdk-2025.1.0.dev17/tests/test_authz_simulcast.py +0 -197
  21. sora_sdk-2025.1.0.dev17/tests/test_memory_leak.py +0 -25
  22. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/LICENSE +0 -0
  23. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/MANIFEST.in +0 -0
  24. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/buildbase.py +0 -0
  25. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/pypath.py +0 -0
  26. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/run.py +0 -0
  27. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/setup.cfg +0 -0
  28. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/setup.py +0 -0
  29. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/src/sora_sdk/__init__.py +0 -0
  30. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/src/sora_sdk/py.typed +0 -0
  31. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/src/sora_sdk/sora_sdk_ext.pyi +188 -188
  32. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/src/sora_sdk.egg-info/dependency_links.txt +0 -0
  33. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/src/sora_sdk.egg-info/top_level.txt +0 -0
  34. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_authz.py +0 -0
  35. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_ca_cert.py +0 -0
  36. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_capability.py +0 -0
  37. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_degradation_preference.py +0 -0
  38. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_encoded_transform.py +0 -0
  39. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_messaging.py +0 -0
  40. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_messaging_header.py +0 -0
  41. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_opus.py +0 -0
  42. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_re_offer_re_answer_sdp.py +0 -0
  43. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_signaling.py +0 -0
  44. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_signaling_message.py +0 -0
  45. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_signaling_notify.py +0 -0
  46. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_type_disconnect.py +0 -0
  47. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_type_switched.py +0 -0
  48. {sora_sdk-2025.1.0.dev17 → sora_sdk-2025.2.0}/tests/test_vad.py +0 -0
@@ -0,0 +1,237 @@
1
+ Metadata-Version: 2.4
2
+ Name: sora_sdk
3
+ Version: 2025.2.0
4
+ Summary: WebRTC SFU Sora Python SDK
5
+ Home-page: https://github.com/shiguredo/sora-python-sdk
6
+ Author-email: "Shiguredo Inc." <contact+pypi@shiguredo.jp>
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Source, https://github.com/shiguredo/sora-python-sdk
9
+ Project-URL: Documentation, https://sora-python-sdk.shiguredo.jp
10
+ Project-URL: Discord, https://discord.gg/shiguredo
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Requires-Python: >=3.11
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: home-page
19
+ Dynamic: license-file
20
+
21
+ # Sora Python SDK
22
+
23
+ [![PyPI](https://img.shields.io/pypi/v/sora_sdk)](https://pypi.org/project/sora-sdk/)
24
+ [![image](https://img.shields.io/pypi/pyversions/sora_sdk.svg)](https://pypi.python.org/pypi/sora_sdk)
25
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
26
+ [![Actions status](https://github.com/shiguredo/sora-python-sdk/workflows/build/badge.svg)](https://github.com/shiguredo/sora-python-sdk/actions)
27
+
28
+ Sora Python SDK は [WebRTC SFU Sora](https://sora.shiguredo.jp/) の Python クライアントアプリケーションを開発するためのライブラリです。[Sora C++ SDK](https://github.com/shiguredo/sora-cpp-sdk) をベースにしています。
29
+
30
+ ## About Shiguredo's open source software
31
+
32
+ We will not respond to PRs or issues that have not been discussed on Discord. Also, Discord is only available in Japanese.
33
+
34
+ Please read <https://github.com/shiguredo/oss/blob/master/README.en.md> before use.
35
+
36
+ ## 時雨堂のオープンソースソフトウェアについて
37
+
38
+ 利用前に <https://github.com/shiguredo/oss> をお読みください。
39
+
40
+ ## Sora Python SDK について
41
+
42
+ 様々なプラットフォームに対応しすぐに使い始められる WebRTC SFU Sora 向けの Python SDK です。
43
+
44
+ 音声や映像デバイスの処理を SDK から独立させているため、様々なライブラリを利用する事ができます。
45
+
46
+ ## 特徴
47
+
48
+ - [Sora C++ SDK](https://github.com/shiguredo/sora-cpp-sdk) ベース
49
+ - WebRTC 部分の機能は [libwebrtc](https://webrtc.googlesource.com/src/) を採用
50
+ - Windows / macOS / Linux (Ubuntu) プラットフォームに対応
51
+ - [WebRTC 統計情報](https://www.w3.org/TR/webrtc-stats/) の取得が可能
52
+ - [WebRTC Encoded Transform](https://www.w3.org/TR/webrtc-encoded-transform/) に対応
53
+ - 回線が不安定になった際、解像度とフレームレートどちらを維持するかの設定をする [DegradationPreference](https://w3c.github.io/mst-content-hint/#degradation-preference-when-encoding) に対応
54
+ - MAINTAIN_FRAMERATE / MAINTAIN_RESOLUTION / BALANCED が指定できる
55
+ - Intel / Apple / NVIDIA のハードウェアデコーダー/エンコーダーに対応
56
+ - Apple Video Toolbox (H.264 / H.265)
57
+ - macOS arm64 で利用できる
58
+ - Intel VPL (AV1 / H.264 / H.265)
59
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
60
+ - AMD AMF (VP9 /AV1 / H.264 / H.265)
61
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
62
+ - AV1 エンコードは Windows x86_64 でのみ利用できる
63
+ - VP9 はデコードのみ利用できる
64
+ - NVIDIA Video Codec SDK (VP8 / VP9 / AV1 / H.264 / H.265)
65
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
66
+ - VP8 と VP9 はデコードのみ利用できる
67
+ - NVIDIA Jetson JetPack SDK (AV1 / H.264 / H.265)
68
+ - [各プラットフォームで利用可能な HWA への対応](https://github.com/shiguredo/sora-cpp-sdk?tab=readme-ov-file#%E7%89%B9%E5%BE%B4)
69
+ - [OpenH264](https://github.com/cisco/openh264) を利用した H.264 のソフトウェアエンコーダー/デコーダーに対応
70
+ - Ubuntu x86_64 / Ubuntu arm64 / Windows x86_64 / macOS arm64 で利用できる
71
+ - 音声デバイス処理に [sounddevice](https://pypi.org/project/sounddevice/) などが利用できる
72
+ - 映像デバイス処理に [opencv-python](https://pypi.org/project/opencv-python/) などが利用できる
73
+ - 音声認識などの入力に受信した音声を利用できる
74
+ - 物体検出などの入力に受信した映像を利用できる
75
+ - `uv add sora_sdk` や `pip install sora_sdk` でインストール可能
76
+ - [NVIDIA Jetson JetPack SDK](https://developer.nvidia.com/embedded/jetpack) に対応
77
+
78
+ ## 利用イメージ
79
+
80
+ - データチャンネルを利用して Python において映像、音声を解析した結果を Sora 経由で配信する
81
+ - Text to Speech の音声を Sora 経由で配信する
82
+ - 映像入力に対して Pillow などで加工した映像を Sora を経由で配信する
83
+ - A チャンネルの参加者からの映像と音声を B チャンネルに対して加工した上で Sora 経由で配信する
84
+
85
+ ## ドキュメント
86
+
87
+ [Sora Python SDK](https://sora-python-sdk.shiguredo.jp/)
88
+
89
+ ## サンプル集
90
+
91
+ [shiguredo/sora-python-sdk-examples](https://github.com/shiguredo/sora-python-sdk-examples)
92
+
93
+ ## sora_sdk パッケージの追加
94
+
95
+ ### uv
96
+
97
+ [uv](https://docs.astral.sh/uv/)
98
+
99
+ ```bash
100
+ uv add sora_sdk
101
+ ```
102
+
103
+ ### pip
104
+
105
+ ```bash
106
+ pip install sora_sdk
107
+ ```
108
+
109
+ ### NVIDIA Jetson 向けパッケージ
110
+
111
+ PyPI 経由ではインストールできません。
112
+ パッケージバイナリを配布しておりますので、そちらをご利用ください。
113
+
114
+ <https://github.com/shiguredo/sora-python-sdk/releases/tag/2024.3.0-jetson-jetpack-6.0.0.0>
115
+
116
+ ## システム条件
117
+
118
+ - WebRTC SFU Sora 2024.1.0 以降
119
+ - Python 3.11 以上
120
+
121
+ ## Python サポートポリシー
122
+
123
+ 直近の 3 バージョンの Python をサポートします。
124
+
125
+ ## 対応プラットフォーム
126
+
127
+ - Ubuntu 24.04 LTS x86_64
128
+ - Ubuntu 24.04 LTS arm64
129
+ - Ubuntu 22.04 LTS x86_64
130
+ - Ubuntu 22.04 LTS arm64 (NVIDIA Jetson JetPack SDK 6)
131
+ - PyPI からではなくパッケージファイルを利用してください
132
+ - macOS Sequoia 15 arm64
133
+ - macOS Ventura 14 arm64
134
+ - Windows 11 x86_64
135
+ - Windows Server 2022 x86_64
136
+
137
+ ### macOS の対応バージョン
138
+
139
+ 直近の 2 バージョンをサポートします。
140
+
141
+ ### Ubuntu の対応バージョン
142
+
143
+ 直近の LTS 2 バージョンをサポートします。
144
+
145
+ ## 優先実装
146
+
147
+ 優先実装とは Sora のライセンスを契約頂いているお客様向けに Sora Python SDK の実装予定機能を有償にて前倒しで実装することです。
148
+
149
+ **詳細は Discord やメールなどでお気軽にお問い合わせください**
150
+
151
+ - DataChannel 対応
152
+ - [アダワープジャパン株式会社](https://adawarp.com/) 様
153
+ - Intel VPL H.265 対応
154
+ - [アダワープジャパン株式会社](https://adawarp.com/) 様
155
+
156
+ ### 優先実装が可能な機能一覧
157
+
158
+ - Windows 11 arm64
159
+ - Ubuntu 22.04 arm64
160
+ - Ubuntu 22.04 arm64 (NVIDIA Jetson JetPack SDK 6.1)
161
+ - Ubuntu 20.04 arm64 (NVIDIA Jetson JetPack SDK 5)
162
+
163
+ ## サポートについて
164
+
165
+ ### Discord
166
+
167
+ - **サポートしません**
168
+ - アドバイスします
169
+ - フィードバック歓迎します
170
+
171
+ 最新の状況などは Discord で共有しています。質問や相談も Discord でのみ受け付けています。
172
+
173
+ <https://discord.gg/shiguredo>
174
+
175
+ ### バグ報告
176
+
177
+ Discord へお願いします。
178
+
179
+ ## ライセンス
180
+
181
+ Apache License 2.0
182
+
183
+ ```text
184
+ Copyright 2023-2025, tnoho (Original Author)
185
+ Copyright 2023-2025, Wandbox LLC (Original Author)
186
+ Copyright 2023-2025, Shiguredo Inc.
187
+
188
+ Licensed under the Apache License, Version 2.0 (the "License");
189
+ you may not use this file except in compliance with the License.
190
+ You may obtain a copy of the License at
191
+
192
+ http://www.apache.org/licenses/LICENSE-2.0
193
+
194
+ Unless required by applicable law or agreed to in writing, software
195
+ distributed under the License is distributed on an "AS IS" BASIS,
196
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197
+ See the License for the specific language governing permissions and
198
+ limitations under the License.
199
+ ```
200
+
201
+ ## OpenH264
202
+
203
+ <https://www.openh264.org/BINARY_LICENSE.txt>
204
+
205
+ ```text
206
+ "OpenH264 Video Codec provided by Cisco Systems, Inc."
207
+ ```
208
+
209
+ ## NVDIA Video Codec SDK
210
+
211
+ <https://docs.nvidia.com/video-technologies/video-codec-sdk/12.2/license/index.html>
212
+
213
+ ```text
214
+ “This software contains source code provided by NVIDIA Corporation.”
215
+ ```
216
+
217
+ ## H.264 (AVC) と H.265 (HEVC) のライセンスについて
218
+
219
+ **時雨堂が提供する libwebrtc のビルド済みバイナリには H.264 と H.265 のコーデックは含まれていません**
220
+
221
+ ### H.264
222
+
223
+ H.264 対応は [Via LA Licensing](https://www.via-la.com/) (旧 MPEG-LA) に連絡を取り、ロイヤリティの対象にならないことを確認しています。
224
+
225
+ > 時雨堂がエンドユーザーの PC /デバイスに既に存在する AVC / H.264 エンコーダー/デコーダーに依存する製品を提供する場合は、
226
+ > ソフトウェア製品は AVC ライセンスの対象外となり、ロイヤリティの対象にもなりません。
227
+
228
+ ### H.265
229
+
230
+ H.265 対応は以下の二つの団体に連絡を取り、H.265 ハードウェアアクセラレーターのみを利用し、
231
+ H.265 が利用可能なバイナリを配布する事は、ライセンスが不要であることを確認しています。
232
+
233
+ また、H.265 のハードウェアアクセラレーターのみを利用した H.265 対応の SDK を OSS で公開し、
234
+ ビルド済みバイナリを配布する事は、ライセンスが不要であることも確認しています。
235
+
236
+ - [Access Advance](https://accessadvance.com/ja/)
237
+ - [Via LA Licensing](https://www.via-la.com/)
@@ -33,12 +33,17 @@ Please read <https://github.com/shiguredo/oss/blob/master/README.en.md> before u
33
33
  - 回線が不安定になった際、解像度とフレームレートどちらを維持するかの設定をする [DegradationPreference](https://w3c.github.io/mst-content-hint/#degradation-preference-when-encoding) に対応
34
34
  - MAINTAIN_FRAMERATE / MAINTAIN_RESOLUTION / BALANCED が指定できる
35
35
  - Intel / Apple / NVIDIA のハードウェアデコーダー/エンコーダーに対応
36
- - Intel VPL (AV1 / H.264 / H.265)
37
- - Ubuntu x86_64 / Windows x86_64 で利用できる
38
36
  - Apple Video Toolbox (H.264 / H.265)
39
37
  - macOS arm64 で利用できる
40
- - NVIDIA Video Codec SDK (VP9 / H.264 / H.265)
38
+ - Intel VPL (AV1 / H.264 / H.265)
39
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
40
+ - AMD AMF (VP9 /AV1 / H.264 / H.265)
41
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
42
+ - AV1 エンコードは Windows x86_64 でのみ利用できる
43
+ - VP9 はデコードのみ利用できる
44
+ - NVIDIA Video Codec SDK (VP8 / VP9 / AV1 / H.264 / H.265)
41
45
  - Ubuntu x86_64 / Windows x86_64 で利用できる
46
+ - VP8 と VP9 はデコードのみ利用できる
42
47
  - NVIDIA Jetson JetPack SDK (AV1 / H.264 / H.265)
43
48
  - [各プラットフォームで利用可能な HWA への対応](https://github.com/shiguredo/sora-cpp-sdk?tab=readme-ov-file#%E7%89%B9%E5%BE%B4)
44
49
  - [OpenH264](https://github.com/cisco/openh264) を利用した H.264 のソフトウェアエンコーダー/デコーダーに対応
@@ -134,8 +139,6 @@ PyPI 経由ではインストールできません。
134
139
  - Ubuntu 22.04 arm64
135
140
  - Ubuntu 22.04 arm64 (NVIDIA Jetson JetPack SDK 6.1)
136
141
  - Ubuntu 20.04 arm64 (NVIDIA Jetson JetPack SDK 5)
137
- - AMD Video Core Next (VCN) 対応
138
- - VP9 / AV1 / H.264 / H.265
139
142
 
140
143
  ## サポートについて
141
144
 
@@ -183,6 +186,14 @@ limitations under the License.
183
186
  "OpenH264 Video Codec provided by Cisco Systems, Inc."
184
187
  ```
185
188
 
189
+ ## NVDIA Video Codec SDK
190
+
191
+ <https://docs.nvidia.com/video-technologies/video-codec-sdk/12.2/license/index.html>
192
+
193
+ ```text
194
+ “This software contains source code provided by NVIDIA Corporation.”
195
+ ```
196
+
186
197
  ## H.264 (AVC) と H.265 (HEVC) のライセンスについて
187
198
 
188
199
  **時雨堂が提供する libwebrtc のビルド済みバイナリには H.264 と H.265 のコーデックは含まれていません**
@@ -1,18 +1,18 @@
1
1
  [project]
2
2
  name = "sora_sdk"
3
3
  authors = [{ name = "Shiguredo Inc.", email = "contact+pypi@shiguredo.jp" }]
4
- version = "2025.1.0.dev17"
4
+ version = "2025.2.0"
5
5
  description = "WebRTC SFU Sora Python SDK"
6
6
  readme = "README.md"
7
- license = { file = "LICENSE" }
7
+ license = "Apache-2.0"
8
+ license-files = ["LICENSE"]
8
9
  classifiers = [
9
- "License :: OSI Approved :: Apache Software License",
10
10
  "Programming Language :: Python :: 3 :: Only",
11
11
  "Programming Language :: Python :: 3.11",
12
12
  "Programming Language :: Python :: 3.12",
13
13
  "Programming Language :: Python :: 3.13",
14
14
  ]
15
- requires-python = ">= 3.10"
15
+ requires-python = ">= 3.11"
16
16
 
17
17
  [project.urls]
18
18
  Source = "https://github.com/shiguredo/sora-python-sdk"
@@ -20,16 +20,16 @@ Documentation = "https://sora-python-sdk.shiguredo.jp"
20
20
  Discord = "https://discord.gg/shiguredo"
21
21
 
22
22
  [build-system]
23
- requires = ["setuptools~=76.0", "wheel~=0.45.1"]
23
+ requires = ["setuptools==80.0", "wheel==0.45.1"]
24
24
  build-backend = "setuptools.build_meta"
25
25
 
26
26
  [tool.uv]
27
27
  python-preference = "only-managed"
28
28
  dev-dependencies = [
29
- "nanobind~=2.5.0",
30
- "setuptools~=76.0",
31
- "build~=1.2.2.post1",
32
- "wheel~=0.45.1",
29
+ "nanobind==2.7.0",
30
+ "setuptools==80.0",
31
+ "build==1.2.2.post1",
32
+ "wheel==0.45.1",
33
33
  "typing-extensions",
34
34
  "python-dotenv",
35
35
  "numpy",
@@ -39,10 +39,11 @@ dev-dependencies = [
39
39
  "mypy",
40
40
  "pyjwt",
41
41
  "pytest-repeat",
42
+ "psutil",
42
43
  ]
43
44
 
44
45
  [tool.ruff]
45
- target-version = "py310"
46
+ target-version = "py311"
46
47
  line-length = 100
47
48
 
48
49
 
@@ -0,0 +1,237 @@
1
+ Metadata-Version: 2.4
2
+ Name: sora_sdk
3
+ Version: 2025.2.0
4
+ Summary: WebRTC SFU Sora Python SDK
5
+ Home-page: https://github.com/shiguredo/sora-python-sdk
6
+ Author-email: "Shiguredo Inc." <contact+pypi@shiguredo.jp>
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Source, https://github.com/shiguredo/sora-python-sdk
9
+ Project-URL: Documentation, https://sora-python-sdk.shiguredo.jp
10
+ Project-URL: Discord, https://discord.gg/shiguredo
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Requires-Python: >=3.11
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: home-page
19
+ Dynamic: license-file
20
+
21
+ # Sora Python SDK
22
+
23
+ [![PyPI](https://img.shields.io/pypi/v/sora_sdk)](https://pypi.org/project/sora-sdk/)
24
+ [![image](https://img.shields.io/pypi/pyversions/sora_sdk.svg)](https://pypi.python.org/pypi/sora_sdk)
25
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
26
+ [![Actions status](https://github.com/shiguredo/sora-python-sdk/workflows/build/badge.svg)](https://github.com/shiguredo/sora-python-sdk/actions)
27
+
28
+ Sora Python SDK は [WebRTC SFU Sora](https://sora.shiguredo.jp/) の Python クライアントアプリケーションを開発するためのライブラリです。[Sora C++ SDK](https://github.com/shiguredo/sora-cpp-sdk) をベースにしています。
29
+
30
+ ## About Shiguredo's open source software
31
+
32
+ We will not respond to PRs or issues that have not been discussed on Discord. Also, Discord is only available in Japanese.
33
+
34
+ Please read <https://github.com/shiguredo/oss/blob/master/README.en.md> before use.
35
+
36
+ ## 時雨堂のオープンソースソフトウェアについて
37
+
38
+ 利用前に <https://github.com/shiguredo/oss> をお読みください。
39
+
40
+ ## Sora Python SDK について
41
+
42
+ 様々なプラットフォームに対応しすぐに使い始められる WebRTC SFU Sora 向けの Python SDK です。
43
+
44
+ 音声や映像デバイスの処理を SDK から独立させているため、様々なライブラリを利用する事ができます。
45
+
46
+ ## 特徴
47
+
48
+ - [Sora C++ SDK](https://github.com/shiguredo/sora-cpp-sdk) ベース
49
+ - WebRTC 部分の機能は [libwebrtc](https://webrtc.googlesource.com/src/) を採用
50
+ - Windows / macOS / Linux (Ubuntu) プラットフォームに対応
51
+ - [WebRTC 統計情報](https://www.w3.org/TR/webrtc-stats/) の取得が可能
52
+ - [WebRTC Encoded Transform](https://www.w3.org/TR/webrtc-encoded-transform/) に対応
53
+ - 回線が不安定になった際、解像度とフレームレートどちらを維持するかの設定をする [DegradationPreference](https://w3c.github.io/mst-content-hint/#degradation-preference-when-encoding) に対応
54
+ - MAINTAIN_FRAMERATE / MAINTAIN_RESOLUTION / BALANCED が指定できる
55
+ - Intel / Apple / NVIDIA のハードウェアデコーダー/エンコーダーに対応
56
+ - Apple Video Toolbox (H.264 / H.265)
57
+ - macOS arm64 で利用できる
58
+ - Intel VPL (AV1 / H.264 / H.265)
59
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
60
+ - AMD AMF (VP9 /AV1 / H.264 / H.265)
61
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
62
+ - AV1 エンコードは Windows x86_64 でのみ利用できる
63
+ - VP9 はデコードのみ利用できる
64
+ - NVIDIA Video Codec SDK (VP8 / VP9 / AV1 / H.264 / H.265)
65
+ - Ubuntu x86_64 / Windows x86_64 で利用できる
66
+ - VP8 と VP9 はデコードのみ利用できる
67
+ - NVIDIA Jetson JetPack SDK (AV1 / H.264 / H.265)
68
+ - [各プラットフォームで利用可能な HWA への対応](https://github.com/shiguredo/sora-cpp-sdk?tab=readme-ov-file#%E7%89%B9%E5%BE%B4)
69
+ - [OpenH264](https://github.com/cisco/openh264) を利用した H.264 のソフトウェアエンコーダー/デコーダーに対応
70
+ - Ubuntu x86_64 / Ubuntu arm64 / Windows x86_64 / macOS arm64 で利用できる
71
+ - 音声デバイス処理に [sounddevice](https://pypi.org/project/sounddevice/) などが利用できる
72
+ - 映像デバイス処理に [opencv-python](https://pypi.org/project/opencv-python/) などが利用できる
73
+ - 音声認識などの入力に受信した音声を利用できる
74
+ - 物体検出などの入力に受信した映像を利用できる
75
+ - `uv add sora_sdk` や `pip install sora_sdk` でインストール可能
76
+ - [NVIDIA Jetson JetPack SDK](https://developer.nvidia.com/embedded/jetpack) に対応
77
+
78
+ ## 利用イメージ
79
+
80
+ - データチャンネルを利用して Python において映像、音声を解析した結果を Sora 経由で配信する
81
+ - Text to Speech の音声を Sora 経由で配信する
82
+ - 映像入力に対して Pillow などで加工した映像を Sora を経由で配信する
83
+ - A チャンネルの参加者からの映像と音声を B チャンネルに対して加工した上で Sora 経由で配信する
84
+
85
+ ## ドキュメント
86
+
87
+ [Sora Python SDK](https://sora-python-sdk.shiguredo.jp/)
88
+
89
+ ## サンプル集
90
+
91
+ [shiguredo/sora-python-sdk-examples](https://github.com/shiguredo/sora-python-sdk-examples)
92
+
93
+ ## sora_sdk パッケージの追加
94
+
95
+ ### uv
96
+
97
+ [uv](https://docs.astral.sh/uv/)
98
+
99
+ ```bash
100
+ uv add sora_sdk
101
+ ```
102
+
103
+ ### pip
104
+
105
+ ```bash
106
+ pip install sora_sdk
107
+ ```
108
+
109
+ ### NVIDIA Jetson 向けパッケージ
110
+
111
+ PyPI 経由ではインストールできません。
112
+ パッケージバイナリを配布しておりますので、そちらをご利用ください。
113
+
114
+ <https://github.com/shiguredo/sora-python-sdk/releases/tag/2024.3.0-jetson-jetpack-6.0.0.0>
115
+
116
+ ## システム条件
117
+
118
+ - WebRTC SFU Sora 2024.1.0 以降
119
+ - Python 3.11 以上
120
+
121
+ ## Python サポートポリシー
122
+
123
+ 直近の 3 バージョンの Python をサポートします。
124
+
125
+ ## 対応プラットフォーム
126
+
127
+ - Ubuntu 24.04 LTS x86_64
128
+ - Ubuntu 24.04 LTS arm64
129
+ - Ubuntu 22.04 LTS x86_64
130
+ - Ubuntu 22.04 LTS arm64 (NVIDIA Jetson JetPack SDK 6)
131
+ - PyPI からではなくパッケージファイルを利用してください
132
+ - macOS Sequoia 15 arm64
133
+ - macOS Ventura 14 arm64
134
+ - Windows 11 x86_64
135
+ - Windows Server 2022 x86_64
136
+
137
+ ### macOS の対応バージョン
138
+
139
+ 直近の 2 バージョンをサポートします。
140
+
141
+ ### Ubuntu の対応バージョン
142
+
143
+ 直近の LTS 2 バージョンをサポートします。
144
+
145
+ ## 優先実装
146
+
147
+ 優先実装とは Sora のライセンスを契約頂いているお客様向けに Sora Python SDK の実装予定機能を有償にて前倒しで実装することです。
148
+
149
+ **詳細は Discord やメールなどでお気軽にお問い合わせください**
150
+
151
+ - DataChannel 対応
152
+ - [アダワープジャパン株式会社](https://adawarp.com/) 様
153
+ - Intel VPL H.265 対応
154
+ - [アダワープジャパン株式会社](https://adawarp.com/) 様
155
+
156
+ ### 優先実装が可能な機能一覧
157
+
158
+ - Windows 11 arm64
159
+ - Ubuntu 22.04 arm64
160
+ - Ubuntu 22.04 arm64 (NVIDIA Jetson JetPack SDK 6.1)
161
+ - Ubuntu 20.04 arm64 (NVIDIA Jetson JetPack SDK 5)
162
+
163
+ ## サポートについて
164
+
165
+ ### Discord
166
+
167
+ - **サポートしません**
168
+ - アドバイスします
169
+ - フィードバック歓迎します
170
+
171
+ 最新の状況などは Discord で共有しています。質問や相談も Discord でのみ受け付けています。
172
+
173
+ <https://discord.gg/shiguredo>
174
+
175
+ ### バグ報告
176
+
177
+ Discord へお願いします。
178
+
179
+ ## ライセンス
180
+
181
+ Apache License 2.0
182
+
183
+ ```text
184
+ Copyright 2023-2025, tnoho (Original Author)
185
+ Copyright 2023-2025, Wandbox LLC (Original Author)
186
+ Copyright 2023-2025, Shiguredo Inc.
187
+
188
+ Licensed under the Apache License, Version 2.0 (the "License");
189
+ you may not use this file except in compliance with the License.
190
+ You may obtain a copy of the License at
191
+
192
+ http://www.apache.org/licenses/LICENSE-2.0
193
+
194
+ Unless required by applicable law or agreed to in writing, software
195
+ distributed under the License is distributed on an "AS IS" BASIS,
196
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197
+ See the License for the specific language governing permissions and
198
+ limitations under the License.
199
+ ```
200
+
201
+ ## OpenH264
202
+
203
+ <https://www.openh264.org/BINARY_LICENSE.txt>
204
+
205
+ ```text
206
+ "OpenH264 Video Codec provided by Cisco Systems, Inc."
207
+ ```
208
+
209
+ ## NVDIA Video Codec SDK
210
+
211
+ <https://docs.nvidia.com/video-technologies/video-codec-sdk/12.2/license/index.html>
212
+
213
+ ```text
214
+ “This software contains source code provided by NVIDIA Corporation.”
215
+ ```
216
+
217
+ ## H.264 (AVC) と H.265 (HEVC) のライセンスについて
218
+
219
+ **時雨堂が提供する libwebrtc のビルド済みバイナリには H.264 と H.265 のコーデックは含まれていません**
220
+
221
+ ### H.264
222
+
223
+ H.264 対応は [Via LA Licensing](https://www.via-la.com/) (旧 MPEG-LA) に連絡を取り、ロイヤリティの対象にならないことを確認しています。
224
+
225
+ > 時雨堂がエンドユーザーの PC /デバイスに既に存在する AVC / H.264 エンコーダー/デコーダーに依存する製品を提供する場合は、
226
+ > ソフトウェア製品は AVC ライセンスの対象外となり、ロイヤリティの対象にもなりません。
227
+
228
+ ### H.265
229
+
230
+ H.265 対応は以下の二つの団体に連絡を取り、H.265 ハードウェアアクセラレーターのみを利用し、
231
+ H.265 が利用可能なバイナリを配布する事は、ライセンスが不要であることを確認しています。
232
+
233
+ また、H.265 のハードウェアアクセラレーターのみを利用した H.265 対応の SDK を OSS で公開し、
234
+ ビルド済みバイナリを配布する事は、ライセンスが不要であることも確認しています。
235
+
236
+ - [Access Advance](https://accessadvance.com/ja/)
237
+ - [Via LA Licensing](https://www.via-la.com/)
@@ -1,6 +1,5 @@
1
1
  LICENSE
2
2
  MANIFEST.in
3
- NOTICE.md
4
3
  README.md
5
4
  buildbase.py
6
5
  pypath.py
@@ -24,11 +23,11 @@ tests/test_capability.py
24
23
  tests/test_degradation_preference.py
25
24
  tests/test_encoded_transform.py
26
25
  tests/test_intel_vpl.py
27
- tests/test_memory_leak.py
28
26
  tests/test_messaging.py
29
27
  tests/test_messaging_header.py
30
28
  tests/test_nvidia_video_codec_sdk.py
31
29
  tests/test_openh264.py
30
+ tests/test_openh264_simulcast.py
32
31
  tests/test_opus.py
33
32
  tests/test_re_offer_re_answer_sdp.py
34
33
  tests/test_sendonly_recvonly.py