hey there welcome to the tutorial today we're diving into the world of AI and machine learning by setting up F5 TTS on the Nvidia Jetson Orin Nano F5 TTS is an advanced textto speech model that can generate lifelike voices this is an exciting project and while it's not fully optimized for Jetson just yet it's a great way to explore the potential of this powerful device so grab your Jetson Orin Nano and let's get started before we jump in here's an important note this tutorial has been tested on Jetpack 6. 1 so if you're using the cyon Nvidia Jetson Orin nanot trining kit pre-loaded with jetpack 5. 1.
2 it won't work out of the box also since the model isn't optimized for jets and yet expect longer processing times but hey that's the fun of experimenting right first things first let's update the system and install the necessary dependencies open a terminal and run these commands [Music] next clone the F5 TTS repository and set up a python virtual environment to keep things tidy [Music] [Music] before installing dependencies we need to download the correct pytorch wheel for Jetpack 6. 1 head over to the Nvidia Jetson download Center and grab the P torch wheel compatible with your device once downloaded move the wheel file to the F5 TTS project directory [Music] once the file is in place install the wheel F5 TTS and its dependencies this step ensures that the model runs with the correct version of P torch tailored for the Jetson [Music] [Music] platform to ensure smoother performance during setup especially when dealing with memory intensive tasks will'll activate an 8 GB swap space swap space is a portion of storage used as virtual memory when your RAM is full and it's particularly useful for devices with limited Ram like the Jetson Orin Nano before activating the swap let's check the current memory status using htop you can see here we only have 8 GB physical RAM available let's start by creating and activating the swap space open the terminal and enter the following Comm commands now after activating the swap check htop again notice the additional swap space available for the system to use activating swap space ensures that our setup has enough memory to handle the installation and running of the F5 TTS application without any hiccups it's an essential step especially if you're planning to explore other demanding AI applications on the jetsen Orin Nano now it's time to run the gradio app this gives us a web interface to explore F5 TTS features like chunk-based TTS multi-style generation and even voice chat launch it with this command once it's running you can access the web interface in two ways hold down the control key on your keyboard and click the provided address or manually type the address into your browser it's quick and easy let's explore the exciting features of the F5 TTS application starting with basic text to speech in the gradio app Begin by uploading a reference audio clip or you can record your own by clicking the microphone icon if you're using this to for the industry you might have some problem next expand the advanced settings section by clicking the down arrow to optionally provide the transcription of your audio clip if you skip this step the application will automatically generate a transcription using the open AI whisper model simply type or paste your desired text into the input box and click the synthesize button now let's hear the generated results terminal founded in 2004 cyon strive to provide solution for engineers Educators and students to build smart electronic and robotic projects the model generates lifelike speech from the text it uses chunk inference to process longer texts efficiently making it great for applications like audio books or announcements finally let's explore the voice chat feature powered by the Quin 2.