Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wave16kFilePaths"/> class.
 /// Construction of 16k Hz waveform file path manager.
 /// </summary>
 /// <param name="outer">Voice font instance.</param>
 internal Wave16kFilePaths(VoiceFont outer)
 {
     this.outer = outer;
 }
        /// <summary>
        /// Load voice font from XML DOM object.
        /// </summary>
        /// <param name="configDom">Configuration DOM object.</param>
        private void Load(XmlDocument configDom)
        {
            _voiceFonts.Clear();

            foreach (XmlNode node in
                configDom.SelectNodes("checker/datasettings/datasetting"))
            {
                VoiceFont dm = new VoiceFont(this._dummyForm.Handle);
                dm.ParseConfig((XmlElement)node);

                VoiceFonts.Add(dm.TokenId, dm);
            }

            // Start a another thread to load data
            if (_dataLoading != null && !_dataLoading.IsAlive)
            {
                _dataLoading.Abort();
            }

            _dataLoading = new Thread(new ThreadStart(DoLoadDatabase));
            _dataLoading.SetApartmentState(ApartmentState.STA);

            // _dataLoading.Priority = ThreadPriority.BelowNormal;
            _dataLoading.Start();
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SegmentFilePaths"/> class.
 /// Construction of segmentation file path manager.
 /// </summary>
 /// <param name="outer">Voice font instance.</param>
 internal SegmentFilePaths(VoiceFont outer)
 {
     this.outer = outer;
 }