
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.