Skip to content

twenzel/AudioStreamTextInspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AudioStreamTextInspector

Build status NuGet Version License

Inspects mp3 audio streams and searches for texts/words

Usage

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}");
}

About

Inspects mp3 audio streams and searches for texts/words

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published