What do you do to have your dog stop barking?

I’m getting a puppy that’s 9 weeks & it’s a chihuahua, i wanted a dachshunds but they’re too expensive for me right now lol but anyway I’m a college student so i’m scared of it barking a lot because i know they have a reputation of being yappers so what do you do to train it besides taking it out to pee possibly and stuff.
What do you do to have your dog stop barking?
Post Opinion