
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
livekit-plugins-aliyun
Advanced tools
适配阿里云百炼的livekit-agent框架插件。目前支持TTS, LLM, STT。
pip install livekit-plugins-aliyun
DASHSCOPE_API_KEY
以下代码展示了如何在livekit-agent
中使用livekit-plugins-aliyun
插件。
from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import aliyun
from dotenv import load_dotenv
async def entry_point(ctx: JobContext):
await ctx.connect()
agent = Agent(instructions="You are a helpful assistant.")
session = AgentSession(
stt=aliyun.STT(model="paraformer-realtime-v2"),
tts=aliyun.TTS(model="cosyvoice-v2", voice="longcheng_v2"),
llm=aliyun.LLM(model="qwen-plus"),
)
await session.start(agent=agent, room=ctx.room)
await session.generate_reply()
if __name__ == "__main__":
load_dotenv()
cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))
若需要使用STT热词功能,需要在STT
插件中配置vocabulary_id
参数。
session = AgentSession(
stt=aliyun.STT(model="paraformer-realtime-v2", vocabulary_id="your_vocabulary_id"),
tts=aliyun.TTS(model="cosyvoice-v2", voice="longcheng_v2"),
llm=aliyun.LLM(model="qwen-plus"),
)
FAQs
LiveKit Agent Plugins for Alibaba Cloud
We found that livekit-plugins-aliyun demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.