website with encoder isn’t working again https://www.scorteanucosmin.dev/encoder/
Sound Library Api
$19.99
Sold by: supremeSound Library Api allows you to store & play recorded sounds for players, attach them to npcs, trigger them via in-game events
- Description
- Reviews (2)
- Version History
- Discussions (2)
- Setup
- Product Enquiry
Description
Description
Sound Library Api allows you to store & play recorded sounds for players, attach them to npcs, trigger them via in-game events
Use Sound Library API Encoder which allows you to convert any audio file to our own format (after converting the file, rename it and move it to /data/SoundLibraryApi):
Configuration:
{
"Scheduled message interval (seconds)": 900.0,
"Speaker Distance (The higher the number, the further away is the speaker resulting in a quieter voice)": 5.0,
"Audio events": {
"ScheduledMessage": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": true,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"Welcome": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": false,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"PatrolHelicopter": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": true,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"Airdrop": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": true,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"CargoShip": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": true,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"Chinook": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": true,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"CrateHack": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": false,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"MissionStarted": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": false,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"MissionFinished": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": false,
"Audio files": [
"placeholder1",
"placeholder2"
]
},
"MissionFailed": {
"Enable audio event": true,
"Global audio event (set false in order to be heard only by the player that triggered the audio event)": false,
"Audio files": [
"placeholder1",
"placeholder2"
]
}
}
}
Language:
{
"NoPermission": "<color=#e3e3e3>You do not have permission to use this command",
"AlreadyRecording": "<color=#e3e3e3>You're already recording. Please save or cancel your previous recording before starting a new one.",
"InvalidAddSyntax": "<color=#e3e3e3>Invalid Syntax. Ex: <color=#de8732>/sl add soundname",
"AddAlreadyExists": "<color=#e3e3e3>This sound already exists. <color=#e3e3e3>Please add <color=#de8732>overwrite to your arguments to allow overwriting an existing sound.<color=#e3e3e3>Ex: <color=#de8732>sl add {{0}} overwrite",
"AddRecording": "<color=#e3e3e3>You can now start recording.n<color=#e3e3e3>The recording will automatically start once your start sending audio.n<color=#e3e3e3>Once you have completed you can use <color=#de8732>/sl save or <color=#de8732>/sl cancel.n<color=#e3e3e3>You can listen to your recording using <color=#de8732>/sl playn<color=#e3e3e3>If you want to rerecord your recording use <color=#de8732>/sl reset",
"NotRecording": "<color=#e3e3e3>You're not currently recording.",
"RecordingSaved": "<color=#e3e3e3>We have saved your recording as '{0}'",
"CanceledRecording": "<color=#e3e3e3>We have canceled your recording",
"ResetRecording": "<color=#e3e3e3>Your recording has been reset.",
"PlayInvalidSyntax": "<color=#e3e3e3>Invalid Syntax. Ex: <color=#de8732>/sl play soundname - to play the sound with the given name.",
"NoSoundFileFound": "<color=#e3e3e3>No sound file found with name '{0}'",
"HelpText": "<color=#e3e3e3>Allows players to record sound that can be played back to a playern<color=#de8732>/sl add soundname - to start the creation of a new sound.n<color=#de8732>/sl npc add hookActionType fileName - to add one or more filenames to a human npc (hook action types are: <color=#de8732>OnUseNPC/OnEnterNPC/OnLeaveNPC/OnHitNPC)n<color=#de8732>/sl npc remove hookActionType fileName - to remove a filename from a human npc (hook action types are: <color=#de8732>OnUseNPC/OnEnterNPC/OnLeaveNPC/OnHitNPC)n<color=#de8732>/sl save - to save your recorded sound.n<color=#de8732>/sl reset - to clear your current recording.n<color=#de8732>/sl cancel - to cancel your recording and not save.n<color=#de8732>/sl play - to player your current recording back to you.n<color=#de8732>/sl - to view this help text again.",
"AudioMessagesHelpText": "<color=#e3e3e3><color=#66B2FF>/audio send playerName audioName - Sends an audio message to a playern<color=#e3e3e3><color=#66B2FF>/audio sendall audioName - Sends an audio message to everyone on the servern<color=#e3e3e3><color=#66B2FF>/audio sendlooped playerName audioName 2 (loop times amount) - Sends a looped audio message to a playern<color=#e3e3e3><color=#66B2FF>/audio sendalllooped audioName 2 (loop times amount) - Sends a looped audio message to everyone on the servern<color=#e3e3e3><color=#66B2FF>/audio files - Shows a list of all audio files on the servern<color=#e3e3e3><color=#66B2FF>/sl - Shows the help page for the Sound Library APIn<color=#e3e3e3><color=#66B2FF>/audio help - Shows these help messages",
"PlayingText": "<color=#e3e3e3>Playing the file with the name of <color=#de8732>{0}",
"PlayingAudioMessageText": "<color=#e3e3e3>Playing the file with the name of <color=#66B2FF>{0}",
"InvalidTarget": "<color=#e3e3e3>Invalid target, try using his steamid/name",
"NullFileName": "<color=#e3e3e3>This file name is null, use /audio files",
"AvailableFileNames": "<color=#e3e3e3>Available files:n<color=#66B2FF>{0}",
"FileNameNotFound": "<color=#e3e3e3><color=#66B2FF>{0} does not exist, use <color=#66B2FF>/audio files",
"NpcNotFound": "<color=#e3e3e3>Couldn't find any human npc, make sure you have created one using <color=#de8732>/npc_add and you are looking at it!",
"InvalidHookActionType": "<color=#e3e3e3><color=#de8732>{0} is invalid, list of hook action types:<color=#de8732>nOnUseNPCnOnEnterNPCnOnLeaveNPCnOnHitNPC",
"NpcSoundAdded": "<color=#e3e3e3><color=#de8732>{0} was added and will play when <color=#66B2FF>{1} is triggered",
"NpcSoundRemoved": "<color=#e3e3e3><color=#de8732>{0} was removed from this NPC!",
"FileNameAlreadyAdded": "<color=#e3e3e3><color=#de8732>{0} was already added to this NPC!"
}
Human NPC Integration example:
{
"Npc Data": {
"303133854": {
"Action type of the npc & Filenames that are played": {
"OnUseNPC": [
"testing",
"testing"
]
}
},
"986905907": {
"Action type of the npc & Filenames that are played": {
"OnEnterNPC": [
"testing"
]
}
},
"1543143931": {
"Action type of the npc & Filenames that are played": {
"OnHitNPC": [
"messagesound"
]
}
},
"1205925446": {
"Action type of the npc & Filenames that are played": {
"OnUseNPC": [
"testing",
"pop"
],
"OnHitNPC": [
"testing"
]
}
},
"45461627": {
"Action type of the npc & Filenames that are played": {
"OnUseNPC": [
"messagesound"
],
"OnHitNPC": [
"messagesound"
]
}
},
"942954162": {
"Action type of the npc & Filenames that are played": {
"OnHitNPC": [
"waveeffect",
"messagesound"
],
"OnEnterNPC": [
"messagesound"
]
}
}
}
}
Recording & Playing Audio Files Video:
Human NPC Integration Video:
Permissions:
soundlibraryapi.use – In order to use /sl
soundlibraryapi.audio – In order to use /audio
Console Command:
audio.message
Important:
Does the audio played by the npc stutters or skips frames? Make sure you recorded the audio with the volume being as high as possible and the server does not perform poorly, there are cases where a server lags and the voice data losses quality/stutters
Reviews (2)
2 reviews for Sound Library Api
Only logged in customers who have purchased this product may leave a review.
Version History
- Fixed fixed rpc errors
- Updated configuration structure is now re-written, implemented audio events (Can easily enable/disable the audio event, set broadcast type to global or only to the player who triggered it, a list of audio files to pick from randomly)
- Added added 3 more audio events (mission started, mission finished & mission failed)
- Updated code optimization & cleanup
- Added 4th May update networkableId fixes (do not use it before the 4th May rust update, it won't compile)
- Updated Updated network code for the new upcoming rust update
- Added Added scheduled message check, (set to 0 in configuration to disable scheduled messages)
- Fixed Fixed speakers not being destroyed properly due to NREs
- Fixed Cleaned up console messages
- Fixed More fixes
- Fixed Fixed npc clones not being destroyed due to null filenames
- Updated Code cleanup
- Removed Removed the ability to record sound via in-game microphone (online encoder is live)
- Removed Removed old data converter
- Removed Removed old data files (.json), plugin only plays the .data files now (more performant)
- Fixed Fixed file existance check
- Added Thanks to MJSU our Sound Library Encoder is now live at: http://encoder.scorteanucosmin.codes/ (allows you to convert any audio file to our own format, after converting the file, rename it and move it to /data/SoundLibraryApi).
- Added Added sound event when hacking a crate
- Added Added scheduled sound message (interval based)
- Added Added Zone Manager sound system (Entering/Leaving a zone will play different sound messages) Warning: You will have to setup your npcs sound files again, the data handler was re-written, new lang messages added as well!
- Added Speaker Volume (distance) (increasing too much of the distance may cause distortions)
- Fixed Thanks to MJSU the speaker handler was improved significantly, resolving audio stuttering
- Updated Renamed deprecated hook Increased delay for OnPlayerConnected in order to start the sound later
Discussions (2)
2 thoughts on "Sound Library Api"
Leave a reply
-
-
The url has changed to https://encoder.scorteanucosmin.dev/
-
Setup
Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?
• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.
Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA
• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.
Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.
Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)
Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)
strand (verified owner) –
One of my favourite plugins to add sound into the server for effect
Project Nova (verified owner) –
Added potentially the coolest aspect to our server! Dev is excellent is communication. Adding voices to the game adds an extra layer of immersion you wouldn’t have thought of prior. Highly recommend utilizing this API for further improvements to your server! Here’s a video of us utilizing SoundLibraryAPI with another custom plugin and how it made our server vastly more informative/immersive https://youtu.be/nUeNZnOSnWE