Topics

[espeak-ng:master] new issue: Add s16le option to output raw audio data without WAV headers #github


espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Issue Created by guest271314:
#832 Add s16le option to output raw audio data without WAV headers

s16le is printed twice in this repository AUDIO_OBJECT_FORMAT_S16LE within src/libespeak-ng/speech.c.

Add --s16le option to output raw audio data without WAV headers .

This will allow for processing of audio output by Web Audio API in JavaScript at the browser without the need to slice

Uint16Array(ab.slice(44))

or skip

let i = 0;
if (!init) {
  init = true;
  i = 44;
}
for (; i < value.buffer.byteLength; i++, readOffset++, totalBytes++) {
  uint8_sab[readOffset] = value[i];
}

WAV headers set at initial 44 bytes of audio output by espeak-ng.