<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ofer Fryman on Medium]]></title>
        <description><![CDATA[Stories by Ofer Fryman on Medium]]></description>
        <link>https://medium.com/@frymanofer?source=rss-cbedbf4f2f30------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zGe70pmwBD6_koJuzyveFQ.jpeg</url>
            <title>Stories by Ofer Fryman on Medium</title>
            <link>https://medium.com/@frymanofer?source=rss-cbedbf4f2f30------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:14:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@frymanofer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Build an On-Device Voice-to-Voice AI Agent in React Native]]></title>
            <link>https://medium.com/@frymanofer/how-to-build-an-on-device-voice-to-voice-ai-agent-in-react-native-602c9a07e160?source=rss-cbedbf4f2f30------2</link>
            <guid isPermaLink="false">https://medium.com/p/602c9a07e160</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[voice-assistant]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ofer Fryman]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 14:32:47 GMT</pubDate>
            <atom:updated>2026-11-17T10:31:17.728Z</atom:updated>
            <content:encoded><![CDATA[<h4>Wake word, speaker verification, speech-to-text, a local LLM with tool calling and on-device TTS — offline, private and with no cloud token bill. Architecture, real code, and what we learned shipping it.</h4><p>We’ve spent the past year helping teams like Volkswagen, Verbali and LunaFit ship voice agents that run entirely on the phone. This is what we learned building a full voice-to-voice agent in React Native, from the wake word to the spoken reply.</p><p><strong>Why this matters for cost:</strong> <a href="https://davoice.io/blog/voice-ai-without-token-bill">Voice AI Without a Token Bill</a></p><p>I’m the founder of DaVoice, and I drafted this guide with AI help, which fits the subject. Our example app ships how-to files (<a href="https://github.com/frymanofer/ReactNative_DaVoice/blob/main/example/englishHowTo.md">englishHowTo.md</a> and <a href="https://github.com/frymanofer/ReactNative_DaVoice/blob/main/docs/AI_AGENT_INTEGRATION_GUIDE.md">AI_AGENT_INTEGRATION_GUIDE.md</a>) written for AI coding agents. Hand them to Claude Code, Cursor or Copilot along with your codebase, and the agent can add the wake word, speech-to-text, local LLM and on-device voice to your app step by step, in the order that works. I checked every detail here against the repo.</p><p>Can a phone run a complete voice assistant — one that hears its name, understands a request, takes a real action in your app and answers out loud — without calling a cloud LLM? Yes. In React Native you build it as a pipeline of five on-device stages: <strong>wake word → (optional) speaker verification → speech-to-text → a small local LLM that calls your app’s tools → text-to-speech</strong>. This article walks through that architecture using the open-source <a href="https://github.com/frymanofer/ReactNative_DaVoice">DaVoice React Native example</a>, shows the code that matters, and shares the decisions that made the difference between a demo and something that feels reliable.</p><p>In April I wrote about <a href="https://medium.com/@frymanofer/built-a-full-on-device-voice-ai-stack-for-react-native-wake-word-stt-tts-speaker-5a2403a06d16">our on-device voice stack</a> — wake word, STT, TTS and speaker identification working together. The missing piece was the brain. Now there is one: a 0.6B-parameter agent that runs on the phone and calls tools.</p><h3>Used in production</h3><p>The same on-device voice stack already runs in shipped products:</p><ul><li><strong>Verbali (MaTalk AI, an AAC app for non-verbal children)</strong> moved its wake word, speech-to-text and text-to-speech fully on-device with DaVoice, so no audio leaves the tablet and voice keeps working without internet. In <a href="https://www.verbali.io/news#davoice-on-device">Verbali’s own write-up</a>, DaVoice reached 97.65% wake word accuracy with zero false positives observed on their test setup, versus about 75% for the other engines they evaluated. In their words: “We have no affiliation with DaVoice beyond being a happy customer.”</li><li><strong>Volkswagen</strong> chose DaVoice for OTTO, its generative AI car assistant launched in Brazil (<a href="https://davoice.io/use-case/automotive">customer story</a>).</li><li><strong>LunaFit</strong> built its entire voice-to-voice AI agent on DaVoice, including speaker-aware speech-to-text that hears its user in a noisy gym. Its workout mode is also the model for the interruption pattern described below.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVGfJDX3VfVg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVGfJDX3VfVg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVGfJDX3VfVg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/38d68a2f0ea8157a34d3d67ceb9fab05/href">https://medium.com/media/38d68a2f0ea8157a34d3d67ceb9fab05/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuYpaCXAvjew%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuYpaCXAvjew&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuYpaCXAvjew%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c822ab3372c58071f8e884f604886447/href">https://medium.com/media/c822ab3372c58071f8e884f604886447/href</a></iframe><h3>Why on-device, and what “token-free” really means</h3><p>Cloud voice agents work, but every turn is a round trip, every user adds to a per-token bill, and every sentence the user says leaves the device. An on-device Voice-to-Voice AI Agent changes the trade-off:</p><ul><li><strong>Privacy:</strong> audio and transcripts stay on the phone during the voice loop.</li><li><strong>Offline:</strong> the loop works in a car park, a basement or airplane mode.</li><li><strong>Predictable cost:</strong> no cloud LLM inference token fees.</li></ul><p>“Token-free” needs a precise definition. A local LLM still processes tokens — the car demo’s system prompt alone is about 3,100 of them. What disappears is the <strong>per-token cloud charge</strong>. The DaVoice SDKs themselves are licensed: evaluation and non-commercial proofs of concept are free, production needs a commercial license.</p><h3>The architecture</h3><p>Here’s the loop as it runs in the example app:</p><pre>mic ─► Wake word ─► Speaker check ─► Speech-to-text ─► Local LLM Agent ─► App tools<br>       &quot;Hey Coach&quot;   (optional)       (streaming)        (0.6B, GGUF)        │<br>                                                                             ▼<br>speaker ◄──────────── Text-to-speech ◄──── sentence by sentence ◄──── toolReply()</pre><p>Three npm packages cover it:</p><ul><li><strong>react-native-wakeword</strong> — wake word detection and speaker verification enrollment.</li><li><strong>react-native-davoice</strong> — speech-to-text, text-to-speech and voice cloning (one Speech object, because they share one audio session).</li><li><strong>react-native-davoice-llm</strong> — the on-device LLM engine and an Agent that runs a whole turn: prompt, tool calls, guards, memory, streaming.</li></ul><p>Why a pipeline and not a single speech-to-speech model? Because each stage can be tuned and tested on its own, sensitive tools can be gated by <em>who</em> is speaking, and a 0.6B action model is small enough (about 380 MB) to run on a mid-range phone CPU.</p><p><strong>What’s offline, honestly:</strong> wake word, speaker verification, the LLM, your tools and TTS run on the phone. Speech-to-text is on-device for languages with an installed on-device model; DaVoice’s guide notes other languages fall back to cloud recognition. The model is downloaded once (checked by sha256). Remote model hand-over, web search, MCP tools and the example’s “Full AI Chat” Gemini mode are <strong>optional cloud features</strong>, not part of the offline pipeline.</p><h3>Try it in ten minutes</h3><p>Want to hear it before you build? The <a href="https://davoice.io/playground">DaVoice Playground</a> runs in your browser: <a href="https://davoice.io/playground-app/#wakeword">try the wake word</a> and <a href="https://davoice.io/playground-app/#tts">listen to the text-to-speech voices</a> without installing anything.</p><pre>git clone https://github.com/frymanofer/ReactNative_DaVoice.git<br>cd ReactNative_DaVoice &amp;&amp; git lfs pull<br>cd example<br>npm install<br>cd ios &amp;&amp; pod install &amp;&amp; cd ..<br>npx react-native run-android   # or: npx react-native run-ios</pre><p>Use a real phone. Pick a language, accept the mic permission, choose a voice, optionally record a voice signature, then say <strong>“Hey Coach”</strong> and choose <strong>Local AI · Car demo</strong>. The first time, the app downloads the model and a pre-warmed prompt state (about 780 MB together); after that it is ready in about a second.</p><p>Say “open the rear right window”. You’ll hear “I opened the rear right window.” and the car card shows the exact call: set_window(window: rear_right, position: open).</p><p>A caveat straight from the repo: the automotive model is <strong>a test model, still in training</strong> (about 82% exact-match on DaVoice’s Brazilian Portuguese test set, about 90% right tool), and every car action is simulated.</p><h3>Decision 1: Pause the wake word — don’t stop it</h3><p>Most “it worked alone but not together” bugs in mobile voice come from two components fighting over the microphone. The example follows one strict order:</p><pre>wake word detected:<br>  pauseDetection(false)<br>  Speech.unPauseSpeechRecognition(-1)   -&gt; user talks<br>  silence timeout (2 s):<br>    Speech.pauseSpeechRecognition<br>    agent.turn                          -&gt; sentences go to Speech.speak as they arrive<br>  all sentences spoken:<br>    Speech.unPauseSpeechRecognition(-1) (follow-up turn)<br>    or unPauseDetection                 (back to the wake word)</pre><p>The wake word setup itself is short:</p><pre>const inst = await createKeyWordRNBridgeInstance(&#39;main&#39;, false);<br>await inst.createInstanceMulti([&#39;your_phrase_model.dm&#39;], [0.999], [3], [1000]);<br>const sub = inst.onKeywordDetectionEvent((phrase: string) =&gt; onWakeWord(phrase));<br>if (!(await inst.setKeywordDetectionLicense(DAVOICE_LICENSE_KEY))) { /* show license error */ }<br>await inst.startKeywordDetection(0.999, true);</pre><p>On iOS, pass the same defaultAudioRoutingConfig object to both setWakewordAudioRoutingConfig() and Speech.setAudioRoutingConfig(). It covers speaker, earpiece, Bluetooth HFP/A2DP and CarPlay — the part of iOS audio that usually breaks first.</p><h3>Decision 2: A small model that acts, and an app that confirms</h3><p>The agent is created once and driven by an <strong>agent pack</strong> — JSON for the persona, fixed replies and messages — so behavior changes without code changes:</p><pre>import { setLicense, loadModel, Agent, toolReply } from &#39;react-native-davoice-llm&#39;;<br>await setLicense(LICENSE);<br>await loadModel(pathToGguf, { contextSize: 8192 });<br>const agent = await Agent.create({<br>  pack: { agent: require(&#39;./agent_automotive/agent.json&#39;), skills: [] },<br>  databasePath: `${RNFS.DocumentDirectoryPath}/davoice_agent_car.db`,<br>  chatTemplate: &#39;qwen3&#39;,<br>}, { onRequest });<br>await agent.setTools(myTools);<br>const r = await agent.turn({ text, history }, (ev) =&gt; { if (ev.type === &#39;text&#39;) speak(ev.text); });</pre><p>Tools are plain JSON in MCP shape — name, description, inputSchema — and the handler is your JavaScript. The important trick is toolReply: the handler returns both the result <em>and the sentence to say</em>.</p><pre>const { summary, result, say } = run(args);<br>// The app says what it did and the turn ends there: no second model round.<br>if (say) return toolReply({ ok: true, ...result }, say);</pre><p>We learned this the hard way. When the model wrote its own confirmations, it occasionally announced things that hadn’t happened. When the app speaks a sentence built from the real result — “The front right door is already locked.” — the voice can’t lie. And skipping a second model round saves seconds on a phone CPU.</p><p>Two more safety layers sit around the model:</p><ul><li><strong>Call guards</strong> (callGuards: &#39;correct&#39;) check each call against the user&#39;s words before it runs: they fix &quot;close&quot; vs. &quot;open&quot;, normalize &quot;right front&quot; to front_right, and <strong>block</strong> a door tool used for a window, asking the user to repeat instead.</li><li><strong>Authorization scopes.</strong> A tool that unlocks, pays or deletes declares &quot;execution&quot;: { &quot;authorization&quot;: { &quot;scope&quot;: &quot;door_locks&quot; } }. The agent core never runs it without a yes from the app&#39;s onRequest.</li></ul><h3>Decision 3: Let only the owner unlock the car</h3><p>Speaker verification turns a voice assistant into an <em>owner-only</em> one. Enroll once (five spoken samples), save the enrollment JSON, then add the speaker to both the wake word and STT:</p><pre>await wakewordInstance.addSpeaker(&#39;owner&#39;, enrollmentJsonPath);<br>await Speech.addSpeaker(&#39;owner&#39;, enrollmentJsonPath);</pre><p>Every STT result now carries speakerId. The example&#39;s door_locks scope is answered by ownerMayAct(): with verification on, the doors unlock only if the owner&#39;s voice was verified in this request. A passenger, the radio or someone outside the window gets &quot;not authorized&quot;, and nothing opens.</p><h3>Decision 4: Make it feel fast</h3><p>A 0.6B model on a Galaxy S20 CPU takes about 1.3–2 seconds to decide on a command. The rest of the latency budget is engineering:</p><ul><li><strong>Stream sentences into TTS</strong> as soon as each one is complete, without awaiting the previous one — the native library queues them, so there are no gaps.</li><li><strong>Save the processed system prompt</strong> (saveState / loadState). The first warm-up takes 30–40 seconds on an S20; restoring takes under a second. The car model ships a pre-warmed state, so even the first start is fast.</li><li><strong>Prefill while the user speaks</strong>, so when the silence timeout fires only the last few words remain to process.</li></ul><h3>Adding it to your own app</h3><p>The repository includes two guides written for exactly this — and written so you can hand them to an AI coding agent along with your codebase: <a href="https://github.com/frymanofer/ReactNative_DaVoice/blob/main/example/englishHowTo.md">englishHowTo.md</a> and <a href="https://github.com/frymanofer/ReactNative_DaVoice/blob/main/docs/AI_AGENT_INTEGRATION_GUIDE.md">AI_AGENT_INTEGRATION_GUIDE.md</a>. The rule is simple: copy a module from example/src/, add its assets, install the package, use your own license.</p><ul><li><strong>Wake word:</strong> src/wakeword/index.ts + your .dm model in the native bundle.</li><li><strong>Speaker verification:</strong> src/speaker_verification/ + sv.dm.</li><li><strong>STT and TTS:</strong> src/initialization/, src/stt/, src/tts/.</li><li><strong>Agent and tools:</strong> src/local_llm/, src/agent/LocalAgent.ts, src/aichat/provider.ts, an agent pack, and your own tool JSON.</li></ul><p>Add one feature at a time and build after each. On Android, add a local Maven line per DaVoice package and minSdkVersion 29; on iOS, the mic and speech-recognition texts and the increased-memory-limit entitlement for the LLM. Never ship the example&#39;s demo license key.</p><h3>What it doesn’t do (yet)</h3><ul><li><strong>Interruptions:</strong> the example is turn-based on purpose, so the agent never hears itself. Barge-in with the wake word plus echo cancellation (AEC: { mode: &#39;always&#39; }) is documented in the how-to, based on a production fitness-coaching app.</li><li><strong>Chit-chat:</strong> the 0.6B model is trained to act, not to chat. General questions are handed to an optional remote model, or answered with a fixed “set up a remote model” message.</li><li><strong>Accuracy:</strong> it’s a small model on a phone. It still sometimes picks the wrong zone or confuses absolute and relative values; that’s why the guards exist and why car actions are simulated.</li></ul><h3>FAQ</h3><p><strong>Is this a speech-to-speech model?</strong> No. It’s a pipeline of specialized on-device stages, which gives you control and testability at each step.</p><p><strong>Can it run fully offline?</strong> The core loop can, once models are downloaded and for languages with on-device STT. Hand-over, web search and MCP need a network and are optional.</p><p><strong>Can I use my own LLM?</strong> Yes — GGUF models with qwen3, chatml, gemma and other templates. Bigger models are slower on phones.</p><p><strong>Does it work with Expo?</strong> Yes, with a development build (not Expo Go). The repo has an expo/ version and its own integration guide.</p><p><strong>Which phones?</strong> Real devices only: iPhone 11 or newer per DaVoice’s guide (GPU on A14+), and 64-bit ARM Android with API 29+.</p><h3>Resources</h3><ul><li>Example app (React Native + Expo): <a href="https://github.com/frymanofer/ReactNative_DaVoice">github.com/frymanofer/ReactNative_DaVoice</a></li><li>DaVoice Voice Agent Guide: <a href="https://davoice.io/voice-agent-guide">davoice.io/voice-agent-guide</a> and the <a href="https://davoice.io/voice-agent-guide/react-native">React Native tutorial</a></li><li><a href="https://davoice.io/voice-agent-sdk">Voice AI Agent SDK</a> · <a href="https://davoice.io/wake-word">Wake word</a> · <a href="https://davoice.io/speaker-recognition">Speaker recognition</a></li><li>Try it in your browser: <a href="https://davoice.io/playground">DaVoice Playground</a> · <a href="https://davoice.io/playground-app/#tts">Text-to-speech playground</a> · <a href="https://davoice.io/playground-app/#wakeword">Wake word playground</a></li><li>Deeper guides: <a href="https://davoice.io/voice-agent-guide/tool-calling">Tool calling</a> · <a href="https://davoice.io/voice-agent-guide/turn-taking">Turn-taking and interruptions</a> · <a href="https://davoice.io/voice-agent-guide/speaker-verification">Owner-only agent</a> · <a href="https://davoice.io/voice-agent-guide/on-device-llm">On-device LLM</a> · <a href="https://davoice.io/voice-agent-guide/expo">Expo</a> · <a href="https://davoice.io/voice-agent-guide/flutter">Flutter</a></li><li>Customer stories: <a href="https://www.verbali.io/news#davoice-on-device">Verbali on going fully on-device</a> · <a href="https://davoice.io/use-case/automotive">Volkswagen OTTO</a> · <a href="https://www.youtube.com/@DaVoice_AI">DaVoice on YouTube</a></li></ul><p>If you build something with it — or break it — I’d like to hear about it in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=602c9a07e160" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Built a Full On-Device Voice AI Stack for React Native (Wake Word + STT + TTS + Speaker…]]></title>
            <link>https://medium.com/@frymanofer/built-a-full-on-device-voice-ai-stack-for-react-native-wake-word-stt-tts-speaker-5a2403a06d16?source=rss-cbedbf4f2f30------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a2403a06d16</guid>
            <category><![CDATA[speech-to-text-api]]></category>
            <category><![CDATA[speaker-recognition]]></category>
            <category><![CDATA[voice-ai]]></category>
            <category><![CDATA[text-to-speech]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Ofer Fryman]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 15:13:46 GMT</pubDate>
            <atom:updated>2026-04-16T22:13:09.357Z</atom:updated>
            <content:encoded><![CDATA[<h3>Built a Full On-Device Voice AI Stack for React Native (Wake Word + STT + TTS + Speaker Identification + VAD)</h3><p>Today, more and more applications are integrating <strong>AI agents</strong>, and increasingly, they’re adding the most natural interface of all: <strong>voice</strong>.</p><p>From voice assistants to in-car systems, mobile apps, and IoT devices — <strong>voice AI is becoming the default UX layer</strong>.</p><p>But while many teams successfully prototype voice-enabled AI agents, they quickly run into fundamental limitations:</p><h3>🚫 The Problem with Cloud-Based Voice AI</h3><ol><li><strong>Latency (Speed)</strong><br> Speech-to-text (STT) APIs, text-to-speech (TTS) services, and backend inference all introduce delays. Even an extra second destroys the conversational experience.</li><li><strong>Costs at Scale</strong><br> API-based voice solutions are fine for demos — but once you have real users, <strong>costs grow linearly with usage</strong>, making them hard to scale.</li><li><strong>Privacy &amp; Reliability</strong><br> Sending user voice data to the cloud introduces privacy concerns and dependency on network connectivity.</li></ol><h3>✅ A Different Approach: Fully On-Device Voice AI</h3><p>In this post, we’ll explore a different architecture:</p><blockquote><em>A </em><strong><em>complete Voice AI stack running entirely on-device</em></strong><em> — enabling real-time interaction, zero latency feel, and full privacy.</em></blockquote><p>This is based on a system we built for React Native apps:<br> 👉 <a href="https://github.com/frymanofer/ReactNative_DaVoice">https://github.com/frymanofer/ReactNative_DaVoice</a></p><h3>🧠 What a Complete Voice AI Stack Actually Includes</h3><p>Building a real voice-controlled system is not just STT or TTS.</p><p>A <strong>production-grade voice pipeline</strong> includes:</p><ul><li><strong>VAD (Voice Activity Detection)</strong> — detects when the user is speaking</li><li><strong>Speaker Verification / Identification</strong> — who is speaking so other logics could listen only to this specific voice — this is also referred to as <strong>voice isolation</strong>.</li><li><strong>Wake Word Detection</strong> — “Hey app” trigger with voice isolation</li><li><strong>Speech-to-Text (STT)</strong> — convert speech to text with voice isolation</li><li><strong>Text-to-Speech (TTS)</strong> — generate spoken responses</li><li>Optional: <strong>Voice Cloning</strong></li></ul><h3>👉 It actually works</h3><p>It’s already being used in real applications. One of the early adopters is <a href="https://www.lunafitapp.com/">Lunafit</a>, which built a fully on-device, voice-enabled AI coaching app.</p><p>It also demonstrates something <strong>rarely achieved in practice</strong>: on-edge <strong>speech-to-text combined with speaker identification (voice isolation) working reliably in a highly noisy environment</strong> with perfect results, see — <a href="https://www.youtube.com/watch?v=uYpaCXAvjew">https://www.youtube.com/watch?v=uYpaCXAvjew</a></p><p>In the video, the user logs “23 ounces of water” — and thanks to STT combined with speaker identification, the system correctly captures and records it, even in challenging conditions!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7tm431MVdPy66gaAzSBEMw.jpeg" /></figure><p>Most developers underestimate this:</p><blockquote><em>The hardest part is not the individual components — it’s making them work together.</em></blockquote><p>Typical issues:</p><ul><li>Microphone conflicts between STT and wake word</li><li>Audio playback interrupting detection</li><li>Timing issues between VAD, STT, and TTS</li><li>Latency stacking across services</li></ul><h3>💡 The Core Idea</h3><p>The goal was to build a <strong>complete, production-ready voice pipeline</strong>, fully on-device.</p><p>This means:</p><ul><li>No cloud dependency</li><li>No API latency</li><li>No per-request costs</li><li>Privacy-By-Design</li><li>No Cloud security risks</li></ul><p>And most importantly:</p><blockquote><em>All components — wake word, STT, TTS, VAD, and speaker identification — </em><strong><em>work together reliably inside real mobile apps</em></strong><em>.</em></blockquote><h3>🎯 Quality Matters (Not Just Integration)</h3><p>Beyond integration, a major focus was <strong>accuracy and user experience</strong>:</p><ul><li><strong>High wake word accuracy</strong> in real-world environments</li><li><strong>Speaker-aware processing</strong> (optional isolation for wake word and STT)</li><li><strong>Low-footprint, highly accurate STT</strong> supporting most major languages</li><li><strong>On-device TTS with expressive, emotional speech</strong></li><li><strong>Stable real-time performance</strong> across Android and iOS</li></ul><p>The result is not just a toolkit — but a <strong>cohesive voice system</strong>.</p><h3>🔊 Deep Dive into Each Component</h3><h3>🎤 Wake Word Detection (Keyword Spotting)</h3><p>Wake word (also called <strong>keyword spotting</strong>) is what enables hands-free interaction.</p><p>Examples:</p><ul><li>“Hey Siri”</li><li>“Ok Google”</li></ul><p>Challenges:</p><ul><li>Avoid false triggers (TV, YouTube, background noise)</li><li>Work across accents and environments</li><li>Run continuously with low power</li></ul><p><strong>On-device wake word detection</strong> solves:</p><ul><li>Latency → instant response</li><li>Privacy → no streaming audio to servers</li><li>Cost → no API usage</li></ul><p>With <strong>speaker verification</strong>, you can go even further:</p><blockquote><em>Trigger only when a </em><strong><em>specific user</em></strong><em> says the wake word.</em></blockquote><h3>🧍 Speaker Verification / Identification</h3><p>This is one of the most underutilized components in voice AI.</p><p>It allows:</p><ul><li><strong>User enrollment (onboarding)</strong></li><li><strong>Real-time verification</strong></li><li><strong>Voice isolation in noisy environments</strong></li></ul><p>Use cases:</p><ul><li>Personalized assistants</li><li>Secure voice commands</li><li>Multi-user environments</li></ul><p>Combined with wake word + STT:</p><blockquote><em>You can build a </em><strong><em>voice system that responds only to the intended user</em></strong><em>.</em></blockquote><h3>🧠 Speech-to-Text (STT)</h3><p>STT is the backbone of any voice AI system.</p><p>Typical cloud-based STT problems:</p><ul><li>Latency (round-trip)</li><li>Cost per request</li><li>Privacy concerns</li></ul><h3>On-Device STT Advantages:</h3><ul><li><strong>Low latency</strong></li><li><strong>Offline support</strong></li><li><strong>No cost per request</strong></li></ul><p>In this system:</p><ul><li>Supports <strong>multiple languages</strong></li><li>Can be combined with <strong>speaker isolation</strong></li><li>Optimized for <strong>low footprint + high accuracy</strong></li></ul><h3>🔊 Text-to-Speech (TTS)</h3><p>Let’s be honest:</p><blockquote><em>All known on-device TTS sounds robotic — and users immediately notice this.</em></blockquote><h3>The Problem</h3><p>On device TTS results in:</p><ul><li>Flat, unnatural speech</li></ul><h3>The Approach</h3><p>The TTS system here is designed differently:</p><ul><li><strong>Runs fully on-device</strong></li><li>Produces <strong>expressive, emotional speech</strong></li><li>Works in <strong>real-time</strong></li></ul><p>And importantly:</p><blockquote><em>Supports </em><strong><em>voice cloning</em></strong><em> (off-device when needed)</em></blockquote><p>Meaning:</p><ul><li>Your app can speak in a <strong>custom voice</strong></li><li>Brand voice, character voice, or user voice</li></ul><h3>Why This Matters</h3><p>Voice UX is not just about functionality — it’s about <strong>feel</strong>.</p><p>Bad TTS → users disengage<br> Natural TTS → users trust and continue interacting</p><h3>🎧 VAD (Voice Activity Detection)</h3><p>VAD is the silent hero.</p><p>It determines:</p><ul><li>When speech starts</li><li>When speech ends</li></ul><p>Without it:</p><ul><li>STT runs continuously (wasteful)</li><li>UX becomes messy</li></ul><p>With proper VAD:</p><ul><li>Cleaner interactions</li><li>Better performance</li><li>Lower compute usage</li></ul><h3>🧩 Putting It All Together</h3><p>The real innovation is not each piece — but the <strong>pipeline</strong>:</p><ol><li>VAD detects speech</li><li>Speaker verification validates user</li><li>Wake word activates system</li><li>STT processes speech</li><li>AI responds</li><li>TTS speaks response</li></ol><p>All of this:</p><ul><li>On-device</li><li>Real-time</li><li>Coordinated</li></ul><h3>🚀 Why This Matters</h3><p>This approach enables:</p><ul><li><strong>True real-time voice assistants</strong></li><li><strong>Offline-first applications</strong></li><li><strong>Privacy-preserving AI</strong></li><li><strong>Scalable cost structure</strong></li></ul><p>Especially important for:</p><ul><li>Automotive (in-car assistants)</li><li>Smart devices</li><li>Mobile apps</li><li>Enterprise voice systems</li></ul><h3>📦 Open Source + Licensing</h3><p>The repo (integration + demo) is open-source:<br> 👉 <a href="https://github.com/frymanofer/ReactNative_DaVoice">https://github.com/frymanofer/ReactNative_DaVoice</a><br>However - Underlying voice libraries require a <strong>license for production use</strong></p><h3>Licensing:</h3><ul><li>Free → personal use + development / evaluation</li><li>Production → commercial (startup-friendly)</li></ul><h3>🤔 Final Thoughts</h3><p>Voice AI is moving fast — but most implementations today are still:</p><ul><li>Cloud-dependent</li><li>Expensive</li><li>Latency-heavy</li></ul><p>On-device voice AI changes that.</p><blockquote><em>The future of voice is </em><strong><em>fast, private, and local</em></strong><em>.</em></blockquote><h3>💬 Let’s Discuss</h3><p>If you’ve worked on:</p><ul><li>Wake word detection</li><li>Speech-to-text</li><li>Text-to-speech</li><li>Speaker recognition</li></ul><p>I’d love to hear:</p><p>👉 What was the hardest part for you?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a2403a06d16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android “Wake word” and “Phrase detection” AI Code achieving 1.2%]]></title>
            <link>https://medium.com/@frymanofer/android-wake-word-and-phrase-detection-ai-code-achieving-1-2-30c2725597e1?source=rss-cbedbf4f2f30------2</link>
            <guid isPermaLink="false">https://medium.com/p/30c2725597e1</guid>
            <category><![CDATA[efficient-native-voice-ai]]></category>
            <category><![CDATA[wake-word-android-native]]></category>
            <category><![CDATA[android-wake-word]]></category>
            <category><![CDATA[android-phrase-detection]]></category>
            <dc:creator><![CDATA[Ofer Fryman]]></dc:creator>
            <pubDate>Wed, 12 Feb 2025 14:12:33 GMT</pubDate>
            <atom:updated>2025-02-12T14:12:33.333Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android “Wake word” and “Phrase detection” AI Code achieving 1.2% Battery Per Hour Usage — Lessons Learned</h3><h3>This post discusses:</h3><p>lessons learned while <strong>optimizing native Android AI code</strong> for “<strong>wake word”, also known as “Phrase detection”, “Hotword” and Keyword Spotting</strong>, significantly <strong>reducing battery consumption</strong>. The solution involves combining open-sources such as ONNX Runtime, cross compiling for specific HW, and proprietary optimizations by <a href="https://davoice.io/wake-word">DaVoice</a>.io.</p><ol><li><strong>ONNX Runtime</strong>: A fully open-source library that was customized and compiled with specific Android hardware optimizations for improved performance.</li><li><a href="https://davoice.io/wake-word"><strong>DaVoice “w</strong></a>ake word”: Available for free use by independent developers for personal projects, with paid plans for enterprise users.</li></ol><h3>The links below include:</h3><ol><li><strong>Documentation and guides</strong> on optimizing ONNX Runtime for Android with hardware-specific acceleration.</li><li><strong>Link to ONNX runtime open source</strong> — the ONNX open source that can be cross compiled to different Android hardware architecture s.</li><li>Links to <a href="http://davoice.io/">DaVoice.io</a> proprietary product and GitHub repository, which includes additional tools and implementation details.</li></ol><h3>Let’s get into it:</h3><p>If you are an Engineer — how does the below sounds to you?<br>“<strong><em>An App that opens the Microphone, continuous audio processing with AI running “on-device”?</em></strong></p><p>I hope you are saying to your self<strong><em> “Sounds like a good recipe for overheating devices and quickly drained battery.”</em></strong></p><h3>Well that was our mission, to be able to run contiuosly multiple “wake words” and “phrase detection” on device.</h3><p>Our initial <strong>naive-approach</strong> took <strong>~0.41% battery per minute or ~25% per hour</strong> and the device heat up very quickly — <strong>providing only 4 hours of battery life time.</strong></p><p><em>After a long journey of researching, optimizing, experimentation and debugging on different hardware (with lots of nasty crashes), we managed to reduce battery consumption</em> with multiple “phrase detectors” <strong><em>to: 0.02% per minute, translating to over 83 hours of runtime!!!</em></strong></p><h3><strong><em>83 hours of runtime !!! — </em></strong>MOST SIGNIFICANT LESSON — CROSS-COMPILE YOUR OWN NN FRAMEWORK WITH VERY SPECIFIC HW OPTIMIZATION</h3><p>We spent significant amount of time cross compiling AI Libraries for “Android ARM” architecture and different GPU’s such as <strong>Qualcomm QNN</strong>.</p><p>Here is the how-to from ONNX: <a href="https://onnxruntime.ai/docs/execution-providers/QNN-ExecutionProvider.html">https://onnxruntime.ai/docs/execution-providers/QNN-ExecutionProvider.html</a></p><h3>Today we have the most optimized on device AI models to constantly detect speech:</h3><p>You can run this on Native Android, React-Native and Flutter — here are some links:</p><p>Davoice.io “Wake Word” website:</p><p><a href="https://davoice.io/wake-word">DaVoice.io - Your Wake Word Detector</a></p><p>Github React-Native “Wake Word”:</p><p><a href="https://github.com/frymanofer/ReactNative_WakeWordDetection">GitHub - frymanofer/ReactNative_WakeWordDetection: Create any wake word, deploy on any device and operating system.</a></p><p>NPM Package for React-Native “Wake Word”:</p><p><a href="https://www.npmjs.com/package/react-native-wakeword">react-native-wakeword</a></p><p>Flutter “Wake Word” pub:</p><p><a href="https://pub.dev/packages/flutter_wake_word">flutter_wake_word | Flutter package</a></p><p>Flutter “Wake Word” on github:</p><p><a href="https://github.com/frymanofer/Flutter_WakeWordDetection">GitHub - frymanofer/Flutter_WakeWordDetection</a></p><p>Android “Wake Word”:</p><p><a href="https://github.com/frymanofer/Android_Native_Wake_Word">GitHub - frymanofer/Android_Native_Wake_Word</a></p><h3>All Other Links:</h3><ul><li>ONNX how-to: <a href="https://onnxruntime.ai/docs/execution-providers/QNN-ExecutionProvider.html">https://onnxruntime.ai/docs/execution-providers/QNN-ExecutionProvider.html</a></li><li>Onnx open source: <a href="https://github.com/microsoft/onnxruntime">https://github.com/microsoft/onnxruntime</a></li><li>First version of the <a href="http://davoice.io/">DaVoice.io</a> proprietary Native “Android Wake Word”: GitHub repository <a href="http://davoice.io/"><strong>DaVoice.io</strong></a> <a href="https://github.com/frymanofer/Android_Native_Wake_Word"><strong>https://github.com/frymanofer/Android_Native_Wake_Word</strong></a></li></ul><p>Hope this is interesting or helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30c2725597e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extremely Accurate “Python Wake Word” — Is 99%+ Really Possible?]]></title>
            <link>https://medium.com/@frymanofer/extremely-accurate-python-wake-word-is-99-really-possible-479d658e1450?source=rss-cbedbf4f2f30------2</link>
            <guid isPermaLink="false">https://medium.com/p/479d658e1450</guid>
            <dc:creator><![CDATA[Ofer Fryman]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 17:23:29 GMT</pubDate>
            <atom:updated>2025-01-26T17:23:29.719Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Extremely Accurate “Python Wake Word” — Is 99%+ Really Possible?</strong></h3><p>Voice activation has become a practical way to interact with software. From “Hey Siri” to “OK Google,” we’re used to devices that listen for a <em>hot word</em> before processing our speech. But is a “Python wake word” approach truly capable of reaching 99%+ <em>keyword detection</em> accuracy? According to <a href="https://davoice.io/">DaVoice.io</a> and our open-source <a href="https://github.com/frymanofer/Python_WakeWordDetection">Python Wake Word Detection</a>, the answer is yes.</p><h3>Why This Matters</h3><p>Traditional <em>keyword detection</em> and <em>Phrase Spotting</em> systems often struggle with background noise, different accents, and the broad range of human speech patterns. The DaVoice project addresses these challenges in Python, making the entire <em>Voice triggered</em> pipeline straightforward to integrate on Linux, macOS, and Windows. The repository also emphasizes <em>Phrase Recognition</em> — providing not only a <em>wake word</em> but also bridging the gap to full “Speech to Intent,” which enables more complex voice commands after the <em>trigger word</em> is recognized.</p><h3>A Quick Look at 99%+ Accuracy</h3><p>DaVoice’s internal benchmarks indicate a detection rate above 99% on specific Python wake word models. One cited test shows:</p><figure><img alt="“Wake word” benchmark" src="https://cdn-images-1.medium.com/max/1024/1*eZoqHYTC5DjMleg8abyB0g.png" /></figure><p>For anyone building a voice interface, these numbers suggest near-instant <em>Voice triggered</em> responsiveness.</p><h3>“Python Wake Word” GitHub Repo — whats Inside?</h3><p>The <a href="https://github.com/frymanofer/Python_WakeWordDetection">GitHub repo</a> provides:</p><ol><li><strong>Cross-Platform Python Support</strong>: Compatible with Linux (x86_64, aarch64, armv7, etc.), macOS (x86_64, arm64), and Windows (win32, win_amd64, arm64).</li><li><strong>Speech to Intent</strong>: Extend beyond simple <em>wake word</em> detection by handling phrases like “Play my favorite song” or “Order a coffee.”</li><li><strong>Models</strong>: Ready-to-use <em>.onnx</em> files for common or custom <em>trigger word</em> scenarios + instructions on how to create your own “Custom Wake Word”</li></ol><h3>Building a Custom Python “Wake Word” “Hot Word”</h3><p>DaVoice supports custom wake phrases. For instance, if you want “Hey Sky” as your <em>hot word</em>, they’ll provide a tailored hey_sky.onnx model. You then place it in the models/ folder of the example project and reference it directly in the Python code:</p><blockquote>keyword_detection_models = [“models/hey_sky.onnx”]</blockquote><p>This approach allows you to set up unique voice commands or brand-specific phrases with minimal effort.</p><h3>Simple Installation and Usage</h3><ol><li><strong>Clone</strong> the <a href="https://github.com/frymanofer/Python_WakeWordDetection">repo</a>.</li><li><strong>Adjust</strong> the PYTHON_VERSION in install.sh or first_time_installation.sh to match your environment.</li><li><strong>Run</strong> the installation scripts:</li></ol><blockquote>source first_time_installation.sh<br># or if you already have a venv:<br>source install.sh</blockquote><p><strong>4. Test</strong> the demo</p><blockquote>cd example<br>python example.py</blockquote><p>You’ll see a live example of <em>trigger word</em> detection in action.</p><h3>More Than Just a “Wake Word”</h3><p>Once the <em>wake word</em> triggers, you can take advantage of DaVoice’s “Speech to Intent” pipeline. This means you’re not restricted to a single command; you can handle entire voice-driven workflows — like controlling media playback or initiating product orders — simply by mapping recognized phrases to actions.</p><h3>Why Choose DaVoice’s Python Wake Word</h3><ul><li><strong>High Accuracy</strong>: Multiple benchmarks confirm success rates at or above 99%.</li></ul><figure><img alt="“Wake word” benchmark" src="https://cdn-images-1.medium.com/max/1024/1*eZoqHYTC5DjMleg8abyB0g.png" /></figure><ul><li><strong>Low Latency</strong>: Minimal lag from voice input to detection.</li><li><strong>Customizable</strong>: Generate your own <em>Phrase Recognition</em> or custom <em>trigger word</em> models.</li><li><strong>Broad OS/Hardware Coverage</strong>: Works seamlessly across x86, ARM, and more.</li></ul><h3>Other Platforms</h3><p>DaVoice also maintains separate GitHub projects for additional environments:</p><ul><li><a href="https://github.com/frymanofer/Web_WakeWordDetection/tree/main">Web/JS/Angular/React Wake Word Detection</a></li><li><a href="https://github.com/frymanofer/ReactNative_WakeWordDetection">React Native Wake Word</a></li><li><a href="https://github.com/frymanofer/KeywordsDetectionAndroidLibrary">Android Wake Word Library</a></li><li><a href="https://github.com/frymanofer/KeyWordDetectionIOSFramework">iOS Frameworks</a></li></ul><p>This broad support indicates a commitment to making <em>Python wake word</em> solutions available wherever you need them.</p><h3>Next Steps</h3><ol><li><strong>Try the Demo</strong>: Run example.py to see immediate results.</li><li><strong>Build a Custom Model</strong>: Contact info@davoice.io to request your own <em>hot word</em> or <em>Phrase Spotting</em> model.</li><li><strong>Expand to Full Intent</strong>: Explore “Speech to Intent” to map recognized words directly to application logic.</li><li><strong>Stay Updated</strong>: Keep an eye on the repo for new features and platform support.</li></ol><h3>Contact</h3><p>For inquiries about licensing, integrating a <em>Python wake word</em>, or broader solutions for voice interfaces, reach out to <a href="https://davoice.io/">DaVoice.io</a> or email info@davoice.io. The team’s open approach and focus on performance make their solution a strong contender for anyone looking to add robust <em>keyword detection</em> to Python applications.</p><p><strong>Check out the </strong><a href="https://github.com/frymanofer/Python_WakeWordDetection"><strong>GitHub project</strong></a><strong> to explore all details, sample code, and documentation.</strong> If you’re aiming for above 99% accuracy in your next <em>Voice triggered</em> system, DaVoice’s “Python wake word” might be precisely what you need.</p><ol><li><strong>Test</strong> the demo</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=479d658e1450" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developers guide: Important difference between IOS and Android applications]]></title>
            <link>https://medium.com/@frymanofer/developers-guide-important-difference-between-ios-and-android-applications-2072756ec282?source=rss-cbedbf4f2f30------2</link>
            <guid isPermaLink="false">https://medium.com/p/2072756ec282</guid>
            <dc:creator><![CDATA[Ofer Fryman]]></dc:creator>
            <pubDate>Thu, 12 Dec 2024 07:08:25 GMT</pubDate>
            <atom:updated>2024-12-12T07:08:25.871Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Especially when developing AI with threading and callbacks on device</em></p><p>When building the same app for Android and iOS, you might notice that your <strong>Android app starts to feel “stuck” or sluggish as it becomes more complex.</strong> <strong>This is because Android’s default settings provide a “sandbox environment” optimized for simple apps with limited resources</strong>. When your app grows, it might need more memory and processing power to run smoothly.</p><p><strong>On iOS</strong>, the system dynamically adjusts resources based on the app’s needs, which helps maintain performance even as the app becomes more demanding.</p><blockquote>Understanding these differences can help you manage resource allocation effectively on each platform.</blockquote><h3>Optimizing Resources for React Native Android Applications</h3><p>Below are simple instructions to make your app work fast and efficiently on Android.</p><h3>1. Increase JVM Heap Size</h3><p>In the `gradle.properties` file, increase the Java Virtual Machine (JVM) heap size for the Gradle build process:</p><pre><br> org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8<br></pre><p>This sets the heap size to 4GB (`-Xmx4096m`). Adjust the value based on your system’s available memory.</p><h3>2. Configure `AndroidManifest.xml` for LargeHeap</h3><p>Add the `largeHeap` attribute to the `&lt;application&gt;` tag in `AndroidManifest.xml` to allow the app to use a larger heap:</p><pre>```xml<br> &lt;application<br> android:largeHeap=&quot;true&quot;<br> android:allowBackup=&quot;true&quot;<br> android:label=&quot;@string/app_name&quot;<br> android:icon=&quot;@mipmap/ic_launcher&quot;&gt;<br> &lt;/application&gt;<br> ```x</pre><p>This allows the app to request more memory from the system.</p><h3>3. Increase Thread Pool Size</h3><p>Increase the number of threads available to the React Native bridge in `MainApplication.java` or `MainApplication.kt`:</p><pre>**In `MainApplication.java`:**<br> <br> ```java<br> @Override<br> public void onCreate() {<br> super.onCreate();<br> ReactNativeHost host = getReactNativeHost();<br> ReactInstanceManager manager = host.getReactInstanceManager();<br> manager.getDevSupportManager().getDevSettings().setMinimumNumThreads(8); // Example: Increase to 8 threads<br> }<br> ```</pre><pre>**In `MainApplication.kt`:**<br> <br> ```kotlin<br> override fun onCreate() {<br> super.onCreate()<br> val host = reactNativeHost<br> val manager = host.reactInstanceManager<br> manager.devSupportManager.devSettings.minimumNumThreads = 8 // Example: Increase to 8 threads<br> }<br> ```<br> <br>4. Optimize Gradle Build Settings</pre><p>In `gradle.properties`, set the following configurations to improve build performance:</p><pre>```properties<br> # Enable parallel builds<br> org.gradle.parallel=true<br> <br> # Configure the number of workers (adjust based on your CPU cores)<br> org.gradle.workers.max=8<br> <br> # Enable daemon to improve build speed<br> org.gradle.daemon=true<br> <br> # Configure memory allocation for the daemon<br> org.gradle.daemon.jvmargs=-Xmx2048m<br> ```</pre><h3>5. Enable Multidex</h3><p>If your app has a large number of methods, enabling multidex helps prevent method limit issues:</p><pre>**In `app/build.gradle`:**<br> <br> ```gradle<br> android {<br> defaultConfig {<br> …<br> multiDexEnabled true<br> }<br> }<br> <br> dependencies {<br> implementation &#39;androidx.multidex:multidex:2.0.1&#39;<br> }<br> ```</pre><pre>**In `MainApplication.java`:**<br> <br> ```java<br> public class MainApplication extends MultiDexApplication implements ReactApplication {<br> @Override<br> public void onCreate() {<br> super.onCreate();<br> MultiDex.install(this);<br> }<br> }<br> ```</pre><h3>6. Profile and Optimize Performance</h3><p>Use the Android Studio Profiler to identify bottlenecks in CPU, memory, and threading:<br> <br> 1. **Android Studio → View → Tool Windows → Profiler.**<br> 2. Run the profiler while using the app.<br> 3. Identify and optimize areas with high memory usage, CPU load, or inefficient threading.</p><p><strong>My personal experience, </strong>came from integrating many packages to a simple react-native app. Including my own package react-native-wakeword, which is a package to enable “wake word”, “speech to intent” at DaVoice.io.</p><p>You can find React Native wake word inplementation:<br><a href="https://github.com/frymanofer/ReactNative_WakeWordDetection/tree/main">https://github.com/frymanofer/ReactNative_WakeWordDetection</a><br>Npm package:<br><a href="https://www.npmjs.com/package/react-native-wakeword">https://www.npmjs.com/package/react-native-wakeword</a><br>And Flutter implementation:<br><a href="https://github.com/frymanofer/Flutter_WakeWordDetection">https://github.com/frymanofer/Flutter_WakeWordDetection</a></p><p>Thank you, and if you are looking for :<br><em>|“wake word”, “speech to intent”, “Voice commands”, ”Voice to Intent”, “keyword detection” “react-native wake word”, “Wake word detection github”, “Wake word generator”, “Custom wake word”, “voice commands”, “wake word”, “wakeword”, “wake words”, “keyword detection”, “keyword spotting”, “speech to intent”, “voice to intent”, “phrase spotting”, “react native wake word”, “Davoice.io wake word”, “Davoice wake word”, “Davoice react native wake word”, “Davoice react-native wake word”, “wake”, “word”, “Voice Commands Recognition”, “lightweight Voice Commands Recognition”, “customized lightweight Voice Commands Recognition”, “rn wake word”<br></em>Then please contact us at info@davoice.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2072756ec282" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Voice Command your Application in React Native with DaVoice.io’s Wake Word Technology]]></title>
            <link>https://medium.com/@frymanofer/voice-command-your-application-in-react-native-with-davoice-ios-wake-word-technology-d74c47e71fb8?source=rss-cbedbf4f2f30------2</link>
            <guid isPermaLink="false">https://medium.com/p/d74c47e71fb8</guid>
            <dc:creator><![CDATA[Ofer Fryman]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 16:24:02 GMT</pubDate>
            <atom:updated>2025-01-03T13:53:00.119Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By Fryman Ofer, Founder of DaVoice.io</em></p><p>A small anecdote — I actually asked the all mighty “chatGPT” how to start my post — the suggestion was a cliche in the sort of “In today’s fast-paced digital … voice interaction .. an integral .. modern applications” :) — So I decided to write what I really think in a less dramatic tone :) — Voice enabled applications had a huge hype cycle with a miserable crash, the simply reason was that — it just did not work as expected. Today we are starting a second healthier hype cycle where technology is better aligned with the practical needs and expectations of customers.</p><p>At DaVoice.io, we applied our technical expertise to design a voice command system that delivers consistent, reliable performance. Our voice operating system is built around ‘wake words’ and streamlined ‘speech-to-intent’ processing, ensuring precision and efficiency</p><p>In this post, I’ll introduce our React Native library, <strong>react-native-wakeword</strong>, which has been gaining significant traction among developers. I’ll also explore how our technology differs from conventional methods and showcase examples of its effectiveness in real-world applications.</p><h3>The Limitations of Traditional Transcription-Based Systems</h3><p>Traditional voice recognition systems often rely on cloud-based transcription services. These systems convert spoken words into text and then process the text to understand the user’s intent. While this approach works, it has several drawbacks:</p><ul><li><strong>Accuracy: </strong>This is the main reason why we do not see many applications which are controlled by voice — simple speech transcription is still not accurate enough, not even close.</li><li><strong>Complexity: </strong>Once the transcription is done you have to find the needle in the haystack in the text making it another challenging layer for developers and for application changes and maintenance..</li><li><strong>Privacy Concerns:</strong> Transmitting user speech to external servers raises privacy and security issues.</li></ul><p><strong>Reliability &amp; Latency:</strong> Dependence on an internet connection can lead to unreliable performance.</p><h3>DaVoice.io’s Unique Approach</h3><p>Our solution addresses these challenges by:</p><ul><li><strong>Using wake word and phrase spotting technology:</strong> This technology by essence is very different to transcription, as it is designed to detect only specific words or phrases.</li><li><strong>Operating On-Device: </strong>Implementing voice recognition directly on the device, without the need for cloud services and without taking too much of the device resources.</li></ul><h3>The key components</h3><h4>1. Wake Words (Keyword Detection)</h4><p>A <strong>wake word</strong> is a specific phrase that activates the voice recognition system. Common examples include “Hey Siri” or “OK Google.” By using wake words, our technology ensures that the system is listening only when needed, conserving resources and enhancing privacy.</p><h4>2. Speech-to-Intent Processing</h4><p><strong>Speech-to-intent</strong> goes a step further by not just recognizing wake words but understanding complex sentences and the intent behind them. Instead of transcribing speech into text, we map spoken phrases directly to specific actions within the application. This allows for more efficient and accurate command execution.</p><p><strong>Example:</strong> A user says, “Turn on the living room lights in 10 minutes.” Our system recognizes the intent to control the lighting without transcribing the entire sentence, triggering the appropriate function in the app immediately.</p><h3>Introducing react-native-wakeword</h3><p>Our <a href="https://www.npmjs.com/package/react-native-wakeword"><strong>react-native-wakeword</strong></a> library enables developers to integrate wake word detection and speech-to-intent functionality into their React Native applications effortlessly.</p><h4>Key Features</h4><ul><li><strong>On-Device Processing:</strong> All voice recognition happens locally, ensuring user privacy and reducing latency.</li><li><strong>High Accuracy:</strong> You can reach over <strong>99% accuracy</strong> in extremely noisy environments. <br>Here is one of the many benchmarks our customers performed:</li></ul><pre>MODEL         DETECTION RATE<br>===========================<br><strong>DaVoice</strong>        <strong>0.992481</strong><br>Top Player     0.874812<br>Third          0.626567</pre><ul><li><strong>Easy Integration:</strong> With simple installation and setup, you can add advanced voice capabilities to your app in minutes.</li></ul><h4>Installation</h4><p>npm install react-native-wakeword</p><p>Here’s a basic example of how to use the library in your React Native app:</p><pre>import useModel from &#39;react-native-wakeword&#39;;<br>....<br>interface instanceConfig {<br>  id: string;<br>  modelName: string;<br>  threshold: number;<br>  bufferCnt: number;<br>  sticky: boolean;<br>}<br>// Create an array of instance configurations<br>const instanceConfigs:instanceConfig[] = [<br>  { id: &#39;your_phrase_id&#39;, modelName: &#39;your_phrase_model&#39;, threshold: 0.9999, bufferCnt: 2 , sticky: false },<br>];<br><br>  const { stopListening, loadModel, setKeywordDetectionLicense} = useModel();<br>  const detectionCallback = async (phraseDetected: string) =&gt; {<br>      console.log (&quot;detected keyword: &quot;, phraseDetected);<br>      // Add your code here...<br>  }<br>  loadModel(instanceConfigs, detectionCallback);</pre><h3>Real-World Applications</h3><h4>Case Study: Fitness Application</h4><p>A fitness application integrated our <a href="https://www.npmjs.com/package/react-native-wakeword"><strong>react-native-wakeword</strong></a> library into their app to allow users to pause, stop, start exercise activities.</p><h4>Case Study: Visually Impaired</h4><p>Many applications which follow regulation to support the visually impaired integrated our <a href="https://www.npmjs.com/package/react-native-wakeword"><strong>react-native-wakeword</strong></a> library into their app to allow users to control the main functionality of the App with Voice commands.</p><h4>Case Study: Car Parking Application</h4><p>A car parking payment application integrated our <a href="https://www.npmjs.com/package/react-native-wakeword"><strong>react-native-wakeword</strong></a> library into their app to allow users to control devices hands-free. Users can say commands like “stop parking” or “start parking”, “find the nearest electric vehicle parking space”.</p><p><strong>Benefits:</strong></p><ul><li><strong>Improved User Experience:</strong> Quick and reliable voice commands enhance user satisfaction.</li><li><strong>Enhanced Privacy:</strong> On-device processing ensures that sensitive voice data isn’t sent to external servers.</li><li><strong>Offline Functionality:</strong> Users can control their devices even when offline.</li></ul><h3>Why Choose Wake Words and Speech-to-Intent?</h3><ul><li><strong>Efficiency:</strong> Direct mapping of speech to actions reduces application development time by over 90%.</li><li><strong>Accuracy:</strong> Finally technology that is accurate enough for user satisfaction.</li><li><strong>Customization:</strong> Developers can define custom wake words and intents specific to their application.</li></ul><h3>Getting Started with DaVoice.io</h3><p>We’re excited to see how developers will utilize our technology to create innovative voice-enabled applications. To help you get started:</p><ul><li><strong>Documentation:</strong> Comprehensive guides are available on our<a href="https://davoice.io/"> website</a>, <a href="https://github.com/frymanofer/ReactNative_WakeWordDetection">GitHub repository</a> and <a href="https://www.npmjs.com/package/react-native-wakeword">npm package</a>.</li><li><strong>Support:</strong> Join our community forum or reach out to our support team for assistance.</li><li><strong>Feedback:</strong> We’re continually improving our platform and welcome any feedback or suggestions. contact us: info@davoice.io</li></ul><h3>Looking Ahead</h3><p>This is the first in a series of posts where we’ll delve deeper into the capabilities of DaVoice.io’s technology. Future topics will include:</p><ul><li><strong>Integrating Voice Commands in Different Frameworks:</strong> Exploring how to use our libraries in various development environments.</li><li><strong>Advanced Speech-to-Intent Techniques:</strong> Diving into more complex use cases and customizations.</li><li><strong>Developer Spotlight:</strong> Showcasing innovative applications built using our technology.</li></ul><p>Stay tuned for more insights and updates!</p><p><strong>About DaVoice.io</strong></p><p>At DaVoice.io, we’re committed to transforming the way users interact with applications through advanced voice recognition technology. Our mission is to empower developers to create seamless, voice-enabled experiences that prioritize privacy, efficiency, and user satisfaction.<br>contact us: info@davoice.io</p><p><strong>Keywords:</strong> react-native, voice commands, wake word, keyword detection, keyword spotting, speech-to-intent, phrase spotting</p><p>Interested in adding voice recognition to your app? Explore our <a href="https://www.npmjs.com/package/react-native-wakeword">react-native-wakeword </a>library and get started today!<em><br></em>contact us: info@davoice.io</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d74c47e71fb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>