Created
October 24, 2021 20:57
-
-
Save anilkay/e652763b9d4cbfa850546ac83a98081c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async static Task SpeechSynthesis(SpeechConfig speechConfig) | |
| { | |
| speechConfig.SpeechSynthesisLanguage = "tr-TR"; | |
| speechConfig.SpeechSynthesisVoiceName = "tr-TR-EmelNeural"; | |
| using var synthesizer = new SpeechSynthesizer(speechConfig); | |
| while (true) | |
| { | |
| string speech = Console.ReadLine(); | |
| if (speech.ToLower().Contains("sentezi kapat")) break; | |
| await synthesizer.SpeakTextAsync(speech); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment