Open WebUI self-hosted speech-to-text and text-to-speech

Open WebUI can send voice input to a transcription server and read replies aloud from a speech server that you run, so audio stays inside your network. This page covers the method, prerequisites, setup sequence, checks and failure points.

On this page

Keeping voice input and output on your own servers in Open WebUI

If your team wants voice in chat without sending recordings to a cloud audio API, Open WebUI can be pointed at self-hosted, OpenAI-compatible speech-to-text and text-to-speech servers. The setup is configuration of endpoints, base URLs and credentials in Open WebUI's admin settings rather than custom code, so the work sits mainly in choosing and running the speech servers and in checking the data path. The speech server software is your team's decision, and you should confirm which servers are supported and which settings they need against the current Open WebUI documentation before you commit to one.

Speech-to-text sends the recorded audio from the browser through the Open WebUI backend to your transcription server, which returns text that is inserted into the prompt. Text-to-speech sends the reply text to your speech synthesis server, which returns audio for playback. Both paths carry user content, so the reader should trace them end to end: which hosts receive audio, whether recordings or generated audio are stored anywhere, what appears in Open WebUI and server logs, and whether any component falls back to a cloud provider when the local server is slow or unavailable. A misconfigured fallback is the most common way voice data leaves the network unnoticed, so test it deliberately.

Plan the work around three checks before rollout. First, confirm that each speech endpoint is reachable only from the Open WebUI backend and that its network path stays inside your infrastructure, including any reverse proxy. Second, confirm the audio formats, maximum recording length and model names your chosen servers accept, since mismatches show up as failed transcriptions rather than clear errors. Third, decide who may use voice features at all through the role and group permissions in Open WebUI. Cost is mostly your own compute and storage for the speech servers, plus internal or partner effort to configure and test them. Ask any partner for a written scope that lists the endpoints, the test cases and the retest.

What you need before connecting speech services

Voice input and output only stay on your servers if every piece of the path is in place before you change any setting. The cards below cover the Open WebUI deployment, the two speech servers, the network routes between them, and the certificates that let Open WebUI trust them.

A tested Open WebUI version

Pin the Open WebUI release your team has tested in a staging environment, and read the release notes before any upgrade. The latest published release at the time of writing is v0.12.3, but your team should confirm which version it runs and whether speech settings behave the same across the versions you plan to use. Record the version in your change log so a later upgrade can be compared against it.

Open WebUI releases

A transcription server with OpenAI-compatible routes

Speech-to-text needs a server that accepts audio uploads on an OpenAI-compatible transcription route and returns text. Confirm the request format, the accepted audio types, the maximum upload size, and the model names your server exposes, because Open WebUI expects those to match its settings. Check the current features documentation for the exact supported formats rather than relying on memory or older examples.

Open WebUI features

A text-to-speech server with a matching speech route

Text-to-speech needs a second server that accepts text and returns generated audio on an OpenAI-compatible speech route. Confirm the voice names, output formats and model identifiers it provides, and test them with the same client Open WebUI will use. Treat this server as a separate component with its own version, configuration and upgrade cycle, even if both run on the same host.

Open WebUI features

Network paths from Open WebUI to both servers

Open WebUI must reach the transcription and speech endpoints over a route your firewall rules allow, and those endpoints should not be reachable from the public internet. Map each path from the Open WebUI containers or pods, including any proxy or egress policy in between. Test from inside the Open WebUI runtime, not from your workstation, because a route that works from an admin laptop often fails from a pod network.

TLS certificates the Open WebUI host trusts

If the speech servers use HTTPS with a certificate from an internal certificate authority, the Open WebUI host must trust that authority, or requests fail during the TLS handshake. Install the root or intermediate certificate in the container or host trust store, and confirm renewal dates. Certificate errors in speech calls often look like generic connection failures, so check them early.

Capacity planning for the speech servers

Transcription and speech generation consume compute independently of chat, and their load depends on how many people use voice and how long their recordings run. Ask the speech server vendor or project for its hardware needs, concurrency limits and memory profile, then size the host for peak use rather than average use. Plan this as a separate capacity review, because a busy voice feature can slow the model servers that share the same hardware.

How a voice message travels through your network

