Skip to content

A short tip for changing the export settings in Say.js

Michel Reij edited this page Oct 22, 2016 · 1 revision

The export works nicely with Say on the Mac, but the current bit depth (32) and sampling frequency (32000) are a bit exotic for my purpose: an antique telephone repurposed with a Raspberry Pi Zero and a simple usb sound dongle. I modified the export settings locally to export with more traditional settings of 16bit, 44.1kHz:

        //commands.push('-o', filename, '--data-format=LEF32@32000');
        commands.push('-o', filename, '--data-format=LEI16@44100');

This is in index.js, around line 128. I had to replace the (F)loating parameter with (I)nteger as well.

Clone this wiki locally