You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-15Lines changed: 20 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Before running the demo, ensure you have the following installed and configured:
22
22
23
23
- On macOS:
24
24
```bash
25
-
brew install ffmpeg
25
+
brew install ffmpeg portaudio
26
26
```
27
27
- On Ubuntu (verified on versions 22.04 & 24.04):
28
28
```bash
@@ -40,8 +40,9 @@ Before running the demo, ensure you have the following installed and configured:
40
40
41
41
## Organization of this Repo
42
42
43
-
- `realtimeAgent/realtime` contains the Python implementation for using Realtime API.
44
-
- `realtimeAgent/agent.py` contains a demo agent that uses `realtime` and [agora-realtime-api-ai](https://pypi.org/project/agora-realtime-ai-api/) to build a simple app.
43
+
- `realtimeAgent/realtime` contains the Python implementation for interacting with the Realtime API.
44
+
- `realtimeAgent/agent.py` includes a demo agent that leverages the `realtime` module and the [agora-realtime-ai-api](https://pypi.org/project/agora-realtime-ai-api/) package to build a simple application.
45
+
- `realtimeAgent/main.py` provides a web server that allows clients to start and stop AI-driven agents.
45
46
46
47
## Run the Demo
47
48
@@ -65,27 +66,29 @@ Before running the demo, ensure you have the following installed and configured:
65
66
```
66
67
67
68
### Start HTTP Server
69
+
68
70
1. Run the http server to start demo agent via restful service
69
71
```bash
70
72
python -m realtime_agent.main server
71
73
```
72
-
The server provides a simple layer for managing agent processes.
74
+
The server provides a simple layer for managing agent processes.
73
75
74
76
### API Resources
75
77
76
-
- [POST /start](#post-start)
77
-
- [POST /stop](#post-stop)
78
-
78
+
- [POST /start](#post-start)
79
+
- [POST /stop](#post-stop)
79
80
80
81
### POST /start
82
+
81
83
This api starts an agent with given graph and override properties. The started agent will join into the specified channel, and subscribe to the uid which your browser/device's rtc use to join.
82
84
83
-
| Param | Description |
84
-
| -------- | ------- |
85
-
| channel_name | channel name, it needs to be the same with the one your browser/device joins, agent needs to stay with your browser/device in the same channel to communicate |
| channel_name | (string) channel name, it needs to be the same with the one your browser/device joins, agent needs to stay with your browser/device in the same channel to communicate |
0 commit comments