You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

recordingResult.js 752B

123456789101112131415161718192021
  1. /* eslint-disable max-params */
  2. /**
  3. * This object stores variables needed around the recording of an audio stream
  4. * and passing this recording along with additional information along to
  5. * different processes
  6. */
  7. export default class RecordingResult {
  8. /**
  9. * @param blob the recording audio stream as a single blob
  10. * @param name the name of the person of the audio stream
  11. * @param startTime the time in UTC when recording of the audiostream started
  12. * @param wordArray the recorder audio stream transcribed as an array of Word objects
  13. */
  14. constructor(blob, name, startTime, wordArray) {
  15. this.blob = blob;
  16. this.name = name;
  17. this.startTime = startTime;
  18. this.wordArray = wordArray;
  19. }
  20. }