The depositions taken under the commission may be read in evidence by either party on the trial upon it being shown that the witness is unable to attend from any cause whatever, and subject to the same objections as if the witness were examined in court.