When a defendant has been held to answer a charge for a public offense, the defendant or the State of Oklahoma may either before or after indictment or information, have witnesses examined conditionally on his behalf as prescribed in this article, and not otherwise.
Okla. Stat. tit. 22, § 761