YSKVocalizer class

#import <YSKVocalizer.h>

The class is intended for single sessions of speech synthesis.

It manages the entire text-to-speech process, including producing audio, communicating with the server, and so on.

Instance methods

-cancel

Cancels the speech synthesis process.

-initWithText:

Creates a single-use text vocalizer.

-initWithText:language:

Creates a single-use text vocalizer.

-play

Starts sound playback.

-start

Launches the speech synthesis process.

Properties

Method descriptions

-cancel

- (void) cancel

Cancels the speech synthesis process.

-initWithText:

- (id) initWithText:(NSString *) text

Creates a single-use text vocalizer.

Parameters:
text

The text to convert to speech.

Returns:

Instance of the YSKVocalizer class for vocalizing text with the specified parameters.

-initWithText:language:

- (id) initWithText:(NSString *) text
language:(NSString *) language

Creates a single-use text vocalizer.

Parameters:
language

The recognition language in BCP 47 format: http://en.wikipedia.org/wiki/IETF_language_tag. In BCP 47 format, the language is indicated using the language code in ISO 639 format, followed by a dash (-), followed by the country code in ISO 3166-1 format. At this time, only ru-RU is supported.

text

The text to convert to speech.

Returns:

Instance of the YSKVocalizer class for vocalizing text with the specified parameters.

-play

- (void) play

Starts sound playback.

-start

- (void) start

Launches the speech synthesis process.

Property descriptions

delegate

(assign, readwrite) id< YSKVocalizerDelegate > delegate

text

(retain, readwrite) NSString * text