-
Notifications
You must be signed in to change notification settings - Fork 8
Home
This project originated when we discovered the Google speech-to-text API supported speex but would not accept any of our files. After a little investigation, the Chromium sourcecode provided a hint about the unsupported MIME-type being used by google and we implemented the binary format in speexenc and speexdec for fellow pioneers and curious users out there.
###Usage:
% speexenc --headerbyte --vbr --w --quality 3 input_file_16bit.wav compressed_file.spxh
% speexdec --headerbyte compressed_file.spxh decompressed_file.wav
To test encoded speex against gapi:
% curl --data-binary @compressed_file.spxh --header 'Content-type: audio/x-speex-with-header-byte; rate=16000' 'https://www.google.com/speech-api/v1/recognize?client=chromium&lang=en-US&maxresults=2'
A link to the original QXIP wiki post: SIP-SIR