utility function to collate samples into batch for speech recognition.
(self, samples)
source not stored for this graph (policy: none)