1 package com.smartdevicelink.proxy;
\r
3 import java.util.Vector;
\r
5 import com.smartdevicelink.proxy.rpc.TTSChunk;
\r
6 import com.smartdevicelink.proxy.rpc.enums.SpeechCapabilities;
\r
8 public class TTSChunkFactory {
\r
10 public static TTSChunk createChunk(SpeechCapabilities type, String text) {
\r
11 TTSChunk ret = new TTSChunk();
\r
17 public static Vector<TTSChunk> createSimpleTTSChunks(String simple) {
\r
18 if (simple == null) {
\r
22 Vector<TTSChunk> chunks = new Vector<TTSChunk>();
\r
24 TTSChunk chunk = createChunk(SpeechCapabilities.TEXT, simple);
\r
29 public static Vector<TTSChunk> createPrerecordedTTSChunks(String prerecorded) {
\r
30 if (prerecorded == null) {
\r
34 Vector<TTSChunk> chunks = new Vector<TTSChunk>();
\r
35 TTSChunk chunk = createChunk(SpeechCapabilities.PRE_RECORDED, prerecorded);
\r