(1) In a trial to the court without a jury when a witness is sworn;(2) In a jury trial when the selection of the jury has been completed and the jury sworn.
Wis. Stat. § 972.07
See also the notes to Article I, section 8, of the Wisconsin Constitution.