Blog

    Building Voice to Text Into an EHR

    By GauravNovember 26, 20268 mins read
    On this page

    Clinicians have dictated notes for decades. What has changed is where the words land: straight into the EHR's note fields, during or right after the visit, instead of a transcription queue.

    This post is about building that dictation feature inside an EHR note editor. It covers how audio becomes text in the right field, how the clinician checks it before signing, and the decisions about vendors and audio that come with it. Ambient scribes that listen to the whole visit are a different product, covered in our AI clinical documentation post.

    What does it mean to build voice to text into an EHR?

    Adding dictation to an EHR you already run?

    Our EHR integration services cover how a speech feature reads and writes the note through the EHR's interfaces.

    Building voice to text into an EHR means a clinician presses a control, speaks, and sees the words appear in a chosen note field, ready to edit and sign. Agnotic Technologies builds this as a feature of the note editor: audio capture, a speech recognition service, field targeting and a review step that keeps the clinician in charge.

    The feature succeeds when it saves typing without adding a second place to check.

    How does audio become text in the right field?

    The flow has four parts, and each has its own failure point.

    • Capture: the browser or app records audio from the microphone the clinician chose, with a clear recording indicator.
    • Recognition: audio streams to a speech service that returns partial text while the clinician talks and final text when they stop.
    • Targeting: the text goes to the field that had focus when dictation started, not the one the cursor drifted to.
    • Review: inserted text is marked as dictated until the clinician edits or accepts it.

    Which vendor decisions come first?

    Most teams use a cloud speech service rather than training their own model. The vendor choice is a privacy decision before it is an accuracy one.

    A HIPAA covered entity may share protected health information with a business associate, such as a software vendor, only under a business associate agreement that commits the vendor to safeguard it.

    • Agreement: a business associate agreement before any patient audio reaches the service.
    • Medical vocabulary: whether the service has a medical model or accepts custom terms.
    • Data use: whether audio or text is kept or used to train the vendor's models, and whether you can turn that off.
    • Region: where audio is processed and stored.

    Where should audio and transcripts be kept?

    Decide this before launch. Many products keep no audio at all once the text is accepted, which removes a large store of sensitive data.

    The HIPAA Security Rule requires administrative, physical and technical safeguards for electronic protected health information.

    If you keep audio for quality review, encrypt it, limit who can play it, set a retention period and log every access. Our voice technology post covers recording and consent rules in more depth.

    How do you handle medical terms and commands?

    Recognition errors on drug names and dosages matter more than errors on ordinary words. Give the speech service the vocabulary your clinicians use, and keep a list of corrections clinicians make so you can see which terms keep failing.

    • Custom terms: drug names, local abbreviations and clinician names.
    • Spoken punctuation and commands: "new paragraph", "period" and "next field".
    • Numbers: format doses and vitals consistently, and flag any number the clinician did not review.

    What should the review step look like?

    The clinician signs the note, so the clinician must see exactly what was dictated. Highlight dictated text until it is reviewed, and do not allow signing while text is still streaming.

    Keep an undo for each dictation, so one bad recognition does not mean retyping the whole section.

    When a clinician signs, store which parts of the note were dictated and that they were reviewed. If a dictated dose is ever questioned, that record shows what the speech service produced and what the clinician accepted.

    Never let dictated text reach another system, such as an order, a letter or a patient summary, before the note is signed. Drafts stay inside the editor until a person has read them.

    Streaming or batch recognition?

    Streaming recognition shows words as the clinician speaks. Batch recognition sends a finished recording and returns the text once. Most note editors use streaming, because clinicians want to see the words land and correct them while the thought is fresh.

    • Streaming: fast feedback and natural correction, but sensitive to network drops and needs careful handling of partial text.
    • Batch: simpler and more tolerant of poor connections, but the clinician waits and reviews a longer block at once.
    • Hybrid: stream for display, then replace the text with a final pass when the recording ends, marking any words that changed.

    Whichever you choose, buffer audio on the device until the service confirms receipt. A dropped connection should pause the text, not lose the words.

    How should dictation work across devices?

    Clinicians dictate from desktops, laptops on carts and phones between rooms. Each brings its own microphone problems.

    • Desktop: let users pick and remember a preferred microphone, and show a level meter so a muted headset is obvious.
    • Mobile: request microphone permission only when dictation starts, and handle calls or alarms that interrupt recording.
    • Shared workstations: tie dictation settings and vocabulary to the signed-in user, not the machine.
    • Noisy rooms: test in a real clinic hallway, not only a quiet office.

    How should dictation fit into note templates?

    Dictation fits best in free-text sections and worst in coded fields. Decide per field whether speech is allowed, and design the template so a clinician can dictate a whole section without stopping.

    • Narrative sections: history of present illness, assessment and plan accept dictation directly.
    • Coded fields: problems, allergies and medications should stay as picks from a list, with dictation used only to search the list.
    • Short structured fields: vitals and scores can accept spoken numbers, but only with a visible check before the value is saved.
    • Smart phrases: let a spoken trigger insert the clinician's saved text, so dictation and templates work together rather than compete.

    Show which fields accept dictation with the same icon everywhere. Clinicians stop trusting the feature when a field silently ignores speech.

    How do you measure dictation quality?

    Measure what clinicians change, not what the vendor reports. A vendor's accuracy figure comes from its own test audio, while your clinicians speak your terms in your rooms.

    • Edit rate: how much dictated text is changed before signing, per field and per clinician.
    • Repeat corrections: terms corrected again and again, which belong in the custom vocabulary.
    • Abandoned dictations: recordings started and then deleted, often a sign of microphone or network trouble.
    • Time to sign: how long notes stay open after the visit, before and after the feature is turned on.

    Collect these without storing extra patient text. Counts and edit sizes are enough, and they keep the measurement out of the sensitive data store.

    Who looks after the feature after launch?

    A named product owner on the client side and an engineering owner on the build side. Speech features change even when your code does not, because the vendor updates its models.

    Keep a small set of recorded test phrases made by staff with no patient data, covering your hardest drug names and commands. Run it against the speech service on a schedule and after every vendor notice, and compare the output with the expected text before clinicians find the change.

    How should the rollout be planned?

    Roll out in stages, and decide in advance what result lets you move to the next one.

    • Stage 1: a few volunteer clinicians, one note type, with a feedback button on the dictation control.
    • Stage 2: fix the vocabulary and the top complaints, then add the rest of that specialty.
    • Stage 3: new specialties one at a time, each with its own vocabulary review.

    Give clinicians a short guide: how to start and stop, the spoken commands, and how to undo a dictation. Most early frustration comes from not knowing those three things.

    Failure points in EHR dictation projects

    • Wrong field: text inserted where the cursor moved during a long dictation.
    • Network drops: half a sentence lost when the connection blinks, with no warning shown.
    • Silent vendor changes: a model update that changes accuracy on your terms without notice.
    • Microphone mix-ups: the laptop microphone used instead of the headset.
    • No pilot measure: rollout without knowing how often clinicians correct the text.

    What are best practices for EHR voice to text?

    Pilot with a small group of clinicians in one specialty, measure how much they edit dictated text, and fix the vocabulary before widening the rollout. Show a clear recording state, recover from network loss without losing words, and keep the clinician's review as the last step before signing.

    How Agnotic can help

    Agnotic builds dictation into note editors and EHR integrations, including vendor selection, the streaming client, field targeting and the review flow. We usually start with one note type and one clinic, then extend once the correction rate is understood.

    Build EHR dictation with Agnotic

    We build the capture, recognition and review flow around your note editor.

    Related reading on Agnotic

    Ambient scribes, voice systems and clinical language processing.

    Sources

    Frequently Asked Questions

    It is a dictation feature in the note editor: the clinician speaks, a speech service turns the audio into text, and the text lands in the chosen field for review before signing.

    Talk to an engineer about your project

    Tell us which note type takes the most typing. We will scope dictation for it.