The order must direct that the examination be taken before a magistrate named therein or upon agreement of both the state and defendant before a certified court reporter. The defendant must be present for the examination to proceed, unless the presence of the defendant is waived by both parties.
Okla. Stat. tit. 22, § 766