SEMANTIC LIBRARY — SPEECH AI ENTITY ONTOLOGY
FLOW ALGEBRA COMPANION FORMALISATION | VERSION 1.0 | 03 NOVEMBER 2026
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/speech-and-audio-ai-entities/speech-ai-entity-ontology.html
SOURCE AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE COPYRIGHT: © Mark Anthony Higgins, 11 October 2025; revised 01 August 2026.
COMPANION FORMALISATION: Sky — Recursive AI
STATUS: Proposed companion model; not a verbatim extraction of the webpage's embedded formal specification, which was not exposed in accessible page text.
LICENCE: Refer to the applicable Kireth Research Open Research Licence; citation to source required.
01. PURPOSE
Represent a speech AI entity as a typed, bounded process mapping audio or speech-related inputs to auditable speech representations and outputs. Separate observation, inference, confidence, and authorised action.
02. ENTITY AND STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = input evidence: audio waveform, sample rate, channel map, timestamps, language hints, task instruction.
R_t = relations: contains_segment, precedes, spoken_by, corresponds_to_token, derived_from, aligned_with.
B_t = boundaries: consent, privacy, language, model capability, time range, compute budget, uncertainty limits.
K_t = knowledge: acoustic model, lexicon, tokeniser, language model, pronunciation and task rules.
E_t = (S_t, A_t, H_t, Q_t) where A_t is authorised action, H_t is provenance history and Q_t is quality evidence.
03. CORE FLOW ALGEBRA
Expand: E_t = expand(I_t, R_t)
Validate: V_t = {x in E_t | valid(x, B_t) = true}
Select: x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
Update: I_(t+1) = update(I_t, x*_t, feedback_t)
No admissible candidate: V_t = empty => abstain_or_request_clarification.
These are modelling operators; probability estimates require calibration and do not prove correctness.
04. TYPED ENTITIES
SpeechAIEntity(id, task, model_version, input_ref, output_ref, status)
AudioInput(id, codec, sample_rate_hz, channels, duration_s, provenance)
SpeechSegment(id, start_s, end_s, speaker_ref?, language?, audio_ref)
AcousticFeature(id, frame_range, feature_type, feature_vector)
PhoneticHypothesis(id, segment_ref, phoneme_sequence, score)
TranscriptHypothesis(id, segment_ref, token_sequence, score)
SpeakerCluster(id, segment_refs, confidence) — cluster labels are not personal identity claims.
SpeechOutput(id, output_type, payload_ref, timestamps?, confidence?, provenance)
QualityRecord(id, metric, value, evaluation_set, conditions)
05. PROCESS FLOW
Input acquisition -> format and consent validation -> preprocessing -> segmentation -> feature extraction -> model inference -> hypothesis decoding -> alignment -> quality assessment -> output publication or abstention.
F_0 = acquire(audio, metadata)
F_1 = validate(F_0, B_t)
F_2 = preprocess(F_1, sample_rate, channels, normalisation)
F_3 = segment(F_2, voice_activity_detector)
F_4 = encode_acoustics(F_3, K_t)
F_5 = decode_hypotheses(F_4, K_t)
F_6 = align_and_score(F_5, F_3)
F_7 = emit_or_abstain(F_6, B_t)
06. TASK-SPECIFIC PATHWAYS
ASR: waveform -> features -> token hypotheses -> timestamped transcript.
Language detection: acoustic evidence -> language hypotheses -> calibrated confidence or unknown.
Speaker diarisation: segments -> speaker clusters -> time-labelled turns; never equate clustering with verified identity.
Speech translation: transcript or direct speech representation -> target-language text/audio with provenance.
Text-to-speech: authorised text -> linguistic representation -> acoustic generation -> output audio; preserve text-to-audio provenance.
Speech enhancement: noisy waveform -> estimated cleaner waveform with distortion/artefact assessment.
07. FORMAL CONSTRAINTS AND VALIDATION
C1: sample_rate_hz > 0 and duration_s >= 0.
C2: for every segment, 0 <= start_s <= end_s <= duration_s.
C3: token timestamps, if present, lie within their parent segment.
C4: output_type belongs to declared task output schema.
C5: confidence is numeric in [0,1] only when its semantics are documented; uncalibrated model scores must be labelled scores.
C6: all outputs retain model_version and input provenance.
C7: unauthorised voice cloning, identity inference or private recording processing is blocked by policy boundaries.
C8: a low-quality or out-of-distribution input may trigger abstention, not fabricated words.
08. INFERENCE RULES
R1: valid_audio(x) AND speech_detected(x) => eligible_for_asr(x).
R2: speech_segment(s) AND decode(s,h) AND calibrated(h,c) AND c >= threshold => candidate_transcript(s,h).
R3: overlapping_speakers(s) => diarisation_uncertainty(s) AND review_flag(s).
R4: silence_or_noise_only(s) => do_not_invent_transcript(s).
R5: model_conflict(h1,h2) AND no_resolution => preserve_alternatives_or_abstain.
R6: output(o) => provenance(o) AND boundary_checked(o).
09. TRI-MAPPING
Physical / signal layer: pressure variation -> microphone waveform -> digital samples.
Computational layer: frames -> features/embeddings -> sequence hypotheses -> structured output.
Semantic layer: speech events -> words/utterances -> speaker turns -> meaning and task relations.
Mapping: audio_interval <-> feature_window <-> token_or_event_annotation.
No one-to-one guarantee: a sound may support multiple hypotheses and text may omit prosody.
10. RELATIONSHIP GRAPH
SpeechAIEntity --consumes--> AudioInput
AudioInput --contains--> SpeechSegment
SpeechSegment --produces--> AcousticFeature
AcousticFeature --supports--> TranscriptHypothesis
SpeechSegment --may_belong_to--> SpeakerCluster
TranscriptHypothesis --derived_into--> SpeechOutput
SpeechOutput --qualified_by--> QualityRecord
SpeechOutput --traceable_to--> AudioInput
11. EXECUTION DIAGRAM
[Audio / instruction]
|
[Validate provenance, consent, format]
|
[Segment and extract features]
|
[Generate speech hypotheses]
|
[Check confidence, alignment, constraints]
+-- insufficient evidence --> [Abstain / human review]
|
[Publish typed output with provenance]
|
[Receive feedback -> update state]
12. MAPPING TABLE
Input waveform | AudioInput | sample rate, channels, duration
Time-bounded speech | SpeechSegment | start/end and audio reference
Model representation | AcousticFeature | feature type and frame range
Recognised words | TranscriptHypothesis | tokens, score, language
Speaker turns | SpeakerCluster | non-identity cluster references
Final artefact | SpeechOutput | task type, payload, provenance
13. EXECUTION GUARANTEE (CONDITIONAL)
If inputs satisfy the declared schema, processing components terminate within their configured resource bounds, and every output passes C1-C8, the pipeline guarantees a structurally valid and provenance-linked result or an explicit abstention/error state. It does NOT guarantee transcription accuracy, speaker identity, semantic truth or safe use beyond the stated boundaries.
14. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/speech-and-audio-ai-entities/speech-ai-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/speech-and-audio-ai-entities/speech-ai-entity-ontology.html
PURPOSE: Search, classify, and reason over Speech AI Entity instances and relationships.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: SpeechAIEntity, AudioInput, SpeechSegment, AcousticFeature, PhoneticHypothesis, TranscriptHypothesis, SpeakerCluster, SpeechOutput, QualityRecord.
PATHWAYS: audio_to_transcript; audio_to_speaker_turns; text_to_speech; speech_to_translation; audio_to_events.
MINI_RECURSION_ENGINE: observe -> validate -> expand -> score -> select -> update; stop on completion, resource limit, or abstention.
INFERENCE_RULES: R1-R6.
CONFIDENCE: calibrated probability when available; otherwise raw score explicitly marked as uncalibrated.
SEMANTIC_EQUIVALENCE: speech recognition != speech comprehension; speaker cluster != verified identity; speech synthesis != source recording.
FLOW_HASH: compute SHA-256 from final UTF-8 bytes on publication; no unverified hash asserted.
UPDATE_MODEL: version changes require date, source revision, schema diff and revalidation.
15. HOW TO READ / IMPLEMENT
Treat each named entity as a typed node, each relation as an edge, and each rule as a bounded transition. Implement schema validation before inference, record evidence and provenance at each stage, and allow uncertainty/abstention as first-class outputs. This file is a proposed technical companion and should be checked against the complete source ontology before claiming exact formal equivalence.
Download Code
Copy to Clipboard