The diagram starts in the user's browser, where a recording is sent to Open WebUI running on your servers. Open WebUI hands the audio to your transcription server, sends the text to your model server for a reply, and passes that reply to your speech server to produce audio. Everything inside the dashed company network boundary stays on infrastructure you control. Check that each speech and transcription setting points to an internal address and that no step falls back to a cloud audio API.

Voice input and output stay inside the company network when all speech endpoints are self-hosted.

When self-hosted speech suits sensitive data better

Patient consultations, client calls and case interviews often fall under confidentiality duties that specify where data may be processed and who may hold copies. Keeping transcription and speech synthesis on servers you control means audio never leaves your environment, which simplifies data processing agreements, data residency answers and the scope of your privacy and records reviews. Your compliance team can inspect the same servers that hold the rest of the regulated data.

  • Narrower data flow: Audio, transcripts and generated speech stay in the cluster or data center you already assess.
  • Logging you own: You decide what is retained, for how long and where access logs go.
  • Operational burden: Your team patches the speech server, rotates its credentials and handles capacity during peaks.
  • Model quality is your responsibility: Accuracy on domain terms, accents and noisy recordings must be tested on your own samples before rollout.
  • Capacity planning: Transcription load depends on concurrent sessions and recording length, so size the hardware from real call volumes.

Before approving this tab, confirm with your privacy and records teams which retention, residency and access rules apply to audio and transcripts, and check whether any recording is subject to stricter handling than text.

How to point Open WebUI at self-hosted speech endpoints

This sequence moves voice input and output from a cloud audio API to speech servers you run, with each server proven on its own before Open WebUI is pointed at it and access is limited to the groups that need it.

  1. Confirm the speech settings in current documentation

    Before writing anything down, the team lead or platform engineer checks the Open WebUI features documentation for the current names of the speech-to-text and text-to-speech settings, the engine options each one offers, and whether they are set in the admin area, through environment variables, or both. Setting names change between releases, so record the exact names and the Open WebUI version you tested against. Done when you have a short list of setting names and the release they were confirmed on, with the matching page reference saved next to it.

  2. Stand up the transcription server alone

    The platform or infrastructure engineer deploys the OpenAI-compatible transcription server on a host inside your network, with its own TLS, storage and resource limits, and without Open WebUI in the path. Confirm the server exposes the transcription route it documents and that it returns text for a request sent from an approved admin workstation. Done when a test transcription of a known short clip, with a phrase you wrote down in advance, returns that phrase with acceptable accuracy for your language and accents. Record the result, the model identifier the server reports, and the clip used.

  3. Stand up the speech synthesis server alone

    The same engineer deploys the OpenAI-compatible text-to-speech server on its own host or service, again tested directly before any connection to Open WebUI. Send a fixed sentence through the speech route and save the audio output. Done when the saved file plays correctly in a standard audio player, the voice name or model identifier the server reports is recorded, and the response time for the sentence is noted so you can compare it later with the figure seen in the chat interface.

  4. Record base URLs and model identifiers

    The platform engineer writes down the internal base URL for each server, the exact model identifiers and voice names each one accepts, the API key or header format if the server requires one, and the certificate authority that signs its TLS certificate. Store the API key in your approved secrets store, not in a shared document. Done when a single configuration record lists each endpoint, its identifiers, and its owner, and a second engineer has checked the entries against the direct tests from the previous two steps.

  5. Enter the speech settings in Open WebUI

    An administrator enters the transcription and speech endpoints, model identifiers, and keys in the location confirmed in the first step, either through the admin settings or the environment configuration your deployment uses. Keep the change under version control or in your change record so it can be reproduced after an upgrade or rebuild. Restart or reload as the documentation requires for the setting to take effect. Done when the Open WebUI server log shows no connection errors at startup and the settings page shows the values you recorded, with secrets masked.

  6. Test voice input and output from a browser

    A tester signs in as an ordinary user with the speech feature enabled and records the same known phrase used in the direct test, then checks that the transcribed text appears in the message box. Next, the tester asks the model for a short reply, plays it back, and confirms the audio is produced by your own speech server, which you can verify in the server logs or request traces. Repeat the test in two browsers. Done when both tests pass and the server logs show requests to your internal endpoints, not to an external audio API.

  7. Restrict the feature to approved groups

    The administrator uses Open WebUI's role and group controls to make voice features available only to the groups that need them, and confirms which permission controls the speech features in the current release. Then a user outside those groups signs in and confirms the voice controls are not offered. Record the group names and the test accounts used. Done when an approved user can use voice, an unapproved user cannot, and the access rule is written in your configuration record so it survives later changes to the group structure.

