The magistrate may cause a record of the proceedings to be made and should do so when requested by the prosecuting attorney or the defendant or his counsel at least 48 hours prior to the time set for preliminary examination. The cost of preparation of such record shall be paid by the party requesting it. If neither party requests the record or the request is made by an indigent defendant, such costs shall be paid from the general fund of the county and taxed as costs in the case.
K.S.A. 22-2904