amirldn / rtx-voice-script

A python script that takes an input MP3/FLAC and outputs an acapella/background noise stripped WAV using the power of NVIDIA's RTX Voice
GNU General Public License v3.0
89 stars 4 forks source link
flac nvidia nvidia-rtx rtx rtx-acapella rtx-voice vb-audio wav

rtx-voice-script

Code style: black HitCount

A python script that takes an input MP3/FLAC/MOV/MP4/WAV file and outputs an acapella version as a WAV using the power of NVIDIA's RTX Voice. Since RTX Voice is closed source, this records files in real-time so should be used for experimental purposes and for library overhauls.

Getting Started

Requirements


Steps

💻+🐍 anaconda

Anaconda is an open source distribution for the Python programming language. The Anaconda distribution includes many of the most commonly used Python libraries by default, also a user interface for managing and updating packages.

You can create your own working environment so that, depending on the project, you can use different dependencies packages.

  1. install anaconda
  2. open anaconda terminal
  3. ⌨️=conda create -n rtx-voice python=3.9 create working environment
  4. ⌨️=conda activate rtx-voice
  5. 🖥️=(base) C:\Users\UserName> ⌨️=D: If you want to have the project in another location on the hard disk. Change partion.
  6. 🖥️=(base) D:\> ⌨️=cd D:\Folder\Folder change path

💻 Use and Download the tool

1 ) Clone the repository and cd into it

git clone https://github.com/amirmaula/rtx-voice-script.git

2 ) Install the prerequisites via

pip install -r requirements.txt

3 ) Set RTX Voice's microphone input to your VB Audio Cable (Virtual AUX)

4 ) To execute the program, run it in your CLI like so:

python ./rtx-core.py -i [input path] -o [file directory & name for output]

For example input defined (automatically creates output file)

python rtx-core.py -i "D:\UserName\Video\video.mov"

For example single input defined and output defined (not testet)

python ./rtx-core.py -i song.flac -o D:\Music\Acapella\cool_song.wav

5 ) Follow the on screen prompts.

VirtualCable

just the number 5

NvidiaBrodcast

just the number 3

6 ) Your new config file will then be exported to code's directory.


🎬 sync tool

I always had the problem on my computer that there was a small time lag. This depends on the start time of the audio recording and the start time of the recording and there is always a small time difference.

python-warpdrive syncs to source audio from video with the filter audio and returned time offset. Nice Tool for this Job is from 🧙‍♂️ Darren Sholes.


🔧 To-do


Known Issues

Other Solutions (VST Plugins)

You can use VST plugin for Adobe Audition, Adobe Premiere Pro or Audacity. There is this youtube tutorial from TroubleChute

A Cheap solution is to use a VST plugin called ELGATO AUDIO EFFECTS which is a free plugin and you can download it from elgato website. The Last time I checked it does not work when you press export. It gave me audio artefacts.

The VST voicefx cost money for more advanced features. Nvidia list this VST plugin here.


Notes

ffmpeg

pip

conda