summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLTTSChunkFactory.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLTTSChunkFactory.m')
-rw-r--r--SmartDeviceLink/SDLTTSChunkFactory.m27
1 files changed, 27 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLTTSChunkFactory.m b/SmartDeviceLink/SDLTTSChunkFactory.m
new file mode 100644
index 000000000..c27983d3a
--- /dev/null
+++ b/SmartDeviceLink/SDLTTSChunkFactory.m
@@ -0,0 +1,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