-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTextToSpeech.cs
40 lines (37 loc) · 1.35 KB
/
TextToSpeech.cs
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
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SoftwareTelephone
{/*
abstract public class TextToSpeech : PluginApplication
{
protected string mOutputLocation;
public TextToSpeech(string setName, string setApplicationLocation, string setOutputLocation)
: base(setName, setApplicationLocation)
{
mOutputLocation = setOutputLocation;
}
override public string doProcess(string Input)
{
return doTextToSpeech(Input);
}
virtual public string doTextToSpeech(string Input)
{
System.Diagnostics.Process runApplication = new System.Diagnostics.Process();
runApplication.StartInfo = new System.Diagnostics.ProcessStartInfo(mApplicationLocation, buildParameters(Input));
runApplication.StartInfo.UseShellExecute = false;
try
{
runApplication.Start();
runApplication.WaitForExit();
}
catch (Exception E)
{
System.Windows.Forms.MessageBox.Show(E.Message, "Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
return mOutputLocation;
}
abstract public string buildParameters( string Input );
}*/
}