node-sdk
node-sdk copied to clipboard
TextToSpeechV1 is missing the plain synthesize method
The examples and API docs show TextToSpeechV1 having a plain synthesize method in addition to the synthesizeUsingWebSocket method but that seems to be missing:
import SynthesizeStream = require('../lib/synthesize-stream');
import GeneratedTextToSpeechV1 = require('./v1-generated');
declare class TextToSpeechV1 extends GeneratedTextToSpeechV1 {
constructor(options: any);
/**
* Repair the WAV header of an audio/wav file.
*
* @param {Buffer} wavFileData - Wave audio - will be edited in place and returned
* @return {Buffer} wavFileData - the original Buffer, with a correct header
*/
repairWavHeader: (wavFileData: any) => any;
/**
* Use the synthesize function with a readable stream over websockets
*
* @param {Object} params The parameters
* @return {SynthesizeStream}
*/
synthesizeUsingWebSocket(params: any): SynthesizeStream;
}
export = TextToSpeechV1;
The code you posted is from the helper file, not the file with the primary methods. The HTTP synthesize function is here and should be accessible.
Going to close this issue - please re-open if you are having trouble calling the method and we will help you out