Which settings map to which speech server values

This table maps each Open WebUI speech setting to the value your speech server must supply, and names who should own and verify that value. Read it before configuration so the platform team, the speech server owner and security agree on each value before the first test call. Exact key names belong in the Open WebUI documentation check, not in this table.

Setting needValue to verify on the speech serverOwner
Speech-to-text base URLReachable OpenAI-compatible transcription endpoint inside your network, with TLS on any path that crosses a network boundaryPlatform team
Speech-to-text API key or tokenCredential issued by the speech server, scoped to transcription only, stored in your secrets managerSecurity
Transcription model nameExact model identifier the server exposes, confirmed by listing models from the server itselfSpeech server owner
Text-to-speech base URLReachable OpenAI-compatible speech endpoint, separate from transcription if the servers differPlatform team
Text-to-speech model and voiceModel and voice identifiers the server actually loads, with licensing terms for each voice confirmedSpeech server owner
Language handlingLanguages the transcription model supports, and whether language is auto-detected or set per deploymentSpeech server owner
Accepted audio formats and size limitsFormats the server decodes (for example WAV, MP3, WebM from browsers) and maximum upload length, matched to browser recording outputPlatform team
Data retention on the speech serverConfirmation that audio and transcripts are not stored or logged beyond the agreed period, and where logs goSecurity

Securing voice data on your own servers

Voice input is often more sensitive than typed chat, because recordings can capture names, health details, account numbers and internal discussions. The controls below cover who can use voice, where speech traffic travels, where credentials live and how long audio and transcripts persist. Each one is a decision your team owns, and each should be checked after the speech servers are connected.

Restrict voice to approved groups

Open WebUI's role-based access control uses groups and per-resource permissions, so voice input and output can be limited to the groups that need it rather than enabled for every signed-in user. Map the voice feature to a named group in your identity provider, then test with an account outside that group to confirm microphone and read-aloud controls are hidden or blocked. Document who approved the group and who can change its membership.

Open WebUI features

Keep speech endpoints off public networks

A transcription or speech server reachable from the internet widens the attack surface and can receive audio from anyone who finds the address. Confirm that the speech server's URL resolves only on your internal network, that no public DNS record or load balancer exposes it, and that outbound firewall rules allow Open WebUI to reach it and nothing else. Test from outside the network to confirm the connection fails.

Limit speech servers to the internal network

Place the transcription and text-to-speech services in the same private segment as Open WebUI, or in a segment with explicit allow rules between them. Restrict inbound connections to the Open WebUI host's address and block the speech server from initiating connections to external destinations, so audio cannot leave through a misconfigured container. Ask your network team to review these rules as part of the speech server change record.

Store speech API keys outside shared configuration

If the speech server requires an API key, keep it in a secrets store or in environment variables injected at runtime, not in the admin settings page where it is visible to administrators and may appear in exports or backups. Limit which service accounts can read the key, rotate it on a schedule your security team sets, and remove it from any previous configuration. Confirm the key does not appear in container logs during startup.

Set retention for audio and transcripts

Decide whether recordings are kept at all, and if so for how long, separately from chat history. Check where Open WebUI writes transcribed text, whether chat records keep it, and whether reverse proxy or application logs capture request bodies. Retention periods belong in your organization's own data policy, and the configuration should be tested by confirming old records are removed as the policy requires.

Review access and logging with hardening

Admin and user access controls, audit logging and proxy logging are covered by the broader Open WebUI hardening work, so voice should be reviewed in that pass rather than in isolation. Confirm which administrators can change speech settings, that changes are logged, and that log entries for voice requests record metadata without storing audio content. Ask the team responsible for logging to verify that retention settings in the log platform match your data policy.

How to test that audio stays on your network

The test plan has one goal: prove that every audio byte that leaves a browser goes only to the transcription and speech endpoints you control. Start with a fixed set of known audio samples, one per language your users speak, and run each through speech-to-text and text-to-speech with Open WebUI logging turned on. Record what Open WebUI logged for each request, including the endpoint it called and the response it returned. Then check the output against a reference transcript written by a human who speaks that language, and score the gap between them. Confirm the reference set covers accents, background noise and the file formats your users actually upload, because a clean sample will hide the failures that matter.

