FromFile() public static method

Obtain speech config from a file. If If the file name is not supplied the the default path of Constants.Data_DIR\speech.json is used
public static FromFile ( string filename = null ) : SpeechServiceConfiguration
filename string
return SpeechServiceConfiguration
Beispiel #1
0
 private SpeechService()
 {
     configuration = SpeechServiceConfiguration.FromFile();
     Logging.Debug("Current UI culture is " + Thread.CurrentThread.CurrentUICulture.Name);
     // Set the culture for this thread to the installed culture, to allow better selection of TTS voices
     Thread.CurrentThread.CurrentUICulture = new CultureInfo(CultureInfo.InstalledUICulture.Name);
     Logging.Debug("Thread UI culture is " + Thread.CurrentThread.CurrentUICulture.Name);
 }
Beispiel #2
0
 private SpeechService()
 {
     Configuration = SpeechServiceConfiguration.FromFile();
 }
Beispiel #3
0
 public void ReloadConfiguration()
 {
     configuration = SpeechServiceConfiguration.FromFile();
 }