summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLTTSChunkFactory.m
blob: c27983d3af6f23c333c2920d7f39806d0f79827b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//  SDLTTSChunkFactory.m
//

#import "SDLTTSChunkFactory.h"

#import "SDLSpeechCapabilities.h"
#import "SDLTTSChunk.h"


@implementation SDLTTSChunkFactory

+ (SDLTTSChunk *)buildTTSChunkForString:(NSString *)text type:(SDLSpeechCapabilities *)type {
    SDLTTSChunk *ret = [[SDLTTSChunk alloc] init];
    ret.text = text;
    ret.type = type;

    return ret;
}

+ (NSMutableArray *)buildTTSChunksFromSimple:(NSString *)simple {
    if (simple == nil)
        return nil;

    return [NSMutableArray arrayWithObject:[SDLTTSChunkFactory buildTTSChunkForString:simple type:[SDLSpeechCapabilities TEXT]]];
}

@end