Buzz Shop logo
All products
Login

All articles

How to Setup Optimized Lavalink application.yml

A quick guide to configuring application.yml for Lavalink to achieve better performance, stability, and low-latency audio streaming.

1

Setting Up Your Application.yml

FIrstly you should create a seperate google account and fill its Email at place of Your_Email at line no. 51 and password of that account on place of Your_Password at line no. 52

2

Setup Sportify (optional)

You should only do this step if sportify as source is not working

first check if it satrt working after doing

preferAnonymousToken: False on line no. 169

Configure

clientId: on line no. 164

clientSecret: on line no. 165

countryCode: line no. 166

preferAnonymousToken: False

3

Start your Lavalink Server

Start your Lavalink Server after that go on console

--- [Lavalink] [ main] d.l.youtube.http.YoutubeOauth2Handler : OAUTH INTEGRATION: To give youtube-source access to your account, go to https://www.google.com/device and enter code XXXX-XXXX-XXXX

Click on https://www.google.com/device and enter code in "Enter Code" field

4

Select Account

Select that account which you made while doing Step 1

5

Click on "Allow"

6

Check Console

Check console and you will see something like

--- [Lavalink] [ce-token-poller] d.l.youtube.http.YoutubeOauth2Handler : OAUTH INTEGRATION: Token retrieved successfully. Store your refresh token as this can be reused. (1//0eqXvClE0NRk6CgYIARAAGA4SNwF-L9IrUlsubZ81lOCRtFIAe7qOua2WVeiQLsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)

after this token is generated your lavalink will work as it should and you have to generate it after each restart and if you are having problem with the youtube not working then its sometimes issue with the firewall i dont know what exactly it is but its the issue of it

Join the community

Talk to our community or create a ticket on our Discord server

Welcome to HX Studios

Logo

© 2025 HX Studios. All Rights Reserved.

PayPalGoogle PayiDEALLinkMastercardVisaWise