How to start Chatterbox TTS server automatically on boot (systemd service)


1
1 point

1. How to start Chatterbox TTS server automatically on boot (systemd service)

The most reliable and clean way on Linux Mint / Ubuntu-based systems is to create a systemd user service (no need for root privileges if you run it as your own user).

Step-by-step

  1. Make sure the following works when you run it manually:Bash
    cd ~/Chatterbox-TTS-Server 
    source venv/bin/activate export HSA_OVERRIDE_GFX_VERSION=11.0.0 export HIP_VISIBLE_DEVICES=0 python server.py
  2. Create user systemd service fileBash
    mkdir -p ~/.config/systemd/user 
    nano ~/.config/systemd/user/chatterbox-tts.service

    Paste this content (adjust paths if needed):

    ini

    [Unit] Description=Chatterbox TTS Server After=network.target [Service] Type=simple WorkingDirectory=/home/rob-roy/Chatterbox-TTS-Server Environment="HSA_OVERRIDE_GFX_VERSION=11.0.0" Environment="HIP_VISIBLE_DEVICES=0" ExecStart=/home/rob-roy/Chatterbox-TTS-Server/venv/bin/python server.py Restart=always RestartSec=10 [Install] WantedBy=default.target

    Save and exit.

  3. Enable and start the serviceBash
    # Reload systemd user daemon 
    systemctl --user daemon-reload 
    # Enable so it starts on login/boot 
    systemctl --user enable chatterbox-tts.service 
    # Start it now 
    systemctl --user start chatterbox-tts.service 
    # Check status 
    systemctl --user status chatterbox-tts.service
  4. Check logs when something goes wrongBash
    journalctl --user -u chatterbox-tts.service -f

Now the server should start automatically when you log in (and survive crashes/reboots as long as the user session is active).

If you want it to start even without login (system service), it requires a bit more work (system user, WorkingDirectory permissions, etc.). Part 2 is coming soon.


Like it? Share with your friends!

1
1 point

What's Your Reaction?

hate hate
0
hate
confused confused
0
confused
fail fail
0
fail
fun fun
0
fun
geeky geeky
0
geeky
love love
0
love
lol lol
0
lol
omg omg
0
omg
win win
0
win
woolfgar

0 Comments

Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Meme
Upload your own images to make custom memes
Video
Youtube and Vimeo Embeds
Audio
Soundcloud or Mixcloud Embeds
Image
Photo or GIF
Gif
GIF format