diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln
index 28df5d3..73306e5 100644
--- a/PacticeSolution/PacticeSolution.sln
+++ b/PacticeSolution/PacticeSolution.sln
@@ -127,6 +127,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityFrameworkSample", "En
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaPlayer", "MediaPlayer\MediaPlayer.csproj", "{0E7DB4A2-B598-452B-B1B4-CF36685D0D53}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Speech", "Speech\Speech.csproj", "{248DDC0C-F8C0-4687-BBC2-71C7C310537E}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -381,6 +383,10 @@ Global
{0E7DB4A2-B598-452B-B1B4-CF36685D0D53}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E7DB4A2-B598-452B-B1B4-CF36685D0D53}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E7DB4A2-B598-452B-B1B4-CF36685D0D53}.Release|Any CPU.Build.0 = Release|Any CPU
+ {248DDC0C-F8C0-4687-BBC2-71C7C310537E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {248DDC0C-F8C0-4687-BBC2-71C7C310537E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {248DDC0C-F8C0-4687-BBC2-71C7C310537E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {248DDC0C-F8C0-4687-BBC2-71C7C310537E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/PacticeSolution/Speech/App.xaml b/PacticeSolution/Speech/App.xaml
new file mode 100644
index 0000000..2820b3a
--- /dev/null
+++ b/PacticeSolution/Speech/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/PacticeSolution/Speech/App.xaml.cs b/PacticeSolution/Speech/App.xaml.cs
new file mode 100644
index 0000000..acb5087
--- /dev/null
+++ b/PacticeSolution/Speech/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace Speech
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/PacticeSolution/Speech/AssemblyInfo.cs b/PacticeSolution/Speech/AssemblyInfo.cs
new file mode 100644
index 0000000..8b5504e
--- /dev/null
+++ b/PacticeSolution/Speech/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/PacticeSolution/Speech/MainWindow.xaml b/PacticeSolution/Speech/MainWindow.xaml
new file mode 100644
index 0000000..c4d83f5
--- /dev/null
+++ b/PacticeSolution/Speech/MainWindow.xaml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PacticeSolution/Speech/MainWindow.xaml.cs b/PacticeSolution/Speech/MainWindow.xaml.cs
new file mode 100644
index 0000000..67da365
--- /dev/null
+++ b/PacticeSolution/Speech/MainWindow.xaml.cs
@@ -0,0 +1,81 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Speech.Recognition;
+using System.Speech.Synthesis;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace Speech
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ private SpeechRecognitionEngine _speechRecognizer;
+
+ public MainWindow()
+ {
+ InitializeComponent();
+ InitInstance();
+ }
+
+ private async void InitInstance()
+ {
+ _speechRecognizer = new SpeechRecognitionEngine(new System.Globalization.CultureInfo("en-US"));
+ _speechRecognizer.LoadGrammar(new DictationGrammar());
+ _speechRecognizer.SpeechRecognized += _speechRecognizer_SpeechRecognized;
+ _speechRecognizer.SetInputToDefaultAudioDevice();
+ }
+
+ private void speechButton_Click(object sender, RoutedEventArgs e)
+ {
+ PromptBuilder promptBuilder = new PromptBuilder();
+ promptBuilder.AppendText("안녕하세요!");
+
+ PromptStyle promptStyle = new PromptStyle();
+ promptStyle.Volume = PromptVolume.Soft;
+ promptStyle.Rate = PromptRate.Slow;
+ promptBuilder.StartStyle(promptStyle);
+ promptBuilder.AppendText("저는 스피치 신디사이저입니다.");
+ promptBuilder.EndStyle();
+
+ promptBuilder.AppendText("오늘은");
+ promptBuilder.AppendTextWithHint(DateTime.Now.ToShortDateString(), SayAs.Date);
+ promptBuilder.AppendText(DateTime.Now.ToString("yyyy년 MM월 dd일 HH시 mm분 ss초 fff밀리세컨드"));
+
+ promptBuilder.AppendText("입니다. 이제부터 학습을 시작합시다.");
+ promptBuilder.AppendText("지금 바로", PromptEmphasis.Strong);
+ promptBuilder.AppendText("시작 합니다.");
+ promptBuilder.AppendTextWithHint("WPF", SayAs.SpellOut);
+ promptBuilder.AppendText("의 세계로!");
+
+
+ SpeechSynthesizer speechSynthesizer = new SpeechSynthesizer();
+ speechSynthesizer.Speak(promptBuilder);
+ }
+
+ private void recognizeButton_Click(object sender, RoutedEventArgs e)
+ {
+ if (recognizeButton.IsChecked == true)
+ _speechRecognizer.RecognizeAsync(RecognizeMode.Multiple);
+ else
+ _speechRecognizer.RecognizeAsyncStop();
+ }
+
+ private void _speechRecognizer_SpeechRecognized(object? sender, SpeechRecognizedEventArgs e)
+ {
+ recognizeBox.AppendText(e.Result.Text);
+ }
+ }
+}
diff --git a/PacticeSolution/Speech/Speech.csproj b/PacticeSolution/Speech/Speech.csproj
new file mode 100644
index 0000000..842b45a
--- /dev/null
+++ b/PacticeSolution/Speech/Speech.csproj
@@ -0,0 +1,14 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+
+
+
+
+
+
+