@speechly/browser-client
Version:
JavaScript client for Speechly Streaming API
8 lines (7 loc) • 640 B
TypeScript
import { TentativeTranscriptResponse, TranscriptResponse, TentativeEntitiesResponse, EntityResponse, IntentResponse } from '../websocket';
import { Word, Entity, Intent } from '../speechly';
export declare function parseTentativeTranscript(data: TentativeTranscriptResponse, timeOffset: number): Word[];
export declare function parseTranscript(data: TranscriptResponse, timeOffset: number): Word;
export declare function parseTentativeEntities(data: TentativeEntitiesResponse): Entity[];
export declare function parseEntity(data: EntityResponse): Entity;
export declare function parseIntent(data: IntentResponse, isFinal: boolean): Intent;