In criminal cases wherein the defendant has been declared indigent, the court may appoint an interpreter who is certified as provided in Section 9-21-73, when necessary, sworn truly to interpret, and allow him a reasonable compensation, as set by the court, payable out of the county treasury.