You need to check the local immigration office for requirements hand out for in-country initial visa application. Here is the general info by HQ but details are vary for local office.
************************************************************************************************************************************************
*******
/6.FOR-PROVIDING-SUPPORT-TO-OR-BEING-A-DEPENDANT-OF-A-THAI-CITIZEN-SPOUSE-VISA-NON-O.pdf