File

src/lib/myScript/input/text/textStartRequestWSMessage.ts

Description

WebSocket start text recognition message

Extends

AbstractStartRequestWSMessage

Constructor

constructor(obj: any)

Creates an instance of TextStartRequestWSMessage.

Parameters :
  • obj

    Recognition WebSocket message

Methods

getParameters
getParameters()

Get parameters

Returns: TextParameter
setParameters
setParameters(parameters: TextParameter)

Set parameters

Parameters :
Returns: void
getInputUnits
getInputUnits()

Get input units

Returns: TextInputUnit[]
setInputUnits
setInputUnits(inputUnits: TextInputUnit[])

Set input units

Parameters :
  • inputUnits
Returns: void

Properties

inputUnits
inputUnits: TextInputUnit[]
textParameter
textParameter: TextParameter
import { AbstractStartRequestWSMessage } from '../generic/abstractStartRequestWSMessage';
import { TextParameter } from './textParameter';
import { TextInputUnit } from './textInputUnit';

/**
 * WebSocket start text recognition message
 * 
 * @export
 * @class TextStartRequestWSMessage
 * @extends {AbstractStartRequestWSMessage}
 */
export class TextStartRequestWSMessage extends AbstractStartRequestWSMessage {
	textParameter: TextParameter;
	inputUnits: Array<TextInputUnit>;

	/**
	 * Creates an instance of TextStartRequestWSMessage.
	 * @param {any} [obj] Recognition WebSocket message
	 * 
	 * @memberof TextStartRequestWSMessage
	 */
	constructor(obj?) {
		super(obj);
	}

	/**
	 * Get parameters
	 *
	 * @method getParameters
	 * @returns {TextParameter}
	 */
	getParameters(): TextParameter {
		return this.textParameter;
	};

	/**
	 * Set parameters
	 *
	 * @method setParameters
	 * @param {TextParameter} parameters
	 */
	setParameters(parameters: TextParameter) {
		this.textParameter = parameters;
	};

	/**
	 * Get input units
	 *
	 * @method getInputUnits
	 * @returns {TextInputUnit[]}
	 */
	getInputUnits(): Array<TextInputUnit> {
		return this.inputUnits;
	};

	/**
	 * Set input units
	 *
	 * @method setInputUnits
	 * @param {TextInputUnit[]} inputUnits
	 */
	setInputUnits(inputUnits: Array<TextInputUnit>) {
		this.inputUnits = inputUnits;
	};

}

results matching ""

    No results matching ""