The network proof comes from outside the application. Use network flow logs from your cloud subnet or data center, or firewall counters on the egress rules, to show that the Open WebUI host opens connections only to the internal speech servers and the internal hosts you already allow. Run the same sample set with the speech servers' outbound access blocked to confirm that no fallback to a cloud audio API happens silently. Treat any connection to an external audio domain as a failed test, even when the transcript looks correct. Ask your team to confirm how the speech settings are stored in the deployment, since a value set in the admin panel can differ from one set by environment variable.

Failure behavior is the test most teams skip. Stop the speech server and send a voice request. Confirm that Open WebUI returns a clear error to the user, does not send the audio to any other service, and does not leave the request stuck in the interface. Repeat the test while the server is returning errors rather than being fully down. Repeat the whole plan after every Open WebUI upgrade and after every change to the speech server model, because either can alter request formats, default endpoints or the languages a model handles well. Keep the results with the change record so your security and compliance reviewers can see what was tested, when and against which versions.

Why voice input or playback fails and how to fix it

This table pairs each common speech failure in Open WebUI with its likely cause, the check that confirms it and the fix. Work down the rows in order when a user reports a problem, because the first checks (group permissions and server reachability) rule out the most common causes. Confirm each setting against your installed version, since exact admin menu names and environment variable names can differ between releases.

FailureLikely causeCheck that confirms itFix
Voice button missing for some usersVoice features are enabled for admins but the user's group or role does not have audio permissionCompare the user's group and permissions with an admin account in the admin settings, then review the group's permission listGrant the audio permission to the relevant group, then ask the user to sign out and back in
Transcription requests time outThe speech-to-text server is slow on first load, under-provisioned, or the model is too large for the hostCheck Open WebUI logs for timeout errors and time a direct request to the transcription endpoint with curl from the Open WebUI hostRaise the request timeout where your deployment allows it, add capacity to the speech server, or choose a smaller model
Certificate errors between Open WebUI and speech serversThe speech server uses a private or internal certificate authority that the Open WebUI container does not trustLook for TLS or certificate verification errors in Open WebUI logs and run openssl s_client against the speech server from the Open WebUI hostAdd the internal CA certificate to the Open WebUI container trust store, or use a correctly issued certificate on the speech server
Unsupported audio formatThe browser records a format, such as WebM or MP4 variants, that the speech server does not acceptUpload a sample file of the same format to the speech server with curl and read the error returned in the response bodyConfirm the formats your speech server accepts, then adjust the recording or conversion step to match
Wrong model or voice nameThe configured model or voice identifier does not match a name the speech server has loadedQuery the server's model list endpoint and compare the names with the values in the Open WebUI audio settingsCorrect the model or voice name in the admin audio settings and save, then test with a short phrase
Playback works for admins but not other groupsSpeech settings are stored per deployment, but a group's outbound or permission settings block the request, or the user's browser blocks autoplayTest as a user from the affected group, check logs for the request and any 401 or 403 responses, and compare group permissionsFix the group permission, then confirm the browser allows audio playback for the Open WebUI origin
Connection refused or DNS failureThe speech server address works from a laptop but not from the Open WebUI container networkRun a connectivity test from inside the Open WebUI container to the speech server address and portCorrect the base URL, container network or firewall rule, and use the internal service name where containers share a network

Questions teams ask before self-hosting Open WebUI speech

What does self-hosting Open WebUI speech cost?

The cost is the sum of infrastructure and effort, and no single price applies to every setup. Infrastructure includes the servers for the transcription and speech synthesis services, CPU or GPU capacity sized to your audio volume, storage, and network paths. Effort includes design, installation, connecting Open WebUI to the speech endpoints, testing voice input and output, and ongoing operation. Hardware is usually a one-time purchase or a recurring cloud charge, while maintenance, monitoring and upgrades recur. DeployOpen does not publish a price list. A quote follows from a written scope, so ask for line items that separate hardware, licenses, setup labor and recurring support, and ask what changes if your audio volume or number of users grows.

How long does a first working speech setup take?

The duration depends on the scope you agree, not on a fixed number. The main drivers are which speech engines you choose, whether the required servers and GPUs are already available, how much network access your security team must approve, and whether voice must work with single sign-on and access controls from the first day. A pilot with one speech server and a small group of users takes less time than a multi-replica deployment with monitoring. Ask any provider, including DeployOpen, for a timeline tied to a written scope with named milestones, and confirm the dependencies on your side, such as change approvals and hardware delivery.

