From 89046a47040978286387ce3e14e166b3474818bb Mon Sep 17 00:00:00 2001 From: luxuhui Date: Thu, 3 Oct 2024 22:27:28 +0800 Subject: [PATCH] remove unnecessary files --- agora_realtime_ai_api.egg-info/PKG-INFO | 113 ------------------- agora_realtime_ai_api.egg-info/SOURCES.txt | 16 --- agora_realtime_ai_api.egg-info/requires.txt | 2 - agora_realtime_ai_api.egg-info/top_level.txt | 1 - 4 files changed, 132 deletions(-) delete mode 100644 agora_realtime_ai_api.egg-info/PKG-INFO delete mode 100644 agora_realtime_ai_api.egg-info/SOURCES.txt delete mode 100644 agora_realtime_ai_api.egg-info/requires.txt delete mode 100644 agora_realtime_ai_api.egg-info/top_level.txt diff --git a/agora_realtime_ai_api.egg-info/PKG-INFO b/agora_realtime_ai_api.egg-info/PKG-INFO deleted file mode 100644 index c6c5a07..0000000 --- a/agora_realtime_ai_api.egg-info/PKG-INFO +++ /dev/null @@ -1,113 +0,0 @@ -Metadata-Version: 2.1 -Name: agora-realtime-ai-api -Version: 1.0.5 -Summary: Agora's low latency, high performance Realtime API to work with Voice Conversational AI -Home-page: https://github.com/AgoraIO/agora-realtime-ai-api -Author: agora.io -Author-email: apps_stuff@agora.io -Classifier: Programming Language :: Python :: 3 -Classifier: License :: OSI Approved :: MIT License -Classifier: Operating System :: OS Independent -Requires-Python: >=3.11 -Description-Content-Type: text/markdown -License-File: LICENSE - -## API Reference for `agora-realtime-ai-api` Python Package - -### `RtcOptions` Class - -The `RtcOptions` class represents the configuration options for an RTC (Real-Time Communication) session. - -#### Constructor: -```python -RtcOptions( - *, - channel_name: str = None, - uid: int = 0, - sample_rate: int = 24000, - channels: int = 1, - enable_pcm_dump: bool = False -) -``` -- **channel_name**: Name of the channel. -- **uid**: Unique identifier for the user. -- **sample_rate**: Sample rate for audio (default is 24,000 Hz). -- **channels**: Number of audio channels (default is 1). -- **enable_pcm_dump**: Flag to enable PCM audio dump (default is `False`). - -### `AudioStream` Class - -The `AudioStream` class represents an iterable stream of PCM audio frames. - -#### Constructor: -```python -AudioStream() -``` - -#### Methods: -- `__aiter__() -> AsyncIterator[PcmAudioFrame]`: Async iterator to traverse through audio frames. -- `__anext__() -> PcmAudioFrame`: Returns the next audio frame in the queue. - ---- - - -### `Channel` Class - -The `Channel` class handles the RTC channel and associated operations such as connection, audio subscriptions, and data stream messages. - -#### Constructor: -```python -Channel(rtc: "RtcEngine", options: RtcOptions) -``` - -#### Methods: -- `connect() -> None`: Connects to the channel asynchronously. -- `disconnect() -> None`: Disconnects from the channel asynchronously. -- `get_audio_frames(uid: int) -> AudioStream`: Returns the audio stream for a specific user. -- `push_audio_frame(frame: bytes) -> None`: Sends a PCM audio frame to the channel. -- `clear_sender_audio_buffer() -> None`: Clears the audio buffer used for sending. -- `subscribe_audio(uid: int) -> None`: Subscribes to a user's audio stream. -- `unsubscribe_audio(uid: int) -> None`: Unsubscribes from a user's audio stream. -- `send_stream_message(data: str, msg_id: str) -> None`: Sends a data stream message to the channel. - ---- - -### `ChatMessage` Class - -Represents a chat message to be sent over the RTC channel. - -#### Constructor: -```python -ChatMessage(message: str, msg_id: str) -``` - ---- - -### `Chat` Class - -Handles the queue of chat messages and sends them over the RTC channel. - -#### Constructor: -```python -Chat(channel: Channel) -``` - -#### Methods: -- `send_message(item: ChatMessage) -> None`: Sends a chat message. - ---- - -### `RtcEngine` Class - -The `RtcEngine` class initializes the Agora service and provides methods for managing RTC channels. - -#### Constructor: -```python -RtcEngine(appid: str, appcert: str) -``` - -#### Methods: -- `create_channel(options: RtcOptions) -> Channel`: Creates an RTC channel with the given options. -- `destroy() -> None`: Destroys the RTC engine instance. - ---- diff --git a/agora_realtime_ai_api.egg-info/SOURCES.txt b/agora_realtime_ai_api.egg-info/SOURCES.txt deleted file mode 100644 index 58b4268..0000000 --- a/agora_realtime_ai_api.egg-info/SOURCES.txt +++ /dev/null @@ -1,16 +0,0 @@ -LICENSE -README.md -setup.py -agora_realtime_ai_api/__init__.py -agora_realtime_ai_api/logger.py -agora_realtime_ai_api/rtc.py -agora_realtime_ai_api.egg-info/PKG-INFO -agora_realtime_ai_api.egg-info/SOURCES.txt -agora_realtime_ai_api.egg-info/dependency_links.txt -agora_realtime_ai_api.egg-info/requires.txt -agora_realtime_ai_api.egg-info/top_level.txt -agora_realtime_ai_api/token_builder/AccessToken2.py -agora_realtime_ai_api/token_builder/Packer.py -agora_realtime_ai_api/token_builder/RtcTokenBuilder2.py -agora_realtime_ai_api/token_builder/__init__.py -agora_realtime_ai_api/token_builder/realtimekit_token_builder.py \ No newline at end of file diff --git a/agora_realtime_ai_api.egg-info/requires.txt b/agora_realtime_ai_api.egg-info/requires.txt deleted file mode 100644 index b82c60f..0000000 --- a/agora_realtime_ai_api.egg-info/requires.txt +++ /dev/null @@ -1,2 +0,0 @@ -pyee==12.0.0 -agora-python-server-sdk==2.0.6 diff --git a/agora_realtime_ai_api.egg-info/top_level.txt b/agora_realtime_ai_api.egg-info/top_level.txt deleted file mode 100644 index b68ce37..0000000 --- a/agora_realtime_ai_api.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -agora_realtime_ai_api