public UniRecogTermination(UniMRCPClientSession sess, string pcmFile) : base(sess) { switch (streamType) { case StreamType.FRAME_BY_FRAME: stream = new UniRecogStreamFrames(pcmFile); break; case StreamType.BUFFERED: stream = new UniMRCPStreamRxBuffered(); break; case StreamType.MEMORY: byte[] data = File.ReadAllBytes(pcmFile); stream = new UniMRCPStreamRxMemory(data, true, UniMRCPStreamRxMemory.StreamRxMemoryEnd.SRM_NOTHING, true); break; case StreamType.FILE: stream = new UniMRCPStreamRxFile(pcmFile, 0, UniMRCPStreamRxMemory.StreamRxMemoryEnd.SRM_NOTHING, true); break; } }
public UniSynthTermination(UniMRCPClientSession sess, string outFile) : base(sess) { stream = new UniSynthStream(outFile); }