
I have bearded collies known for thier barking usually when doing a task they get excited are very enthusiastic and of course bark ... ever heard the term..'barking beardies' typical of my breed .do your best to work the energy off in other ways,when in working mode.
Of course not the same as your breed (which I know nothing about) but I can only tell you what I do when my beardies bark during a class.
I work them during the lesson ie: sit , stand, down, wait so they dont have time to 'bark' as they are thinking about what instruction I am going to give next. If they are disturbing the class go off into a corner on your own rather than sitting trying to keep dog quiet give him something to do! down wait , stand , look at me , sit, walk around him in a circle so he watches you ..keep him busy then when he has calmed down continue with the class.
What I found with my dogs is that the trainer has to work slower to allow all dogs to take part some are easy learners some a little slower the dogs which bark are bored and need something to do while you wait for your turn.
I understand it must be so annoying for the other people in the class with an excited dog barking ....they are dogs and they all bark! just a case of accepting it. dont feel embarassed by your dog you are all their to learn every dog is different.
HTH
Roni