예제 #1
0
        public RHVoice()
        {
            var config = new RHVoiceInitParams();

            config.Callbacks              = new RHVoiceCallbacks();
            playSpeechCallbackDelegate    = playSpeech;
            config.Callbacks.OnPlaySpeech = playSpeechCallbackDelegate;
            engine = NativeMethods.RHVoice_new_tts_engine(config);
            if (engine == IntPtr.Zero)
            {
                throw new Exception("RHVoice initialization error");
            }
        }
 public static extern IntPtr RHVoice_new_tts_engine(RHVoiceInitParams initParams);