Federal Rules of Criminal Procedure - Rule 26. Taking Testimony
From Criminal Defense Wiki
In every trial the testimony of witnesses must be taken in open court, unless otherwise provided by a statute or by rules adopted under 28 U.S.C. 2072-2077.