blob: d5e740014f57d675a9ce2c5b9264fd570aa32989 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name0=livekit-agents
_name1=livekit-plugins
_plugins=(anam anthropic assemblyai avatartalk aws azure baseten bey bithuman cartesia clova deepgram elevenlabs fal fireworksai fishaudio gladia google gradium groq hedra hume inworld langchain lmnt minimal minimax mistralai neuphonic nltk nvidia openai resemble rime rtzr sarvam silero simli smallestai soniox speechify speechmatics spitch tavus turn-detector ultravox upliftai)
pkgbase=python-$_name0
pkgname=(python-$_name0 ${_plugins[@]/#/python-$_name1-})
pkgver=1.3.6
pkgrel=1
_plugins_pkgdesc=('Agent Framework plugin for anam.'
'Agent Framework plugin for services from Anthropic.'
'Agent Framework plugin for AssemblyAI.'
'Agent Framework plugin for AvatarTalk.'
'LiveKit Agents Plugin for services from AWS.'
'Agent Framework plugin for services from Azure.'
'Agent Framework plugin for Baseten.'
'Agent Framework plugin for services from Beyond Presence.'
'Agent Framework plugin for services from BitHuman Avatar Rendering.'
'LiveKit Agents Plugin for Cartesia.'
'LiveKit Agents Plugin for LINE Clova STT.'
"Agent Framework plugin for services using Deepgram's API."
"Agent Framework plugin for voice synthesis with ElevenLabs' API."
'fal plugin template for LiveKit Agents.'
'LiveKit Agents Plugin for Fireworks AI.'
"Agent Framework plugin for voice synthesis with Fish Audio's API."
"Agent Framework plugin for services using Gladia's API."
'Agent Framework plugin for services from Google Cloud.'
'Agent Framework plugin for Gradium.'
'Groq inference plugin for LiveKit Agents.'
'Agent Framework plugin for Hedra Avatar.'
'Hume TTS plugin for LiveKit agents.'
"Agent Framework plugin for voice synthesis with Inworld's API."
'LangChain/LangGraph plugin for LiveKit agents.'
'LMNT TTS plugin for LiveKit agents.'
'Minimal plugin template for LiveKit Agents.'
'LiveKit Agents Plugin for services from AWS'
'LiveKit Agents Plugin for services from AWS.'
'Neuphonic inference plugin for LiveKit Agents.'
'Agent Framework plugin for NLTK-based text processing.'
'LiveKit Agents Plugin for services from nvidia.'
'Agent Framework plugin for services from OpenAI.'
'LiveKit Agents Plugin for Resemble AI.'
'LiveKit Agents Plugin for Rime.'
'Agent Framework plugin for RTZR Streaming STT.'
"Agent Framework plugin for services using Sarvam.ai's API."
'Agent Framework Plugin for Silero.'
'Agent Framework plugin for Simli.'
'Agent Framework plugin for speech synthesis with the Smallest AI.'
"Agent Framework plugin for services using Soniox's API."
"Agent Framework plugin for voice synthesis with Speechify's API."
'Agent Framework plugin for Speechmatics.'
'spitch plugin template for LiveKit Agents.'
'Agent Framework plugin for Tavus.'
'End of utterance detection for LiveKit Agents.'
'Agent Framework plugin for services from Ultravox.'
'Agent Framework plugin for speech synthesis with the Uplift AI.')
_plugins_depends=("'python-livekit-agents'"
"'python-livekit-agents' 'python-anthropic' 'python-httpx'"
"'python-livekit-agents'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-aioboto3' 'python-aws_sdk_transcribe_streaming'"
"'python-livekit-agents' 'python-azure-cognitiveservices-speech'"
"'python-livekit-agents' 'python-aiohttp' 'python-livekit'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-bithuman'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-pydub'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents' 'python-fal-client'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-av' 'python-numpy' 'python-fish-audio-sdk'"
"'python-livekit-agents' 'python-av' 'python-numpy' 'python-aiohttp'"
"'python-google-auth' 'python-google-cloud-speech' 'python-google-cloud-texttospeech' 'python-google-genai' 'python-livekit-agents'"
"'python-livekit-agents' 'python-aiohttp' 'python-livekit'"
"'python-livekit-agents' 'python-av' 'python-numpy' 'python-livekit-plugins-openai' 'python-aiohttp' 'python-livekit'"
"'python-livekit-agents'"
"'python-aiohttp' 'python-livekit-agents'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-langchain-core' 'python-langgraph'"
"'python-livekit-agents'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents' 'python-livekit-plugins-openai' 'python-mistralai'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-nltk'"
"'python-livekit-agents' 'python-nvidia-riva-client'"
"'python-livekit-agents' 'python-av' 'python-numpy' 'python-pillow' 'python-openai'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents' 'python-httpx' 'python-aiohttp'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents' 'python-onnxruntime' 'python-numpy'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents' 'python-speechmatics-rt'"
"'python-livekit-agents' 'python-av' 'python-numpy' 'python-spitch'"
"'python-livekit-agents'"
"'python-livekit-agents' 'python-transformers' 'python-numpy' 'python-onnxruntime' 'python-jinja'"
"'python-livekit-agents' 'python-av' 'python-numpy'"
"'python-livekit-agents' 'python-av' 'python-numpy'")
_plugins__optdepends=(""
""
""
""
"'python-aws-sdk-bedrock-runtime: realtime' 'python-aws-sdk-signers: realtime' 'python-boto3: realtime'"
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
"'python-google-auth: vertex'"
""
""
""
""
""
""
""
""
""
""
""
""
""
"")
arch=('x86_64' 'aarch64')
_repo='https://github.com/livekit/agents'
license=('Apache-2.0')
depends=('python')
makedepends=('python-hatchling' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-dotenv' 'python-pytest' 'python-pytest-asyncio' 'python-jiwer' 'python-scipy' 'python-tiktoken' 'python-nltk' 'nltk-data' 'python-docstring-parser' 'python-speechmatics-rt')
source=("$_repo/archive/refs/tags/$_name0@$pkgver.tar.gz"
"$_repo/raw/refs/tags/$_name0@$pkgver/$_name1/$_name1-silero/${_name1//-//}/silero/resources/silero_vad.onnx")
sha256sums=('b7124eb3fe90078b26710e17dc25af49fdefc5d9cae09732e01add38091d2305'
'597d30b3ec076608d059477bb14cfeffdf951bf5cae370d38f65d33bbfe82004')
prepare(){
cp -f "$srcdir"/silero_vad.onnx "$srcdir"/${_name0//livekit-/}-$_name0-$pkgver/$_name1/$_name1-silero/${_name1//-//}/silero/resources/silero_vad.onnx
cd "$srcdir"/${_name0//livekit-/}-$_name0-$pkgver
sed -i 's/# //g' tests/utils.py
sed -i 's/resample if not None/# resample if not None/g' tests/utils.py
sed -i '2i\import pathlib' tests/utils.py
sed -i '2i\import os' tests/utils.py
}
build() {
cd "$srcdir"/${_name0//livekit-/}-$_name0-$pkgver/$_name0
python -m build --wheel --no-isolation
for _plugin in "${_plugins[@]}"; do
cd "$srcdir"/${_name0//livekit-/}-$_name0-$pkgver/$_name1/$_name1-$_plugin
python -m build --wheel --no-isolation
done
}
check() {
local pytest_options=(
-vv
--disable-warnings
# Import problem need to be fixed by developers
--ignore tests/test_llm.py
--ignore tests/test_vad.py
--ignore tests/test_ipc.py
--ignore tests/test_connection_pool.py
--deselect tests/test_speaker_id_grouping.py
# Need API's
--deselect tests/test_audio_decoder.py::test_decode_and_transcribe
--deselect tests/test_stt.py::test_recognize
--deselect tests/test_stt.py::test_stream
--deselect tests/test_tts.py::test_tts_synthesize
--deselect tests/test_tts.py::test_tts_synthesize_timeout
--deselect tests/test_tts.py::test_tts_stream
--deselect tests/test_tts.py::test_tts_stream_timeout
--deselect tests/test_evals.py::test_function_call
--deselect tests/test_evals.py::test_inline_agent
--deselect tests/test_evals.py::test_start_with_capture_run
--deselect tests/test_workflows.py::test_collect_email
--deselect tests/test_chat_ctx.py::test_summarize
--deselect tests/test_workflows.py::test_get_dtmf_sip_event_without_confirmation
--deselect tests/test_workflows.py::test_get_dtmf_sip_event_with_confirmation
)
cd "$srcdir"/${_name0//livekit-/}-$_name0-$pkgver
python -m venv --system-site-packages test-env
test-env/bin/python -m installer $_name0/dist/*.whl
for _plugin in "${_plugins[@]}"; do
test-env/bin/python -m installer $_name1/$_name1-$_plugin/dist/*.whl
done
test-env/bin/python -m pytest "${pytest_options[@]}" tests
}
package_python-livekit-agents() {
pkgdesc='A powerful framework for building realtime voice AI agents.'
url='https://github.com/livekit/agents/tree/main/livekit-agents'
depends+=('python-typer' 'python-click' 'python-certifi' 'python-livekit' 'python-livekit-api' 'python-livekit-protocol' 'python-livekit-blingfire' 'python-protobuf' 'python-pyjwt' 'python-watchfiles' 'python-psutil' 'python-aiohttp' 'python-typing_extensions' 'python-sounddevice' 'python-docstring-parser' 'python-colorama' 'python-av' 'python-numpy' 'python-pydantic' 'python-nest-asyncio' 'python-opentelemetry-api' 'python-opentelemetry-sdk' 'python-opentelemetry-exporter-otlp' 'python-prometheus_client' 'python-openai' 'python-aiofiles')
optdepends=('python-mcp: mcp'
'python-numpy: codecs'
'python-pillow: images'
'python-livekit-plugins-anam: anam'
'python-livekit-plugins-anthropic: anthropic'
'python-livekit-plugins-assemblyai: assemblyai'
'python-livekit-plugins-aws: aws'
'python-livekit-plugins-azure: azure'
'python-livekit-plugins-baseten: baseten'
'python-livekit-plugins-bey: bey'
'python-livekit-plugins-bithuman: bithuman'
'python-livekit-plugins-cartesia: cartesia'
'python-livekit-plugins-clova: clova'
'python-livekit-plugins-deepgram: deepgram'
'python-livekit-plugins-elevenlabs: elevenlabs'
'python-livekit-plugins-fal: fal'
'python-livekit-plugins-fishaudio: fishaudio'
'python-livekit-plugins-fireworksai: fireworksai'
'python-livekit-plugins-gladia: gladia'
'python-livekit-plugins-google: google'
'python-livekit-plugins-groq: groq'
'python-livekit-plugins-hedra: hedra'
'python-livekit-plugins-hume: hume'
'python-livekit-plugins-inworld: inworld'
'python-livekit-plugins-langchain: langchain'
'python-livekit-plugins-lmnt: lmnt'
'python-livekit-plugins-minimax-ai: minimax'
'python-livekit-plugins-mistralai: mistralai'
'python-livekit-plugins-neuphonic: neuphonic'
'python-livekit-plugins-nltk: nltk'
'python-livekit-plugins-openai: openai'
'python-livekit-plugins-resemble: resemble'
'python-livekit-plugins-rime: rime'
'python-livekit-plugins-sarvam: sarvam'
'python-livekit-plugins-silero: silero'
'python-livekit-plugins-simli: simli'
'python-livekit-plugins-smallestai: smallestai'
'python-livekit-plugins-soniox: soniox'
'python-livekit-plugins-speechify: speechify'
'python-livekit-plugins-speechmatics: speechmatics'
'python-livekit-plugins-spitch: spitch'
'python-livekit-plugins-tavus: tavus'
'python-livekit-plugins-turn-detector: turn-detector'
'python-livekit-plugins-ultravox: ultravox'
'python-livekit-plugins-upliftai: upliftai'
'python-livekit-plugins-gradium: gradium')
cd "$srcdir"/${_name0//livekit-/}-$_name0-$pkgver
python -m installer --destdir="$pkgdir" $_name0/dist/*.whl
}
livekit-plugins(){
for ((i=0; i<${#_plugins[@]}; i++)); do
eval "package_python-$_name1-${_plugins[i]}() {
pkgdesc=\"${_plugins_pkgdesc[i]}\"
url=\"$_repo\"/tree/main/$_name1/$_name1-${_plugins[i]}
depends=(${_plugins_depends[i]})
optdepends=(${_plugins__optdepends[i]})
cd \"\$srcdir\"/${_name0//livekit-/}-$_name0-$pkgver/$_name1/$_name1-${_plugins[i]}
python -m installer --destdir=\"\$pkgdir\" dist/*.whl
}"
done
}
livekit-plugins
|