DataRecognitionClientWithIntent Class Reference

Inherits from DataRecognitionClient : Conversation : NSObject
Declared in DataRecognitionClientWithIntent.mm
SpeechRecognitionService.h

Overview

The Azure Intelligent Services API client to perform speech and intent recognition from a buffered data source (e.g. a file or Bluetooth audio source).

Data is broken up into buffers and each buffer is sent to the speech recognition service. No modification is done to the buffers; if silence detection is required, it must be performed in an external pre-processing pass over the data. The audio data must be PCM, mono, 16-bit sample, with sample rate of 16000 Hz.

Returns both speech recognition results *and* structured intent results (see [https://LUIS.ai](https://LUIS.ai)).

– initWithSpeechRecoParams:withProtocol:

Initializes a speech recognition client that uses the buffered data as the input source.

- (id)initWithSpeechRecoParams:(AdmRecoOnlyPreferences *)prefs withProtocol:(id<SpeechRecognitionProtocol>)delegate

Parameters

prefs

A set of preferences used to configure the speech service.

delegate

The speech recognition protocol callback

Return Value

The speech and intent recognition client

Discussion

Initializes a speech recognition client that uses the buffered data as the input source.

Callers are responsible for acquiring the audio data and writing that data to input streams. The data is split into buffers; each buffer is sent to the speech recognition service. No modification is done to the buffers; silence detection must be performed by an external algorithm before calling any methods to write data to the service. The service returns speech recognition results *and* structured intent results. The audio must be PCM, mono, 16-bit sample, with sample rate of 16000 Hz.

The service returns structured intent results in JSON form (see [https://LUIS.ai](https://LUIS.ai)).

Declared In

DataRecognitionClientWithIntent.mm