MengXinSheQu.AudioApi 0.0.5

dotnet add package MengXinSheQu.AudioApi --version 0.0.5
                    
NuGet\Install-Package MengXinSheQu.AudioApi -Version 0.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MengXinSheQu.AudioApi" Version="0.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MengXinSheQu.AudioApi" Version="0.0.5" />
                    
Directory.Packages.props
<PackageReference Include="MengXinSheQu.AudioApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MengXinSheQu.AudioApi --version 0.0.5
                    
#r "nuget: MengXinSheQu.AudioApi, 0.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MengXinSheQu.AudioApi@0.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MengXinSheQu.AudioApi&version=0.0.5
                    
Install as a Cake Addin
#tool nuget:?package=MengXinSheQu.AudioApi&version=0.0.5
                    
Install as a Cake Tool

[中文]AudioAPI

这是一个SCP:SL的API库。

该API库向SCP:SL服务器添加了<b>玩家式播放音乐组件</b>与<b>音乐假人生成</b>,同时添加了更多事件以便开发者使用。

示例:

示例图片

安装:

Releases下载最新版本AudioAPi.dll,这个依赖不限制版本,你可以通过EXILED框架或LabApi框架使用(NWAPI除外)

使用:

注意: 这个并不是一个音乐播放插件,他更偏向于处理音频/假人添加。

这个API能让你的插件更快捷的播放音频,但是该播放受SCPSL的VoiceMessage限制(仅能播放48000采样率 单轨道ogg格式音频)。

处理:

你可以复制你想要的音乐,到哔哩哔哩视频下载下载视频,通过AdobeAU或其他软件转换为48000采样率的单轨道ogg格式音频。

开发小贴士:

你可以继承VoicePlayerBase,来制作其他的组件。

同时添加了以下四种事件,你可以通过事件更好的制作你的插件。

public static event Action<TrackSelectingEventArgs> OnTrackSelecting; //选择音频
public static event Action<TrackSelectedEventArgs> OnTrackSelected; //音频选择完成
public static event Action<TrackLoadedEventArgs> OnTrackLoaded; //音频加载
public static event Action<TrackFinishedEventArgs> OnFinishedTrack; //音频播放完成

[English]AudioAPI

This is an API library for SCP:SL.

This API add <b>Voice Player Component</b> and <b>Music Dummy Spawner</b> to the SCP:SL server, as well as more events for developers to use.

Example:

Example Image

Download:

From Releases download AudioAPi.dll. This API does not limit the framework. You can use EXILEDorLabApiframework(Except NWAPI)

Infomation:

Note: This is not a music player plugin. It prefers to handle audio/dummy additions.

This API allows your plugin to play audio faster. But this was limited by SCPSL's VoiceMessage(48000sample Mono .ogg)。

Dev Tips:

These events at VoicePlayerBase.

public static event Action<TrackSelectingEventArgs> OnTrackSelecting; //Selecting Music.
public static event Action<TrackSelectedEventArgs> OnTrackSelected; //Selected Music.
public static event Action<TrackLoadedEventArgs> OnTrackLoaded; //Load Music.
public static event Action<TrackFinishedEventArgs> OnFinishedTrack; //Finish play.
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MengXinSheQu.AudioApi:

Package Downloads
YongAnFrame

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.5 184 6/14/2025
0.0.4 154 5/22/2025
0.0.3 145 5/21/2025