What must our team supply for a speech server project?

Your team must supply the infrastructure, network access and an accountable owner before the build starts. Plan for these items:

  • Servers or virtual machines for the transcription and text-to-speech services, with CPU or GPU capacity matched to expected audio load
  • Storage for models, temporary audio files and logs, sized with your retention rules
  • Network paths from Open WebUI to the speech endpoints, and a decision on whether traffic stays inside a private network
  • Access to the Open WebUI admin settings and the identity provider, if single sign-on applies
  • A named owner who approves changes, receives alerts and decides on model and version updates

Confirm the exact hardware requirements with the speech server vendor, because they depend on the model you select.

Can our own engineers set up speech without a partner?

Yes, a capable internal team can do it, provided it has the skills and time to own the result. Open WebUI supports installation with Docker and Docker Compose, Kubernetes with Helm, and pip install open-webui followed by open-webui serve, so the base install follows familiar patterns. The harder parts are running an OpenAI-compatible speech server reliably, testing audio quality and latency, handling sensitive recordings correctly, and keeping the setup working through upgrades. If you run several replicas, Open WebUI also needs PostgreSQL, Redis and shared file storage, which adds operational scope. Before deciding, check whether your team can carry these responsibilities after the first working build.

How do Open WebUI upgrades affect the speech connection?

An upgrade can change how Open WebUI calls your speech endpoints, so treat each version change as a test event. Read the release notes for each version on the project's GitHub releases page before upgrading, and pin the version in your deployment files so upgrades happen on purpose. Keep a staging copy of your environment, then check microphone input, transcription accuracy, spoken replies and the stored speech settings after each upgrade. Keep your speech server's own version and model files in the same change record. Ask your provider how upgrades are tested and who signs off before production changes.

When is a self-hosted speech server not the right choice?

A self-hosted speech server is a poor fit when you cannot staff its operation, when your audio volume is too low to justify dedicated hardware, or when you need a managed service with contractual uptime terms that your team cannot provide. It can also be the wrong choice when your speech workload needs regional coverage that your own data centers cannot offer. In those cases, a managed speech service in a region that meets your data residency rules may suit you better. Compare the total of hardware, labor and recurring support against the managed option, and confirm the data handling terms of each provider with your compliance team.

Does voice data stay on our servers with self-hosted speech?

Voice data stays on your servers only if every component in the path runs in your infrastructure and you configure each one to keep it there. Audio travels from the browser to Open WebUI, then to the speech endpoints you configure. Check that the browser connection uses TLS through your reverse proxy, that the speech server does not send audio to outside services, and that temporary audio files are deleted on a schedule you set. Review Open WebUI and speech server logs for transcripts, and confirm that outbound requests from the Open WebUI host go only to approved destinations. Have your security team test the path before users rely on it.

How DeployOpen scopes and delivers a self-hosted speech integration

DeployOpen treats speech as one part of the Open WebUI service your organization runs in its own infrastructure. We start with a written scope that names the audio path, the models and the data each request touches, then build and hand over the speech servers and the Open WebUI settings that connect to them.

How we scope

  • The written scope lists which speech-to-text and text-to-speech servers will be connected and where each one runs.
  • We record which user groups get voice features and what audio data may be stored, logged or retained.
  • Engagements are fixed-scope, so deliverables, timelines and responsibilities are agreed in writing before work starts.

How we build

  • We deploy OpenAI-compatible transcription and speech servers inside your network and confirm each endpoint answers the requests Open WebUI sends.
  • We configure the Open WebUI audio settings, test with recorded samples in each supported language, and check that no audio leaves your environment.
  • We review outbound network rules and logging so audio payloads and transcripts are handled according to your data policy.

How we hand over

  • You receive the configuration, endpoint inventory, network rules and version list needed for your team to repeat the setup.
  • The handover includes test cases and results, plus a runbook covering restarts, model changes and failure behavior for voice requests.
  • We document the data flow for audio and transcripts so your security and compliance reviewers can assess it directly.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering speech servers and Open WebUI releases together.
  • Before each Open WebUI upgrade, we retest voice input and output so a release change does not break speech in production.
  • Support covers model or language changes, which should be confirmed with the speech server vendor and retested before rollout.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.