Topview Logo
  • Create viral videos with
    GPT-4o + Ads library
    Use GPT-4o to edit video empowered by Youtube & Tiktok & Facebook ads library. Turns your links or media assets into viral videos in one click.
    Try it free
    gpt video

    Want a Personalized AI Assistant? Watch This Linux Mint Tutorial Now

    blog thumbnail

    Introduction

    Welcome to the eighth video in our series where we create the ultimate artificial intelligence operating system using Linux Mint and exclusively open-source software. Today, we are taking a significant leap forward by introducing a custom-built application: a local AI-enabled voice assistant that I've developed over the past few days. In this tutorial, I will guide you through the installation process, share useful tips, showcase a couple of demonstrations, and invite you to provide feedback so we can collaborate to enhance this assistant into something extraordinary—perhaps the next Jarvis!

    Getting Started

    The first step is to navigate to the GitHub link provided in the video description. Once you are on the GitHub page, click on the "Code" button and copy the URL.

    Open up the terminal on your Linux Mint system. If you’ve been following along with the series, you should have an "AI" directory set up. Change directories to it by entering:

    cd AI
    

    Upon running the ls command, you’ll see all the fascinating projects we’ve built thus far. Now, clone the repository for today’s project by issuing the following command, pasting the URL you copied earlier:

    git clone <repository-url>
    

    This action will download the repository into your AI directory. After cloning, change into the new directory:

    cd assist-mint
    

    Setting Up the Environment

    Inside this new directory, you’ll find a README file. Open that to reference the commands as we go along. The first command we need to run is to create a virtual environment. This isolation helps manage dependencies effectively. Use the following command:

    python3 -m venv assist-mint-env
    

    Now, activate your virtual environment:

    source assist-mint-env/bin/activate
    

    You’ll notice your terminal prompt changes—this indicates that the virtual environment is now active.

    Next, we need to install socks, which will help with audio transformation. Run this command:

    sudo apt-get install sox
    

    Following that, install the necessary Python packages with:

    pip install -r requirements.txt
    

    This step may take some time; be patient as it processes.

    Downloading Speech Recognition Model

    Now, let’s download the voice recognition model needed for our assistant. Use the following command:

    wget <model-url>
    

    Once that’s downloaded, you’ll need to unzip it to ensure that it’s in the right directory. Use the command:

    unzip vosque_model.zip -d vosque_model
    

    Preparing the Application for Use

    Next, we must give executable permissions to our scripts to allow for launching. Use:

    chmod +x start_assistant.sh
    chmod +x assist_mint.desktop
    

    Now, let’s move the provided icon PNG file into our icons directory. Ensure you have an "icons" directory within your "AI" directory. If you haven’t created it yet, do so now:

    mkdir -p ~/AI/icons
    

    Move the icon and desktop file to their respective locations:

    mv assist_icon.png ~/AI/icons
    mv assist_mint.desktop ~/Desktop
    

    Testing the Assistant

    Now that everything is set up, deactivate your virtual environment:

    deactivate
    

    You can then double-click the desktop icon to launch the application. It executes the start_assistant.sh script, which activates the necessary virtual environment.

    When the application starts, you will select your microphone and choose to interact either by voice or through typing. While using voice mode, the assistant can help manage your calendar—adding events, removing them, or even querying what’s on the calendar.

    Example Interactions

    Here are some sampling commands you can issue to the assistant:

    • "Add dentist appointment to my calendar at 2 PM."
    • "Remove the birthday party on August 29, 2024."
    • "What's on my calendar tomorrow?"
    • "Ask Jan about train history."

    This setup allows the voice assistant to interpret and respond accurately. It’s a practical and engaging way to manage tasks and interact with AI locally.

    Final Thoughts

    In conclusion, this custom AI voice assistant offers offline capability and robust interaction with an integrated calendar management system. I hope you find this tutorial helpful, and I'd love your feedback on this development. If you have more ideas or want to collaborate on this project, don’t hesitate to reach out!

    Stay tuned for more videos, including an exciting project on creating a Halloween animatronic with ChatGPT integration. Thanks for your support, and have a great day!


    Keyword

    Here are the keywords extracted from the article:

    • Linux Mint
    • AI Voice Assistant
    • Custom Application
    • Python
    • Speech Recognition
    • GitHub
    • Commands
    • Calendar Management
    • Open Source
    • Telegram

    FAQ

    Q: What is the main purpose of the tutorial?
    A: The tutorial provides a step-by-step guide on how to install and set up a custom AI voice assistant using Linux Mint.

    Q: Do I need any specific software to follow along?
    A: You will need Python, Git, and Sox, as referenced in the installation instructions.

    Q: Can I use this assistant offline?
    A: Yes, the assistant is designed to work without an internet connection.

    Q: How can I provide feedback or collaborate on this project?
    A: You can reach out via the comments section or through direct messages on the respective social platforms.

    Q: What are some commands I can use with the voice assistant?
    A: Examples include managing calendar events, querying for information, or interacting with the built-in AI capabilities.

    One more thing

    In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.

    TopView.ai provides two powerful tools to help you make ads video in one click.

    Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.

    Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.

    You may also like