Code Monkey home page Code Monkey logo

native-audio-tool's Introduction

image

Description

This automates the SimpleAudio process outlined in this repo from @ChatDisabled, which also includes a sample resource with usage. In addition, the script also prepares the radio station and track data to be used with Chat's Custom Native Radio Stations resource.

Basics

  • Converts MP3s, WAVs, and OGG files to properly formatted WAVs for OpenIV conversion
  • Prepares the necessary XMLs for OpenIV conversion

Usage

  1. Run npm install
  2. In the terminal npm run makeWavs with the following parameters
    • --file - comma separated list of files, with the extension that will be processed. The script only uses MP3s.
    • --folder - If you dont want to specify a list of files, you can specify folder in the root of the project, that holds the files that will be processed. The script only uses MP3s.
    • --samplerate - The sample rate of the outputted files.
    • --trackid - The starting trackid that will be used for the processed tracks, used specifically for radio type.
    • --soundset - This is the soundset dict name used for playing sounds, used specifically for simple type.
    • --audiobank - This is the audiobank name/folder, used specifically for simple sound type. If not specified, it will default to custom_sounds.
    • --gun - This is the name of the weapon you're generating the audio data for, used specifically for weapon type. NOTE: sns is the only working example right now. I will add more in the future.
    • --type - This can be simple, radio, or weapon, each outputting their respective audio data files.

๐Ÿ‘€ Commands

npm run makeWavs --file=lock.mp3 --samplerate=48000 --trackid=5000 --type=radio

npm run makeWavs --file=lock.mp3 --samplerate=48000 --trackid=5000 --type=radio

npm run makeWavs --file=lock.mp3,unlock.mp3 --soundset=special_soundset --samplerate=32000 --type=simple

npm run makeWavs --samplerate=32000 --soundset=special_soundset --type=simple --folder=test

npm run makeWavs --samplerate=32000 --soundset=special_soundset --type=simple --folder=test --audiobank=joe_sounds

Dependencies

nodeJS

CodeWalker the outputted WAV and XML data is imported into CodeWalker, to create the AWC and REL information

Discord

Joe Szymkowicz FiveM Development

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.