// SDLTTSChunk.h // #import "SDLRPCMessage.h" #import "SDLSpeechCapabilities.h" /** * Specifies what is to be spoken. This can be simply a text phrase, which SDL will speak according to its own rules. It can also be phonemes from either the Microsoft SAPI phoneme set, or from the LHPLUS phoneme set. It can also be a pre-recorded sound in WAV format (either developer-defined, or provided by the SDL platform). * * In SDL, words, and therefore sentences, can be built up from phonemes and are used to explicitly provide the proper pronounciation to the TTS engine. For example, to have SDL pronounce the word "read" as "red", rather than as when it is pronounced like "reed", the developer would use phonemes to express this desired pronounciation. * * For more information about phonemes, see http://en.wikipedia.org/wiki/Phoneme. * * Parameter List * * * * * * * * * * * * * * * * * * * *
NameTypeDescriptionSmartDeviceLink Ver. Available
textStringText to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the "type" field.SmartDeviceLink 1.0
typeSpeechCapabilitiesIndicates the type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). SmartDeviceLink 1.0
* * @since SmartDeviceLink 1.0 */ NS_ASSUME_NONNULL_BEGIN @interface SDLTTSChunk : SDLRPCStruct - (instancetype)initWithText:(NSString *)text type:(SDLSpeechCapabilities)type; + (NSArray *)textChunksFromString:(NSString *)string; + (NSArray *)sapiChunksFromString:(NSString *)string; + (NSArray *)lhPlusChunksFromString:(NSString *)string; + (NSArray *)prerecordedChunksFromString:(NSString *)string; + (NSArray *)silenceChunks; /** * @abstract Text to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the "type" field. * * Required, Max length 500 */ @property (strong, nonatomic) NSString *text; /** * @abstract The type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound). * * Required */ @property (strong, nonatomic) SDLSpeechCapabilities type; @end NS_ASSUME_NONNULL_END