Class AudioBytesDetector
- Namespace
- Kuestenlogik.Bowire.Semantics.Detectors
- Assembly
- Kuestenlogik.Bowire.dll
Detects string-typed leaves whose base64 prefix decodes to bytes matching a known audio magic-number: WAV (RIFF + WAVE), Ogg (OggS), FLAC (fLaC), MP3 (ID3 tag or MPEG sync byte). Only the first 12 bytes are decoded — same bounded-work principle as ImageBytesDetector.
public sealed class AudioBytesDetector : IBowireFieldDetector
- Inheritance
-
AudioBytesDetector
- Implements
- Inherited Members
Remarks
Magic table:
- WAV — RIFF header at byte 0 + WAVE at byte 8.
- Ogg —
4F 67 67 53("OggS"). - FLAC —
66 4C 61 43("fLaC"). - MP3 —
FF FB/FF F3/FF F2MPEG frame sync, or an ID3v2 tag (49 44 33) at byte 0.
Constructors
AudioBytesDetector()
public AudioBytesDetector()
Properties
Id
Stable id used by logging + the future "registered detectors"
surface. Conventionally a dotted namespace
(kuestenlogik.wgs84-coordinate); not required to be a URI.
public string Id { get; }
Property Value
Methods
Detect(in DetectionContext)
public IEnumerable<DetectionResult> Detect(in DetectionContext ctx)
Parameters
ctxDetectionContext