§ 319. Taking of hearings by official stenographer. Upon any hearing provided for in article one hundred seventy or article one hundred eighty of the criminal procedure law, by or before any local criminal court by which an official stenographer shall have been appointed, under provision of law therefor, stenographic minutes of the hearing shall be taken by such stenographer. Where the defendant is charged with a felony and is either held for the action of a grand jury or not so held, upon the request of the district attorney a copy of such stenographic minutes, notwithstanding the provisions of any other law, shall be furnished by such official stenographer to the district attorney of the county. Such stenographer shall be compensated at the rate prescribed by the civil practice law and rules, and such compensation shall be a county charge.