Universal Voice Chat
基于 Discord 的近距离语音聊天,无需依赖服务器即可运行。

使用方法
首次设置
只需一人按照以下步骤操作,之后其他人即可使用该应用 ID。
- 前往 Discord 开发者仪表板 并创建一个新的开发团队
- 创建一个新应用并将其分配给该团队
- 进入 OAuth2 选项卡,将
http://127.0.0.1/callback 添加为重定向 URL,并启用 Public Client(公共客户端)
- 进入 Games > Social SDK 并填写表单
- 返回 Overview > General Information(概览 > 一般信息),复制应用 ID
完成后,将应用 ID 发送给你想要与之通话的所有人,并将其粘贴到设置界面中。Discord 将会打开并请求授权,请向下滚动直到可以点击“Authorize”(授权)。

大厅
你只能听到/与处于同一大厅的人交流。大厅密钥可以是几乎任何内容,只要你的朋友能够输入即可。
在菜单中输入密钥并点击“Join Lobby”(加入大厅)。

注意事项
本模组只是一个概念验证。如果你正在寻找用于服务器的解决方案,请使用 Simple Voice Chat 或 Plasmo Voice——它们在服务器上表现会更好。
仅与你信任的人一起使用此模组!由于 Social SDK 的设计方式以及大厅位于客户端侧,存在多个不法分子可能冒充他人或因设计缺陷导致游戏崩溃的风险。
致谢
- Discord - UVC 使用 Discord Social SDK 来处理语音聊天
- Simple Voice Chat - UI 灵感来源(没有直接复制代码,但由于我使用了太多,难免会无意中受到启发)
Universal Voice Chat
Discord-powered proximity voice chat that works without relying on a server.

Usage
First-Time Setup
Only one person has to follow these steps, after which everyone else can utilize the application ID.
- Go to the Discord Developer Dashboard and create a new developer team
- Create a new application and assign it to that team
- Go to the OAuth2 tab and add
http://127.0.0.1/callback as a redirect URL, and toggle Public Client
- Go to Games > Social SDK and fill out the form
- Go back to Overview > General Information and copy the application ID
After this, send the application ID to everyone you want to speak with and paste it into the setup screen. Discord will open and ask you for authorization, and you should scroll down until you can click "Authorize".

Lobbies
You can only hear/speak to people in your lobby. The lobby secret can be basically anything, as long as your friends can type it in.
Input the secret into the menu and click "Join Lobby".

Notes
This mod is a bit of a proof-of-concept. If you are looking for something to use on your server, use Simple Voice Chat or Plasmo Voice— they will work better there.
Only use this mod with people you trust! There are several places where bad actors could impersonate others or crash your game due to how the Social SDK is designed with client-side lobbies.
Credits
- Discord - UVC uses the Discord Social SDK to handle voice chat
- Simple Voice Chat - UI inspiration (nothing directly copied, but I've used it too much not to accidentally take inspiration)
评论 0
登录后参与评分
还没有评论,来抢沙发吧