sora-sdk 2025.2.0.dev1__cp312-cp312-win_amd64.whl → 2025.2.0.dev3__cp312-cp312-win_amd64.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.

@@ -0,0 +1,237 @@
1
+ Metadata-Version: 2.4
2
+ Name: sora_sdk
3
+ Version: 2025.2.0.dev3
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/)
@@ -0,0 +1,9 @@
1
+ sora_sdk-2025.2.0.dev3.data/purelib/sora_sdk/__init__.py,sha256=-LXQltF569Y2jENojvTCjOIl0b495flbWt5T9_-ITgU,1218
2
+ sora_sdk-2025.2.0.dev3.data/purelib/sora_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ sora_sdk-2025.2.0.dev3.data/purelib/sora_sdk/sora_sdk_ext.cp312-win_amd64.pyd,sha256=HJsgd2Dcr2fUAt1wRbm0Vjm_ulplEu474zFze7nN5FQ,19516416
4
+ sora_sdk-2025.2.0.dev3.data/purelib/sora_sdk/sora_sdk_ext.pyi,sha256=1suf84T-ZZwGYh4PmtFFpg2lL3f5GyGNzb9wQ7my7rI,15384
5
+ sora_sdk-2025.2.0.dev3.dist-info/licenses/LICENSE,sha256=6z17VIVGasvYHytJb1latjfSeS4mggayfZnnk722dUk,10351
6
+ sora_sdk-2025.2.0.dev3.dist-info/METADATA,sha256=A4GwCT3F-FubkxBu00xdLgE0k6LnsothYcayQwRSAVI,9851
7
+ sora_sdk-2025.2.0.dev3.dist-info/WHEEL,sha256=6TCqs2-PEvxKuqw0d1ghd6tAo1nX2NnQFqKrzb5XC4g,101
8
+ sora_sdk-2025.2.0.dev3.dist-info/top_level.txt,sha256=edTg20cFFAjWfRrB0APD_SXho5Qq24PwLESbyPoCVko,9
9
+ sora_sdk-2025.2.0.dev3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.1.0)
2
+ Generator: setuptools (80.0.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-win_amd64
5
5
 
@@ -1,415 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: sora_sdk
3
- Version: 2025.2.0.dev1
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:
8
- Apache License
9
- Version 2.0, January 2004
10
- http://www.apache.org/licenses/
11
-
12
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
13
-
14
- 1. Definitions.
15
-
16
- "License" shall mean the terms and conditions for use, reproduction,
17
- and distribution as defined by Sections 1 through 9 of this document.
18
-
19
- "Licensor" shall mean the copyright owner or entity authorized by
20
- the copyright owner that is granting the License.
21
-
22
- "Legal Entity" shall mean the union of the acting entity and all
23
- other entities that control, are controlled by, or are under common
24
- control with that entity. For the purposes of this definition,
25
- "control" means (i) the power, direct or indirect, to cause the
26
- direction or management of such entity, whether by contract or
27
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
28
- outstanding shares, or (iii) beneficial ownership of such entity.
29
-
30
- "You" (or "Your") shall mean an individual or Legal Entity
31
- exercising permissions granted by this License.
32
-
33
- "Source" form shall mean the preferred form for making modifications,
34
- including but not limited to software source code, documentation
35
- source, and configuration files.
36
-
37
- "Object" form shall mean any form resulting from mechanical
38
- transformation or translation of a Source form, including but
39
- not limited to compiled object code, generated documentation,
40
- and conversions to other media types.
41
-
42
- "Work" shall mean the work of authorship, whether in Source or
43
- Object form, made available under the License, as indicated by a
44
- copyright notice that is included in or attached to the work
45
- (an example is provided in the Appendix below).
46
-
47
- "Derivative Works" shall mean any work, whether in Source or Object
48
- form, that is based on (or derived from) the Work and for which the
49
- editorial revisions, annotations, elaborations, or other modifications
50
- represent, as a whole, an original work of authorship. For the purposes
51
- of this License, Derivative Works shall not include works that remain
52
- separable from, or merely link (or bind by name) to the interfaces of,
53
- the Work and Derivative Works thereof.
54
-
55
- "Contribution" shall mean any work of authorship, including
56
- the original version of the Work and any modifications or additions
57
- to that Work or Derivative Works thereof, that is intentionally
58
- submitted to Licensor for inclusion in the Work by the copyright owner
59
- or by an individual or Legal Entity authorized to submit on behalf of
60
- the copyright owner. For the purposes of this definition, "submitted"
61
- means any form of electronic, verbal, or written communication sent
62
- to the Licensor or its representatives, including but not limited to
63
- communication on electronic mailing lists, source code control systems,
64
- and issue tracking systems that are managed by, or on behalf of, the
65
- Licensor for the purpose of discussing and improving the Work, but
66
- excluding communication that is conspicuously marked or otherwise
67
- designated in writing by the copyright owner as "Not a Contribution."
68
-
69
- "Contributor" shall mean Licensor and any individual or Legal Entity
70
- on behalf of whom a Contribution has been received by Licensor and
71
- subsequently incorporated within the Work.
72
-
73
- 2. Grant of Copyright License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- copyright license to reproduce, prepare Derivative Works of,
77
- publicly display, publicly perform, sublicense, and distribute the
78
- Work and such Derivative Works in Source or Object form.
79
-
80
- 3. Grant of Patent License. Subject to the terms and conditions of
81
- this License, each Contributor hereby grants to You a perpetual,
82
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
83
- (except as stated in this section) patent license to make, have made,
84
- use, offer to sell, sell, import, and otherwise transfer the Work,
85
- where such license applies only to those patent claims licensable
86
- by such Contributor that are necessarily infringed by their
87
- Contribution(s) alone or by combination of their Contribution(s)
88
- with the Work to which such Contribution(s) was submitted. If You
89
- institute patent litigation against any entity (including a
90
- cross-claim or counterclaim in a lawsuit) alleging that the Work
91
- or a Contribution incorporated within the Work constitutes direct
92
- or contributory patent infringement, then any patent licenses
93
- granted to You under this License for that Work shall terminate
94
- as of the date such litigation is filed.
95
-
96
- 4. Redistribution. You may reproduce and distribute copies of the
97
- Work or Derivative Works thereof in any medium, with or without
98
- modifications, and in Source or Object form, provided that You
99
- meet the following conditions:
100
-
101
- (a) You must give any other recipients of the Work or
102
- Derivative Works a copy of this License; and
103
-
104
- (b) You must cause any modified files to carry prominent notices
105
- stating that You changed the files; and
106
-
107
- (c) You must retain, in the Source form of any Derivative Works
108
- that You distribute, all copyright, patent, trademark, and
109
- attribution notices from the Source form of the Work,
110
- excluding those notices that do not pertain to any part of
111
- the Derivative Works; and
112
-
113
- (d) If the Work includes a "NOTICE" text file as part of its
114
- distribution, then any Derivative Works that You distribute must
115
- include a readable copy of the attribution notices contained
116
- within such NOTICE file, excluding those notices that do not
117
- pertain to any part of the Derivative Works, in at least one
118
- of the following places: within a NOTICE text file distributed
119
- as part of the Derivative Works; within the Source form or
120
- documentation, if provided along with the Derivative Works; or,
121
- within a display generated by the Derivative Works, if and
122
- wherever such third-party notices normally appear. The contents
123
- of the NOTICE file are for informational purposes only and
124
- do not modify the License. You may add Your own attribution
125
- notices within Derivative Works that You distribute, alongside
126
- or as an addendum to the NOTICE text from the Work, provided
127
- that such additional attribution notices cannot be construed
128
- as modifying the License.
129
-
130
- You may add Your own copyright statement to Your modifications and
131
- may provide additional or different license terms and conditions
132
- for use, reproduction, or distribution of Your modifications, or
133
- for any such Derivative Works as a whole, provided Your use,
134
- reproduction, and distribution of the Work otherwise complies with
135
- the conditions stated in this License.
136
-
137
- 5. Submission of Contributions. Unless You explicitly state otherwise,
138
- any Contribution intentionally submitted for inclusion in the Work
139
- by You to the Licensor shall be under the terms and conditions of
140
- this License, without any additional terms or conditions.
141
- Notwithstanding the above, nothing herein shall supersede or modify
142
- the terms of any separate license agreement you may have executed
143
- with Licensor regarding such Contributions.
144
-
145
- 6. Trademarks. This License does not grant permission to use the trade
146
- names, trademarks, service marks, or product names of the Licensor,
147
- except as required for reasonable and customary use in describing the
148
- origin of the Work and reproducing the content of the NOTICE file.
149
-
150
- 7. Disclaimer of Warranty. Unless required by applicable law or
151
- agreed to in writing, Licensor provides the Work (and each
152
- Contributor provides its Contributions) on an "AS IS" BASIS,
153
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
154
- implied, including, without limitation, any warranties or conditions
155
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
156
- PARTICULAR PURPOSE. You are solely responsible for determining the
157
- appropriateness of using or redistributing the Work and assume any
158
- risks associated with Your exercise of permissions under this License.
159
-
160
- 8. Limitation of Liability. In no event and under no legal theory,
161
- whether in tort (including negligence), contract, or otherwise,
162
- unless required by applicable law (such as deliberate and grossly
163
- negligent acts) or agreed to in writing, shall any Contributor be
164
- liable to You for damages, including any direct, indirect, special,
165
- incidental, or consequential damages of any character arising as a
166
- result of this License or out of the use or inability to use the
167
- Work (including but not limited to damages for loss of goodwill,
168
- work stoppage, computer failure or malfunction, or any and all
169
- other commercial damages or losses), even if such Contributor
170
- has been advised of the possibility of such damages.
171
-
172
- 9. Accepting Warranty or Additional Liability. While redistributing
173
- the Work or Derivative Works thereof, You may choose to offer,
174
- and charge a fee for, acceptance of support, warranty, indemnity,
175
- or other liability obligations and/or rights consistent with this
176
- License. However, in accepting such obligations, You may act only
177
- on Your own behalf and on Your sole responsibility, not on behalf
178
- of any other Contributor, and only if You agree to indemnify,
179
- defend, and hold each Contributor harmless for any liability
180
- incurred by, or claims asserted against, such Contributor by reason
181
- of your accepting any such warranty or additional liability.
182
-
183
- END OF TERMS AND CONDITIONS
184
-
185
- Project-URL: Source, https://github.com/shiguredo/sora-python-sdk
186
- Project-URL: Documentation, https://sora-python-sdk.shiguredo.jp
187
- Project-URL: Discord, https://discord.gg/shiguredo
188
- Classifier: License :: OSI Approved :: Apache Software License
189
- Classifier: Programming Language :: Python :: 3 :: Only
190
- Classifier: Programming Language :: Python :: 3.11
191
- Classifier: Programming Language :: Python :: 3.12
192
- Classifier: Programming Language :: Python :: 3.13
193
- Requires-Python: >=3.11
194
- Description-Content-Type: text/markdown
195
- License-File: LICENSE
196
- License-File: NOTICE.md
197
- Dynamic: home-page
198
-
199
- # Sora Python SDK
200
-
201
- [![PyPI](https://img.shields.io/pypi/v/sora_sdk)](https://pypi.org/project/sora-sdk/)
202
- [![image](https://img.shields.io/pypi/pyversions/sora_sdk.svg)](https://pypi.python.org/pypi/sora_sdk)
203
- [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
204
- [![Actions status](https://github.com/shiguredo/sora-python-sdk/workflows/build/badge.svg)](https://github.com/shiguredo/sora-python-sdk/actions)
205
-
206
- Sora Python SDK は [WebRTC SFU Sora](https://sora.shiguredo.jp/) の Python クライアントアプリケーションを開発するためのライブラリです。[Sora C++ SDK](https://github.com/shiguredo/sora-cpp-sdk) をベースにしています。
207
-
208
- ## About Shiguredo's open source software
209
-
210
- We will not respond to PRs or issues that have not been discussed on Discord. Also, Discord is only available in Japanese.
211
-
212
- Please read <https://github.com/shiguredo/oss/blob/master/README.en.md> before use.
213
-
214
- ## 時雨堂のオープンソースソフトウェアについて
215
-
216
- 利用前に <https://github.com/shiguredo/oss> をお読みください。
217
-
218
- ## Sora Python SDK について
219
-
220
- 様々なプラットフォームに対応しすぐに使い始められる WebRTC SFU Sora 向けの Python SDK です。
221
-
222
- 音声や映像デバイスの処理を SDK から独立させているため、様々なライブラリを利用する事ができます。
223
-
224
- ## 特徴
225
-
226
- - [Sora C++ SDK](https://github.com/shiguredo/sora-cpp-sdk) ベース
227
- - WebRTC 部分の機能は [libwebrtc](https://webrtc.googlesource.com/src/) を採用
228
- - Windows / macOS / Linux (Ubuntu) プラットフォームに対応
229
- - [WebRTC 統計情報](https://www.w3.org/TR/webrtc-stats/) の取得が可能
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 が指定できる
233
- - Intel / Apple / NVIDIA のハードウェアデコーダー/エンコーダーに対応
234
- - Apple Video Toolbox (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 はデコードのみ利用できる
245
- - NVIDIA Jetson JetPack SDK (AV1 / H.264 / H.265)
246
- - [各プラットフォームで利用可能な HWA への対応](https://github.com/shiguredo/sora-cpp-sdk?tab=readme-ov-file#%E7%89%B9%E5%BE%B4)
247
- - [OpenH264](https://github.com/cisco/openh264) を利用した H.264 のソフトウェアエンコーダー/デコーダーに対応
248
- - Ubuntu x86_64 / Ubuntu arm64 / Windows x86_64 / macOS arm64 で利用できる
249
- - 音声デバイス処理に [sounddevice](https://pypi.org/project/sounddevice/) などが利用できる
250
- - 映像デバイス処理に [opencv-python](https://pypi.org/project/opencv-python/) などが利用できる
251
- - 音声認識などの入力に受信した音声を利用できる
252
- - 物体検出などの入力に受信した映像を利用できる
253
- - `uv add sora_sdk` や `pip install sora_sdk` でインストール可能
254
- - [NVIDIA Jetson JetPack SDK](https://developer.nvidia.com/embedded/jetpack) に対応
255
-
256
- ## 利用イメージ
257
-
258
- - データチャンネルを利用して Python において映像、音声を解析した結果を Sora 経由で配信する
259
- - Text to Speech の音声を Sora 経由で配信する
260
- - 映像入力に対して Pillow などで加工した映像を Sora を経由で配信する
261
- - A チャンネルの参加者からの映像と音声を B チャンネルに対して加工した上で Sora 経由で配信する
262
-
263
- ## ドキュメント
264
-
265
- [Sora Python SDK](https://sora-python-sdk.shiguredo.jp/)
266
-
267
- ## サンプル集
268
-
269
- [shiguredo/sora-python-sdk-examples](https://github.com/shiguredo/sora-python-sdk-examples)
270
-
271
- ## sora_sdk パッケージの追加
272
-
273
- ### uv
274
-
275
- [uv](https://docs.astral.sh/uv/)
276
-
277
- ```bash
278
- uv add sora_sdk
279
- ```
280
-
281
- ### pip
282
-
283
- ```bash
284
- pip install sora_sdk
285
- ```
286
-
287
- ### NVIDIA Jetson 向けパッケージ
288
-
289
- PyPI 経由ではインストールできません。
290
- パッケージバイナリを配布しておりますので、そちらをご利用ください。
291
-
292
- <https://github.com/shiguredo/sora-python-sdk/releases/tag/2024.3.0-jetson-jetpack-6.0.0.0>
293
-
294
- ## システム条件
295
-
296
- - WebRTC SFU Sora 2024.1.0 以降
297
- - Python 3.11 以上
298
-
299
- ## Python サポートポリシー
300
-
301
- 直近の 3 バージョンの Python をサポートします。
302
-
303
- ## 対応プラットフォーム
304
-
305
- - Ubuntu 24.04 LTS x86_64
306
- - Ubuntu 24.04 LTS arm64
307
- - Ubuntu 22.04 LTS x86_64
308
- - Ubuntu 22.04 LTS arm64 (NVIDIA Jetson JetPack SDK 6)
309
- - PyPI からではなくパッケージファイルを利用してください
310
- - macOS Sequoia 15 arm64
311
- - macOS Ventura 14 arm64
312
- - Windows 11 x86_64
313
- - Windows Server 2022 x86_64
314
-
315
- ### macOS の対応バージョン
316
-
317
- 直近の 2 バージョンをサポートします。
318
-
319
- ### Ubuntu の対応バージョン
320
-
321
- 直近の LTS 2 バージョンをサポートします。
322
-
323
- ## 優先実装
324
-
325
- 優先実装とは Sora のライセンスを契約頂いているお客様向けに Sora Python SDK の実装予定機能を有償にて前倒しで実装することです。
326
-
327
- **詳細は Discord やメールなどでお気軽にお問い合わせください**
328
-
329
- - DataChannel 対応
330
- - [アダワープジャパン株式会社](https://adawarp.com/) 様
331
- - Intel VPL H.265 対応
332
- - [アダワープジャパン株式会社](https://adawarp.com/) 様
333
-
334
- ### 優先実装が可能な機能一覧
335
-
336
- - Windows 11 arm64
337
- - Ubuntu 22.04 arm64
338
- - Ubuntu 22.04 arm64 (NVIDIA Jetson JetPack SDK 6.1)
339
- - Ubuntu 20.04 arm64 (NVIDIA Jetson JetPack SDK 5)
340
-
341
- ## サポートについて
342
-
343
- ### Discord
344
-
345
- - **サポートしません**
346
- - アドバイスします
347
- - フィードバック歓迎します
348
-
349
- 最新の状況などは Discord で共有しています。質問や相談も Discord でのみ受け付けています。
350
-
351
- <https://discord.gg/shiguredo>
352
-
353
- ### バグ報告
354
-
355
- Discord へお願いします。
356
-
357
- ## ライセンス
358
-
359
- Apache License 2.0
360
-
361
- ```text
362
- Copyright 2023-2025, tnoho (Original Author)
363
- Copyright 2023-2025, Wandbox LLC (Original Author)
364
- Copyright 2023-2025, Shiguredo Inc.
365
-
366
- Licensed under the Apache License, Version 2.0 (the "License");
367
- you may not use this file except in compliance with the License.
368
- You may obtain a copy of the License at
369
-
370
- http://www.apache.org/licenses/LICENSE-2.0
371
-
372
- Unless required by applicable law or agreed to in writing, software
373
- distributed under the License is distributed on an "AS IS" BASIS,
374
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
375
- See the License for the specific language governing permissions and
376
- limitations under the License.
377
- ```
378
-
379
- ## OpenH264
380
-
381
- <https://www.openh264.org/BINARY_LICENSE.txt>
382
-
383
- ```text
384
- "OpenH264 Video Codec provided by Cisco Systems, Inc."
385
- ```
386
-
387
- ## NVDIA Video Codec SDK
388
-
389
- <https://docs.nvidia.com/video-technologies/video-codec-sdk/12.0/index.html>
390
-
391
- ```text
392
- “This software contains source code provided by NVIDIA Corporation.”
393
- ```
394
-
395
- ## H.264 (AVC) と H.265 (HEVC) のライセンスについて
396
-
397
- **時雨堂が提供する libwebrtc のビルド済みバイナリには H.264 と H.265 のコーデックは含まれていません**
398
-
399
- ### H.264
400
-
401
- H.264 対応は [Via LA Licensing](https://www.via-la.com/) (旧 MPEG-LA) に連絡を取り、ロイヤリティの対象にならないことを確認しています。
402
-
403
- > 時雨堂がエンドユーザーの PC /デバイスに既に存在する AVC / H.264 エンコーダー/デコーダーに依存する製品を提供する場合は、
404
- > ソフトウェア製品は AVC ライセンスの対象外となり、ロイヤリティの対象にもなりません。
405
-
406
- ### H.265
407
-
408
- H.265 対応は以下の二つの団体に連絡を取り、H.265 ハードウェアアクセラレーターのみを利用し、
409
- H.265 が利用可能なバイナリを配布する事は、ライセンスが不要であることを確認しています。
410
-
411
- また、H.265 のハードウェアアクセラレーターのみを利用した H.265 対応の SDK を OSS で公開し、
412
- ビルド済みバイナリを配布する事は、ライセンスが不要であることも確認しています。
413
-
414
- - [Access Advance](https://accessadvance.com/ja/)
415
- - [Via LA Licensing](https://www.via-la.com/)