Q. How do I get my dog to stop barking? While Im home
A. This can be tough to conquer but the secret is to focus less on the actual barking and instead rewarding the dog when he's quiet. Create quiet activities like hiding food around the house and having to search for it, chewing a bone or playing with a toy. Even laying on his bed, or having a nap. Remind/reinforce that this is the behavior you are looking for.
Also use a stern NO when the dog is barking then try to get him to focus back on a quieter activity.
You may also need to address why the barking started. A frustrated dog will get themselves Into trouble. Is he getting enough exercise? This could be an area that needs addressed. Not enough exercise can create pent up energy which the dog expells as barking or other undesirable behavior.