microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
7 lines (6 loc) • 340 B
TypeScript
import { ConnectionMessage } from "./ConnectionMessage.js";
import { RawWebsocketMessage } from "./RawWebsocketMessage.js";
export interface IWebsocketMessageFormatter {
toConnectionMessage(message: RawWebsocketMessage): Promise<ConnectionMessage>;
fromConnectionMessage(message: ConnectionMessage): Promise<RawWebsocketMessage>;
}