You can get an Ed visa outside Thailand, but has to be from a university. Chiang Mai university has a Thai Language program that's about 32k a year, you have to attend class twice a week. Under the table Ed visas issued in country are around 45k-50k baht.