Esempio n. 1
0
        // ----------------------------------------------------------------------------------------------------------------------------------------

        // Event when something wrong happens.
        private void Error(GenericEventArgs <Exception> e)
        {
            OnError?.Invoke(this, e);
        }
        // ----------------------------------------------------------------------------------------------------------------------------------------

        // Handler to manage errors during the process of TTS
        private static void ErrorHandler(object sender, GenericEventArgs <Exception> e)
        {
            Console.WriteLine("Unable to complete the TTS request: [{0}]", e.ToString());
        }
Esempio n. 3
0
        // ----------------------------------------------------------------------------------------------------------------------------------------

        // Event when the audio is available.
        private void AudioAvailable(GenericEventArgs <Stream> e)
        {
            OnAudioAvailable?.Invoke(this, e);
        }