- This is a Python SDK wrapper for the Agora RTC SDK.
- It supports Linux and Mac platforms.
- The examples are provided as very simple demonstrations and are not recommended for use in production environments.
- A process can only have one instance.
- An instance can have multiple connections.
- In all observers or callbacks, you must not call the SDK's own APIs, nor perform CPU-intensive tasks in the callbacks; data copying is allowed.
-
Supported Linux versions:
- Ubuntu 18.04 LTS and above
- CentOS 7.0 and above
-
Supported Mac versions:
- MacOS 13 and above
-
Python version:
- Python 3.10 and above
pip install agora_python_server_sdk
- Download and unzip test_data.zip to the Agora-Python-Server-SDK directory.
python agora_rtc/examples/example_audio_pcm_send.py --appId=xxx --channelId=xxx --userId=xxx --audioFile=./test_data/demo.pcm --sampleRate=16000 --numOfChannels=1
- Added a new sample: example_jpeg_send.py which can push JPEG files or JPEG streams to a channel.
- Performance overhead, as noted in the example comments, can be summarized as follows:
- For a 1920x1080 JPEG file, the process from reading the file to converting it to an RGBA bytearray - takes approximately 11 milliseconds.
- Updates
user_id
in theAudioVolumeInfoInner and AudioVolumeInfo
structure tostr
type. - Fixes the bug in
_on_audio_volume_indication
callback, where it could only handle one callback to speaker_number - Corrects the parameter type in
IRTCLocalUserObserver::on_audio_volume_indication
callback tolist
type.
Add audio VAD interface of version 2 and corresponding example.
Fixed some bug.