You will obtain a Latvian visa at any reputable Latvian travel agency. Some of these agencies even offer you a Latvian visa waiver, which means you do not need to pay any fees for obtaining the visa. These agencies can charge some fees, but should you end up in Latvian with no visa it is often possible to extend your stay by revealing evidence that you have an intention to return to the country.