Is it possible to bring in prerecorded audio into the Sounds folder? I understand the audio information needs to be plain text packaged in json format and then it gets loaded into the NpcSound variable in LoadDataSound in your code, but how could I convert a prerecorded wav to the plain text "Data" format I see in the json file?
Import audio to Sounds folder
you would need to use a soundboard and recoard the sound ingame
Is the "Data" in the json file just raw PCM data? How could I listen to that audio outside of Rust?
You cant its got encoding by rust.
How many sound files are you wanting to convert? If it's just a couple I can do it for you. Just hit me up on discord Zoreeno#3955
Zoreeno
How many sound files are you wanting to convert? If it's just a couple I can do it for you. Just hit me up on discord Zoreeno#3955
Hi, Is there something on the software side, to transform audio into this language that is in the data json files?
I sent you a friend request on Discord.
I wonder if it's a Facepunch proprietary format, or a Unity one. Gonna poke around.
Merged post
The T3hosting suggestion about recording with a soundboard may just be the easiest. Not too much effort.
But it'd be nice to dump a bunch of files in a folder without running Rust.
It's base64 encoded into the json file. I guess you could reverse engineer it by dumping it from the base64 string into a binary file and then probing around with file and audio tools to see what it's made out of?
I was thinking about that. I also wonder if it's a format that Unity requires and it's not Rust specific. This isn't a really pressing matter for me, but I'm going to keep poking around for the fun of it.
Anyone found any way of accomplishing this? I'd like to do this as well but playing sounds down my mic just doesn't cut it.