.Net API contributed examples

DeepSpeechWPF

This examples demonstrates using the .Net Framework DeepSpeech NuGet to build a graphical Windows application using DeepSpeech

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
using CommonServiceLocator;
using DeepSpeech.WPF.ViewModels;
using System.Windows;

namespace DeepSpeechWPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow() => InitializeComponent();

        private void Window_Loaded(object sender, RoutedEventArgs e) =>
            DataContext = ServiceLocator.Current.GetInstance<MainWindowViewModel>();
    }
}

Full source code available under examples/net_framework/DeepSpeechWPF/.