Inspects mp3 audio streams and searches for texts/words
using (var inspector = new Inspector("de-DE", "http://stream.radio7.de/stream7/livestream.mp3?context=fHA6LTE="))
{
inspector.SetWordsToRecognise("radio", "sieben", "verkehr", "rechnung", "wunsch");
inspector.OnTextRecognized += Inspector_OnTextRecognized;
inspector.Start();
Console.WriteLine("Press any key to exit");
Console.ReadLine();
inspector.Stop();
}
private static void Inspector_OnTextRecognized(object sender, SpeechRecognizedEventArgs e)
{
Console.WriteLine($"Recognized text: {e.Result.Text}, {e.Result.Confidence} {e.Result.Audio.AudioPosition}");
}