Documentation
¶
Index ¶
Constants ¶
View Source
const ( ShortBeep soundType = iota LongBeep ShortDelay )
View Source
const ( DefaultDitDuration = time.Millisecond * 60 MorseWordSeparator = '/' CharGapMinimum = 3 )
Variables ¶
View Source
var ( AudioFormat = beep.Format{ SampleRate: 24_000, NumChannels: 2, Precision: 2, } SoundEndDelaySamples = AudioFormat.SampleRate.N(DefaultDitDuration) )
View Source
var MorseCodeLookup = map[rune]string{
'a': ".,",
'b': ",...",
'c': ",.,.",
'd': ",..",
'e': ".",
'f': "..,.",
'g': ",,.",
'h': "....",
'i': "..",
'j': ".,,,",
'k': ",.,",
'l': ".,..",
'm': ",,",
'n': ",.",
'o': ",,,",
'p': ".,,.",
'q': ",,.,",
'r': ".,.",
's': "...",
't': ",",
'u': "..,",
'v': "...,",
'w': ".,,",
'x': ",..,",
'y': ",.,,",
'z': ",,..",
}
Functions ¶
Types ¶
type TrainingModel ¶
Click to show internal directories.
Click to hide internal directories.