summaryrefslogtreecommitdiff
path: root/SDL_iOS/SmartDeviceLinkProxy/Classes/SDLTTSChunkFactory.m
blob: fc1ded4cbf6de4b171b3ddb8e6c55e7910856706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Copyright (c) 2013 Ford Motor Company
//

#import "SDLTTSChunkFactory.h"

@implementation SDLTTSChunkFactory

+(SDLTTSChunk*) buildTTSChunkForString:(NSString*) text type:(SDLSpeechCapabilities*)type {		
	SDLTTSChunk *ret = [[[SDLTTSChunk alloc] init] autorelease];
	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