@Dave *****
While you can obtain your Non-O visa in Thailand, your wife cannot apply for a follow-on, dependent Non-O visa in Thailand. So, you would need to obtain both your Non-O visas from a Thai Embassy or Consulate before arriving in Thailand. Not all are currently offering the Non-O dependent visa though. You would have to ask your Thai Embassy or Consulate.