A C# program that uses NAudio to analyze an audio file and decode the detected morse signal. Currently not particularly tolerant of noise.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
574 B

using System;
using System.Collections.Generic;
using SBRL.Algorithms.MorseCodeTranslator;
namespace MorseCodeParser
class MainClass
public static void Main(string[] args)
AudioMorseDecoder decoder = new AudioMorseDecoder(args[0]);
List<string> morseWords = decoder.ExtractWords(true);
Console.WriteLine("Decoded morse code:");
Console.WriteLine(string.Join("\n", morseWords));
Console.WriteLine("Deciphered text: {0}", MorseDecoder.TranslateText(morseWords));