@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
1 lines • 1.13 kB
Source Map (JSON)
{"version":3,"sources":["src/sdk/Audio/PushAudioOutputStreamCallback.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,8BAAsB,6BAA6B;IAE/C;;;;;;OAMG;aACa,KAAK,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI;IAEpD;;;;;OAKG;aACa,KAAK,IAAI,IAAI;CAChC","file":"PushAudioOutputStreamCallback.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n/**\n * An abstract base class that defines callback methods (write() and close()) for\n * custom audio output streams).\n * @class PushAudioOutputStreamCallback\n */\nexport abstract class PushAudioOutputStreamCallback {\n\n /**\n * Writes audio data into the data buffer.\n * @member PushAudioOutputStreamCallback.prototype.write\n * @function\n * @public\n * @param {ArrayBuffer} dataBuffer - The byte array that stores the audio data to write.\n */\n public abstract write(dataBuffer: ArrayBuffer): void;\n\n /**\n * Closes the audio output stream.\n * @member PushAudioOutputStreamCallback.prototype.close\n * @function\n * @public\n */\n public abstract close(): void;\n}\n"]}