A person represented by legal counsel may in open court or by written instrument voluntarily waive the right to be accused by indictment of any offense other than a capital felony. On waiver as provided in this article, the accused shall be charged by information.
Tex. Code Crim. Proc. § 1.141