Skip to main content

WebRTC SFU Sora Python SDK

Project description

Sora Python SDK

PyPI image License Actions status

Sora Python SDK は WebRTC SFU Sora の Python クライアントアプリケーションを開発するためのライブラリです。Sora C++ SDK をベースにしています。

About Shiguredo's open source software

We will not respond to PRs or issues that have not been discussed on Discord. Also, Discord is only available in Japanese.

Please read https://github.com/shiguredo/oss/blob/master/README.en.md before use.

時雨堂のオープンソースソフトウェアについて

利用前に https://github.com/shiguredo/oss をお読みください。

Sora Python SDK について

様々なプラットフォームに対応しすぐに使い始められる WebRTC SFU Sora 向けの Python SDK です。

特徴

  • Sora C++ SDK ベース
  • WebRTC 部分の機能は libwebrtc を採用
  • Windows / macOS / Linux (Ubuntu) プラットフォームに対応
  • NVIDIA Jetson JetPack SDK に対応
  • Intel / Apple / NVIDIA のハードウェアデコーダー/エンコーダーに対応
    • Intel VPL (AV1 / H.264 / H.265)
    • Apple Video Toolbox (H.264 / H.265)
    • NVIDIA Video Codec SDK (VP9 / H.264 / H.265)
    • NVIDIA Jetson JetPack SDK (AV1 / H.264 / H.265)
  • OpenH264 を利用した H.264 のソフトウェアエンコーダー/デコーダーに対応
  • 物体検出などの入力に Sora 経由で受信した映像が利用できる
  • 音声認識などの入力に Sora 経由で受信した音声を利用できる
  • pip install sora_sdk でインストール可能

利用イメージ

  • データチャンネルを利用して Python において映像、音声を解析した結果を Sora 経由で配信する
  • Text to Speech の音声を Sora 経由で配信する
  • 映像入力に対して Pillow などで加工した映像を Sora を経由で配信する
  • A チャンネルの参加者からの映像と音声を B チャンネルに対して加工した上で Sora 経由で配信する

ドキュメント

Sora Python SDK

サンプル集

examples を参照してください。

sora_sdk パッケージの追加

pip

pip install sora_sdk

Rye

Rye

rye add sora_sdk
rye sync

NVIDIA Jetson 向けパッケージ

PyPI 経由ではインストールできません。 パッケージバイナリを配布しておりますので、そちらをご利用ください。

システム条件

  • WebRTC SFU Sora 2023.2.0 以降
  • Python 3.10 以上

対応プラットフォーム

  • Windows 11 x86_64
  • Windows Server 2022 x86_64
  • macOS Sonoma 13 arm64
  • macOS Ventura 14 arm64
  • Ubuntu 24.04 LTS x86_64
  • Ubuntu 22.04 LTS x86_64
  • Ubuntu 22.04 LTS arm64 (NVIDIA Jetson JetPack SDK 6)
    • PyPI からではなくパッケージファイルを利用してください

対応機能

優先実装

優先実装とは Sora のライセンスを契約頂いているお客様向けに Sora Python SDK の実装予定機能を有償にて前倒しで実装することです。

詳細は Discord やメールなどでお気軽にお問い合わせください

優先実装が可能な機能一覧

詳細は Discord やメールなどでお気軽にお問い合わせください

  • Windows 11 arm64
  • Ubuntu 24.04 arm64
  • Ubuntu 22.04 arm64
  • Ubuntu 20.04 arm64 (NVIDIA Jetson JetPack SDK 5)
  • AMD Video Core Next (VCN) 対応
    • VP9 / AV1 / H.264 / H.265
  • Python 3.9 以前への対応

サポートについて

Discord

  • サポートしません
  • アドバイスします
  • フィードバック歓迎します

最新の状況などは Discord で共有しています。質問や相談も Discord でのみ受け付けています。

https://discord.gg/shiguredo

バグ報告

Discord へお願いします。

ライセンス

Apache License 2.0

Copyright 2023-2024, tnoho (Original Author)
Copyright 2023-2024, Wandbox LLC (Original Author)
Copyright 2023-2024, Shiguredo Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

このリポジトリに含まれる shiguremaru.png ファイルのライセンスは CC BY-NC-ND 4.0 です。

OpenH264

https://www.openh264.org/BINARY_LICENSE.txt

"OpenH264 Video Codec provided by Cisco Systems, Inc."

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sora_sdk-2024.3.0.dev10.tar.gz (6.4 MB view details)

Uploaded Source

Built Distributions

sora_sdk-2024.3.0.dev10-cp312-cp312-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.12 Windows x86-64

sora_sdk-2024.3.0.dev10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

sora_sdk-2024.3.0.dev10-cp312-cp312-macosx_14_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

sora_sdk-2024.3.0.dev10-cp312-cp312-macosx_13_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.12 macOS 13.0+ ARM64

