Getting Started
7 Lessons
Section
















When you prototype algorithms on the edge, deterministic fake data is usually easier than the real stream. You want the same shapes, timing, and quirks every run, without waiting on hardware, a live service, or unpredictable real-world input.
Weston Blieden (Mo3he) and Fred Juhlin (pandosme) both built open-source ACAP applications for voice transcription, that does live speech transcription directly on an Axis camera.

Image from Weston Blieden's (Mo3he) voice transcription app ("Axis-whisperer") with a live transcription overlay on the video stream.
Today, their applications mostly transcribe the words and output them as an overlay or to MQTT. From a privacy and legislation perspective (e.g. GDPR), shipping the full conversation off-device can be a problem. In many deployments you do not care about the actual dialogue. You care about the high-level picture and trends.
The FixedIT Data Agent is built to consume metadata streams from other services on the same camera. We can connect one of the transcription apps to the FixedIT Data Agent and process the transcript on the device. We can compare incoming words against simple category word lists for aggressive language, safety terms, work vocabulary, leisure, security terminology, or whatever fits our domain. We can keep counters and rates such as "14% of the words in the last minute matched the aggressive-language category." From there we can fire live triggers when a category spikes, or aggregate over hours, days, and months and send only anonymous statistics to a dashboard. The words can be scored, the counters updated, and the transcript can be discarded, keeping the solution privacy friendly
Building that mainly means Telegraf-style configuration and short script files. You do not need to recompile Fred's app; Since it is already writing all the transcribed text to the system log, we can use GROK parsers in exactly the same way as we did to parse detections from the YOLOv5 model in the "Video Analytics Performance Dashboards: Combining CV Metrics with AI-Driven Anomaly Detection and a Natural Language Chat Interface" article.
This guide is the first building block: a mock transcript input so you can develop those processors with repeatable fake speech chunks before wiring the live ACAP. The same idea of using simulated data for experimenting with algortihms was also described in the "From Overwhelming Data Streams to Meaningful Actions" article.
First, we will create a helper file called transcripts.txt with simulated transcription data. This file will be used as input instead of using the real voice transcriber app. The sample below includes bad cutoffs (mid-sentence breaks) and misheard words so you can test against imperfect live transcription:
Hello, welcome to to day's
meeting. We are going to discuss the
corkerly results. First, let's look at
revenue growth. Sales were up
twelve percent year over ear. Next, we will review
costumer retention metrics.
Any questions before we continue? Thank you
everyone, that concludes this segment.Create and save this file locally on your computer, then upload it in the FixedIT Data Agent's Configuration→Files tab by pressing Upload Helper File. Once uploaded, you can edit it directly in the device by pressing the expand arrow and then the Edit button.
Create a config file called simulate-transcript.conf. You can either create this file locally, or you can create it directly in the FixedIT Data Agent by pressing the Create Config button. Add the following content:
# Mock transcription input example.
#
# Read one line from the transcripts.txt file every 2 seconds.
# This simulates a live transcription.
# HELPER_FILES_DIR is set by the Data Agent to the helper file upload directory.
[[inputs.execd]]
command = ["sh", "-c", "while read l; do sleep 2; echo \"$l\"; done < ${HELPER_FILES_DIR:-.}/transcripts.txt"]
signal = "none"
data_format = "value"
data_type = "string"
value_field_name = "text"
name_override = "transcription"
# Output the transcription to stdout in JSON format.
[[outputs.file]]
files = ["stdout"]
data_format = "json"
metric_batch_size = 1Here is a concise breakdown of the configuration:
[[inputs.execd]] runs an external shell command and reads its stdout as a continuous stream. Live voice transcription is a triggered stream: chunks arrive when speech is recognized, not when Telegraf polls on a timer. The inputs.file plugin would be a poor fit here because it reads the whole file on an interval and cannot sleep between lines. execd lets us pace the lines ourselves to better simulate a live transcription input.
command specified the command that should be run: sleep two seconds, print one line from transcripts.txt, repeat. ${HELPER_FILES_DIR} is set by the FixedIT Data Agent to the helper-file upload directory, so the same path works after you upload transcripts.txt in the UI. The :-. fallback to the current directory is only for local host testing when that variable is unset.
signal = "none" means Telegraf does not send stop/restart signals to the process. The loop just keeps running.
data_format = "value" and data_type = "string" tell Telegraf that each line is a single string value and should not be parsed in any specific way.
value_field_name = "text" names that string field text instead of the default value.
name_override = "transcription" sets the measurement name. Downstream processors can namepass = ["transcription"]. When you later wire Fred's live ACAP, keep this name (and the text field) so you only replace the input side.
[[outputs.file]] with files = ["stdout"] writes metrics to the Standard Output section of the Data Agent Logs tab, which is useful while debugging.
data_format = "json" prints each metric as one JSON object per line. This is useful to expose all the metadata in the metric, not only the transcribed string itself.
metric_batch_size = 1 flushes each metric to the log immediately instead of waiting for the flush interval. This means that we will see the metric directly when it is produced.
When the shell reaches end-of-file, Telegraf restarts execd, so the mock transcript loops. That is convenient for demos and long-running processor tests.
After uploading the config file, make sure to disable the bundled config files and enable the newly uploaded file. The user interface should look similar to this:

Open the Logs tab. Every two seconds a JSON metric named transcription should appear on Standard Output, with the transribed chunk in the text field:

This guide showed how to simulate a live transcript stream in the FixedIT Data Agent with a helper text file and a short inputs.execd loop. That gives you a deterministic input for prototyping on-device speech analytics (category word lists, counters, anonymous stats) before connecting a real transcription ACAP such as Fred Juhlin's Voice-Transcript.
Once the processors look right, replace only the input plugin. Keep the same measurement name (transcription) and field (text), and point the pipeline at the live metadata from the transcription app.