Should I ask my teacher before using speech-to-text software?
Yes.

It is always polite to ask anyone for permission before acting towards them in a way that clearly differs from what is generally taken as the norm. 

I'm curious what you see as the argument against doing so, given you ask about etiquette.