Yes, Spotify works as scrobbler for local files. I also tried Apple Music and other player/scrobblers like MooSync and Silicio they all work.
But my problem is song being duplicate.
Which made me “I wish Trakt could track my songs too!”. I will keep searching for solution and update if I find one.