Depositions of a witness residing out of the State may be taken before a judge or before a commissioner of deeds and depositions for this State, who resides within the State where the deposition is to be taken, or before a notary public of the place where such deposition is to be taken, or before any commissioned officer of the armed services or before any diplomatic or consular officer. The deposition of a non-resident witness who may be temporarily within the State, may be taken under the same rules which apply to the taking of depositions of other witnesses in the State.
Tex. Code Crim. Proc. § 39.09