It is possible, but i dont recommend this. The (most) official way of creating a Teamspeak3 MusicBot would be to run a client on your server which has a plugin installed which allows you to play music (more or less a soundboard). Sinusbot is exactly built this way. However, I advise you to tie in with existing projects. Doing this by yourself takes a lot of time.