In today's software development ecosystem, efficiently and privately processing audio has become a frequent requirement, especially in environments where sensitive data cannot leave the local infrastructure. A few months ago, we faced the challenge of transcribing long recorded meetings without relying on cloud services that could compromise confidentiality or generate high recurring costs. The solution was to build a fully local pipeline using Node.js and Whisper, OpenAI's speech recognition model optimized for offline execution. This approach not only saved us between $50 and $100 per month in third-party APIs, but also gave us complete control over the data. At Q2BSTUDIO, as a company specialized in custom software development and technology solutions, we believe this architecture can be replicated and adapted to multiple business scenarios.
The pipeline is structured in three main stages: audio ingestion and normalization, transcription with Whisper, and post-processing to generate SRT subtitles and store the results in a local database. Everything runs in Node.js, using lightweight libraries and child processes to invoke external tools like FFmpeg and whisper.cpp. This separation allows each stage to be replaceable or scalable according to project needs. For example, if the audio volume is very high, you can parallelize processing with work queues or even integrate AI agents that act on the transcriptions to extract insights or generate automatic summaries.
The first stage normalizes the audio to 16 kHz, mono, WAV format with 16-bit depth, which is the format Whisper expects for best results. We use FFmpeg from Node.js via the execa library, giving us fine control over conversion parameters. This step is crucial because low-quality files or compressed formats (such as MP3 or AAC) can significantly degrade transcription accuracy. Furthermore, normalization ensures that the model receives consistent signals regardless of the audio source: laptop microphone, Zoom recording, or podcast file.
The second stage runs the whisper.cpp binary as a child process. whisper.cpp is a C++ implementation of the Whisper model, optimized for CPUs and GPUs without the need for heavy libraries like PyTorch. We selected the 'base' model as the sweet spot between speed and accuracy. In internal tests with a Ryzen 5 5600X and an RTX 3060, the base model transcribes one minute of audio in about 7.8 seconds, with a word error rate (WER) of 6.7%, which is more than acceptable for business applications. If greater accuracy is needed (e.g., for legal transcriptions), one can scale to 'medium' or 'large' models at the cost of more processing time and VRAM consumption. This flexibility is key when integrated into cybersecurity systems, where every word can be relevant, or in BI solutions that extract metrics from customer service conversations.
The third stage saves the transcription to an SQLite database using the better-sqlite3 library, which offers zero-configuration persistence and excellent performance for moderate volumes. We store the full text, audio duration, model used, SRT content for subtitles, and creation date. With a descending index on date, we can perform fast searches over the text content, allowing, for example, to locate all meetings where a key term like 'budget' or 'contract' was mentioned. This functionality can be extended with Business Intelligence (BI) tools like Power BI to generate dashboards tracking recurring themes. At Q2BSTUDIO we offer BI services that connect local or cloud databases with interactive visualizations, and this kind of pipeline is an excellent starting point to feed those dashboards with transcribed audio data.
One of the biggest benefits of keeping all processing local is privacy. Data never leaves the company network, complying with strict cybersecurity requirements and regulations like GDPR. For organizations handling sensitive client information, such as in the legal or healthcare sector, this architecture is ideal. Additionally, by not relying on external APIs, there are no rate limits or recurring costs, making it horizontally scalable without billing surprises. If the company needs to process hundreds of hours of audio per day, it can be deployed on dedicated GPU machines or even on cloud instances from AWS or Azure, configured with high compute capacity and without sending data to third-party services. At Q2BSTUDIO we help companies migrate and optimize their cloud infrastructures, whether on AWS or Azure, ensuring security and performance are aligned with business objectives.
To launch the pipeline, you only need Node.js, FFmpeg, and whisper.cpp binaries. A simple setup script downloads the base model from Hugging Face and compiles whisper.cpp. Then a Node.js function orchestrates the entire flow: it receives an audio file, normalizes it, launches transcription, and saves the result. We have tested with recordings up to one hour and it runs stably, although for very long files we recommend splitting the audio into 10-15 minute segments to avoid memory issues. This modular approach also allows adding advanced features, such as speaker diarization (who said what) or real-time transcription via WebSockets, as we have internally developed.
The technology behind this pipeline is not limited to meeting transcription. The custom software applications we develop at Q2BSTUDIO can integrate this speech-to-text engine for multiple use cases: from virtual assistants that take automatic notes to sentiment analysis systems in sales calls. Combined with AI agents, the transcribed text can be processed to generate executive summaries, classify support tickets, or extract structured data. For example, an AI agent could review all day's transcriptions and notify the team if it detects words related to recurring complaints. These capabilities are enhanced when integrated with cloud solutions, allowing processing to scale without losing original data privacy.
If your organization is considering implementing a local transcription system, we recommend starting with this pipeline and then customizing it to your needs. The key is modularity: you can change the Whisper model, add a cloud synchronization service for backup, or connect the SQLite database to a BI system for further analysis. At Q2BSTUDIO we offer consulting and development of custom software that covers everything from initial architecture to production deployment, including integrations with artificial intelligence, cybersecurity, and process automation. Feel free to contact us to explore how we can help you transform your audio data into actionable information.