sora_sdk-2024.3.0.dev10-cp311-cp311-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.11 Windows x86-64

sora_sdk-2024.3.0.dev10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

sora_sdk-2024.3.0.dev10-cp311-cp311-macosx_14_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

sora_sdk-2024.3.0.dev10-cp311-cp311-macosx_13_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

sora_sdk-2024.3.0.dev10-cp310-cp310-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.10 Windows x86-64

sora_sdk-2024.3.0.dev10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

sora_sdk-2024.3.0.dev10-cp310-cp310-macosx_14_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

sora_sdk-2024.3.0.dev10-cp310-cp310-macosx_13_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

File details

Details for the file sora_sdk-2024.3.0.dev10.tar.gz.

File metadata

  • Download URL: sora_sdk-2024.3.0.dev10.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for sora_sdk-2024.3.0.dev10.tar.gz
Algorithm Hash digest
SHA256 be6943863018b440dfe6ff16f824cb99ece2637324668479942c2571bd0451b8
MD5 93cf435a0ec1f2cc6bb49150425d9112
BLAKE2b-256 4e2940eead03b42f407401eaf54997025bfc055eafa435392d04632106c08f3a

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9d7570a48fddbca2fa92ce42a04706b1577a2ab8bbc8d26b988a67da60e5e8fe
MD5 868adc6d5a756f4cf021eb03785230a3
BLAKE2b-256 839b6c68adaf22c8451756b7b57920942108de82044d793a9d68e5cec42f1627

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79db4c80edb4b8c6d0c943067ef5c530b9c454e7f30a6a6d834b9a8fe4a1a324
MD5 8c1ae6aa9f991261cfabe26b7901f396
BLAKE2b-256 17ddf30380f424f6c66b1202579ed8f74d2159c438712a950aa5d15cba86ac34

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c3f48069384fb2bf8f59924a1660c28e42981d204e996e2345ca26fa570baef7
MD5 52eb1f22f4ceb08c17571875b708988e
BLAKE2b-256 2d2378e7825522b42f369c55fe58dcd3a50c0ee678dc105ad212df2c0ff0ce68

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2b35676b4e6aed80055f3246c2350aa55c1e7e46f7a949cbe320e5954693a81e
MD5 311fb5e2e3c61401553c67eb9abbe740
BLAKE2b-256 12683a35484fd32c03c29cb663b815d96d8dcc08d32b91142ab6df0cec415bc1

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b66c8f861915f9e9f4f1b91d1f1cd6509c2ab8e87054b17ffc76be526bbc6a36
MD5 390468f6036cb882f2e75ab203206968
BLAKE2b-256 14923b023cbf180f4d15992e85eac675eead89932b5fc35508ba8df928453481

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72dfe5d0c021a927f793190c3aa8ff07e04983df5d7ed599fd20d6c069df083e
MD5 e64856fd312628b0d4f779abe607f9f0
BLAKE2b-256 01a6dfe56761f8214cf3bb6a579b32365a197d29faa8d71e57f3effbe1c0d5e7

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0ba406b057c06b209ca184a00b29a2e8bd8115add02a4344ab17f320655296ce
MD5 bdfea3579e9d7b8a93e03f05b91c64ec
BLAKE2b-256 0211bafcb1294b5db2ccbebeb3ee985c74731e056405af88a54054123e167cd9

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5d538a7753516e6bfaa14ad5cdd0d92967f49d5b900c57658131e942462a5b53
MD5 8af23b396045e8c7e263cbd6b00e5b5b
BLAKE2b-256 ed43d9fb027514cb4321e7da3fb77a321e4438b055ac96a283b40866e333c2a1

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6da90f40a4735cbd79fbea686cc8058133587b8984403ff08891f2626f21f1a7
MD5 9bf45a386bbef58ffd27d379931e75ba
BLAKE2b-256 227036e7322bf3d93920b13f4fdf12b80e405e06847025f8d2fb98b700e0b1e6

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db115c17c32b476f754329d6a185f02948ab4fdc90acfbbf29fcf2ff17f14750
MD5 33ede765ed72d4bfe4fa4a60f8111938
BLAKE2b-256 6f83bd4c015418ea4018dcd67338a0ac2199cce4e005f8ab10d5eb068514d884

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 47cc662666d23859d9774e5c8c2479e587e16812d91e6d0da9365712c5001ac1
MD5 22535fb574f33c9890467d90bd836cf2
BLAKE2b-256 44e9901b793a8b3d166ff1786bd622612470d334966e043e5ddfb2c69ad33678

See more details on using hashes here.

File details

Details for the file sora_sdk-2024.3.0.dev10-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev10-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c3d41a286e2a2a5390561a05dbbbee14c11d8adc87c95f03bd493aa0da009728
MD5 327a1a4911fabde482659ebd7d09e830
BLAKE2b-256 6d53968f6449cfd61f35b41d92af645e559e0cb320e7cf191684790c8d955332

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page