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 に対応
  • 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 (H.264 / H.265 / AV1)
  • 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 以降
  • macOS 14 arm64 以降
  • Ubuntu 24.04 x86_64
  • Ubuntu 22.04 x86_64
  • Ubuntu 22.04 arm64 (NVIDIA Jetson JetPack SDK 6)
    • Python 3.10 のみ対応
    • NVIDIA Jetson JetPack SDK 6

Ubuntu LTS への対応

最新の 2 バージョンのみをサポートします。 それよりの過去の Ubuntu に付いては優先実装で対応できますので、ご相談ください。

  • Ubuntu 24.04 LTS
    • Ubuntu 28.04 リリース、3 ヶ月後にサポート終了
  • Ubuntu 22.04 LTS
    • Ubuntu 26.04 リリース、3 ヶ月後にサポート終了

対応機能

優先実装

優先実装とは 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)

サポートについて

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.dev7.tar.gz (6.4 MB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

sora_sdk-2024.3.0.dev7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

sora_sdk-2024.3.0.dev7-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.dev7-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.dev7-cp311-cp311-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.11 Windows x86-64

sora_sdk-2024.3.0.dev7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

sora_sdk-2024.3.0.dev7-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.dev7-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.dev7-cp310-cp310-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.10 Windows x86-64

sora_sdk-2024.3.0.dev7-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.dev7-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.dev7-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.dev7.tar.gz.

File metadata

  • Download URL: sora_sdk-2024.3.0.dev7.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.dev7.tar.gz
Algorithm Hash digest
SHA256 c2c08b1adaff559425975c38993e61d227f6066e9ddc35266c3b0a9a6fec6016
MD5 bf39ca61c3c7d53eb050bc2ad4232df6
BLAKE2b-256 a38de6e06fccaae34e468f2a2913365e75e25ed6ff8b68dc3a4692815aa357de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 94a6375db07a76eda3ffb7fc3a5f9b3647e7f75f2e7633a4b97cb7cb3e21eb6a
MD5 f35a3c54873b6c2d54803f5f6d943ade
BLAKE2b-256 b70c0939db033d65d52bb0aa8659b44fbf646fdd5f26ba1f4f0d5cccbce39228

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20aa8195282c2796d75b9837aba675eb11a1b8d45e28c3cee6ca7a9930179f7f
MD5 70b4a0c0ab7ed056bfa09ec6e426de60
BLAKE2b-256 03336510ac479039fff4d037c1ff0ab39e367413c28dbe69268b370614409031

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fdc894e5091ba75faa255a5ec402c180792c199764e6c8194f1cc57b1341f520
MD5 5b4655506a027a40a3e80824dcb1bf1a
BLAKE2b-256 939544841a58fb700d700191541c4cd394af60b9e24a375b4a5ed6ff2120a8cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 af431aa02ef76eec3cf9c68c737ba4bc03360a1dfa2b0f41479a7b7fc6dfb9bc
MD5 ff01642b1b602585088761c76f686434
BLAKE2b-256 f316be1f0455801ae5a6af44e03d25e1f3fbc93333ccb86058ab0a5ac1d22803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 17b79dbc5556a9329fdc9d0d5f137b60ff7516a86f15ea74fcb678c27f3445fb
MD5 8f3cdd61eb7c8c7546ed1f8b403f4d2c
BLAKE2b-256 14b9dece155bbb9720b556b5dce8981ad416836be4272952f4bda88aa65fa7db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70a7edb88e19dd314d123de35c94b0f2b5530bc96306104e78b79689f4f58961
MD5 c62511076001ddc953d2e797c207f643
BLAKE2b-256 27ad190106231ddc1c8174f05c6a99f99fb04bc49a905e3476e8e359a3a2e75a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 640e81845d75824f30c281cff693b089f43f5fb5803376f873586b8507fedf51
MD5 a6b9643375428167f7f49b26f2324e80
BLAKE2b-256 af8c8e4e2b7deea8e1754d936f7ed37b171f3b8f52383328412838cb2f9adb0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2fd8e8e9c97cf0bc2b1418c3e499c3abe51455a9e95a48347bfedac05a85d6ec
MD5 596dbd7f40eb7431b17b62d8616ab52f
BLAKE2b-256 36aee5ccff51893b1bab835b640ddd56b50296e9ebc157ca2311f9b81ba9b209

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2227427d2397b4252fdbd919e60c39a415ee187ab5c63b16d46f1b27bcb09364
MD5 ca422bbb3c82d6d03e954b4e7cbb742d
BLAKE2b-256 8d30e9deb5cffc3a9244aa11adf257583156a0edfc5e92fa27aea77c0f38334e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5fc5b28961a8dd5c9e1afdc27026ddb46c86c61549c3893a91aa76c060791ed5
MD5 ff6417e7d62810fbab096760ef285910
BLAKE2b-256 b8ca824f7174c0385779c05d5c0055f9679fb2760612e89eb8ecabf0dab76e20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f6a9cb2271952da74b3c9507d3bb1c39c5446784059841ca4c774841443fea2d
MD5 ecf772d907d690cc9274d49f9b703a62
BLAKE2b-256 3668b02bb5c6df70fbb2a64b562ef02a25121c8777285d9f1a15845e8aad1a73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sora_sdk-2024.3.0.dev7-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6e0f03197fb03a24af2e431d9894566fbf3def54c9dbea282f067ce7a2084a20
MD5 f8402d48a6c5f5a002ae157dae840d76
BLAKE2b-256 879e34bc67a79908d5d9fac843aa9c2b03b6bf3b63a79d9c8f63dbf388013745

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