<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DubEval</title>
    <description>The latest articles on DEV Community by DubEval (@shokhrukh_ochilov_ee12b13).</description>
    <link>https://dev.to/shokhrukh_ochilov_ee12b13</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4223309%2F919938d2-6a92-402d-b5f4-d7c030db1385.png</url>
      <title>DEV Community: DubEval</title>
      <link>https://dev.to/shokhrukh_ochilov_ee12b13</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shokhrukh_ochilov_ee12b13"/>
    <language>en</language>
    <item>
      <title>Shipping a Python app inside Electron on a Mac: 7 things that broke when I signed and notarized it</title>
      <dc:creator>DubEval</dc:creator>
      <pubDate>Thu, 19 Nov 2026 06:10:12 +0000</pubDate>
      <link>https://dev.to/shokhrukh_ochilov_ee12b13/shipping-a-python-app-inside-electron-on-a-mac-7-things-that-broke-when-i-signed-and-notarized-it-k5l</link>
      <guid>https://dev.to/shokhrukh_ochilov_ee12b13/shipping-a-python-app-inside-electron-on-a-mac-7-things-that-broke-when-i-signed-and-notarized-it-k5l</guid>
      <description>&lt;p&gt;A few weeks ago I wrote about &lt;a href="https://dubeval.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=post2" rel="noopener noreferrer"&gt;DubEval&lt;/a&gt;, an open-source app that checks a dubbed video against its original. Back then it was Windows only, and "macOS runs from source" really meant "macOS doesn't". Last week the Mac version shipped: signed with a Developer ID, notarized, and able to update itself.&lt;/p&gt;

&lt;p&gt;The app is an Electron window around a Python server: about 560 MB, with Python 3.14, Whisper (CTranslate2), ONNX Runtime, OpenCV and a few models inside. Electron apps get signed every day. Electron apps with a whole Python inside are rarer, and most of what broke came from that Python. Here's what broke, in the order I hit it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. python.org's Python can't go inside an app
&lt;/h2&gt;

&lt;p&gt;The official macOS installer puts Python in &lt;code&gt;/Library/Frameworks&lt;/code&gt; and expects it to stay there. Copy it into an &lt;code&gt;.app&lt;/code&gt; and it still looks for itself at the old path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; &lt;a href="https://github.com/astral-sh/python-build-standalone" rel="noopener noreferrer"&gt;python-build-standalone&lt;/a&gt;, a relocatable CPython (the one &lt;code&gt;uv&lt;/code&gt; uses). I pin one release and its SHA-256 in the build script, so every build starts from exactly the same bytes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;MAC_PYTHON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"arm64"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://github.com/astral-sh/python-build-standalone/releases/download/20261110/"&lt;/span&gt;
              &lt;span class="s2"&gt;"cpython-3.14.10%2B20261110-aarch64-apple-darwin-install_only_stripped.tar.gz"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="s2"&gt;"f15ec3d15460dd66c2eb88639b152cd9040e7d1ece11e38bf89e8f53f0171e02"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Python writes into its own folder, and that breaks the signature
&lt;/h2&gt;

&lt;p&gt;A signed app is sealed: change one file inside it and the signature no longer matches. Python changes files all the time: the first import of a module writes a &lt;code&gt;.pyc&lt;/code&gt; next to it, inside the bundle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; compile every &lt;code&gt;.py&lt;/code&gt; file at build time and start Python with &lt;code&gt;-B&lt;/code&gt;, so it never writes bytecode. The &lt;code&gt;.pyc&lt;/code&gt; files use &lt;code&gt;unchecked-hash&lt;/code&gt; invalidation, so they stay valid whatever happens to file timestamps on the way to the user:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python -m compileall -q -j 0 --invalidation-mode unchecked-hash &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;the bundled Python&lt;span class="s1"&gt;'s folders&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;numba was the sneaky one. It caches compiled machine code next to the library by default, and that cache depends on the CPU it was built on, so it can't be shipped either. &lt;code&gt;NUMBA_CACHE_DIR&lt;/code&gt; now points at the app's data folder. The cost: the first evaluation on a new Mac is about 10 seconds slower.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. electron-builder tried to sign thousands of data files
&lt;/h2&gt;

&lt;p&gt;electron-builder signs every file in the bundle that isn't plain text, one by one. A Python environment with models has thousands of those: model weights, &lt;code&gt;.npz&lt;/code&gt; data, compiled resources. The first build ran for ages and then stopped on a file that happened to be read-only.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; keep electron-builder off the Python and model folders (&lt;code&gt;signIgnore&lt;/code&gt;) and sign only what needs a signature myself in an &lt;code&gt;afterPack&lt;/code&gt; hook: every Mach-O file, found by its first bytes rather than by file name. A Mac program often has no extension, and a library can be named anything.&lt;/p&gt;

&lt;p&gt;One trap: a "fat" (universal) Mach-O file starts with &lt;code&gt;0xCAFEBABE&lt;/code&gt;, and so does every Java &lt;code&gt;.class&lt;/code&gt; file. The next 4 bytes tell them apart. A universal file counts its architectures there, a class file has its version (45 or more):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subarray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;equals&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;MACHO_FAT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;readUInt32BE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;45&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// a Java class file, not a Mac binary&lt;/span&gt;
  &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;readUInt32BE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                     &lt;span class="c1"&gt;// jump to the first architecture's header&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That found 367 programs and libraries. Each gets &lt;code&gt;codesign --force --timestamp --options runtime&lt;/code&gt;, and the programs also get the entitlements.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The hardened runtime needs only two exceptions
&lt;/h2&gt;

&lt;p&gt;Notarization requires the hardened runtime, which blocks, among other things, writing machine code at run time and loading libraries signed by someone else. I expected a long entitlements file. It came down to two keys:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;com.apple.security.cs.allow-jit&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;                        &lt;span class="c"&gt;&amp;lt;!-- V8, and numba's compiled code --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;true/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;key&amp;gt;&lt;/span&gt;com.apple.security.cs.allow-unsigned-executable-memory&lt;span class="nt"&gt;&amp;lt;/key&amp;gt;&lt;/span&gt; &lt;span class="c"&gt;&amp;lt;!-- Python's ctypes callbacks --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;true/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No &lt;code&gt;disable-library-validation&lt;/code&gt;. Because step 3 signs every library in the bundle with the same Developer ID, nothing needs to load another team's code.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The keychain and I had a disagreement
&lt;/h2&gt;

&lt;p&gt;Three separate surprises, all from the same place:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"0 valid identities found".&lt;/strong&gt; The Developer ID certificate was in the keychain, but its intermediate (Apple's "Developer ID Certification Authority", G2) wasn't, so macOS couldn't build the chain and ignored the certificate. Installing the intermediate fixed it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Signing in parallel failed.&lt;/strong&gt; The first time &lt;code&gt;codesign&lt;/code&gt; uses the private key, macOS asks "allow access?". I was signing 8 files at once, so 8 dialogs appeared and the build failed. Now the first file is signed alone (click &lt;strong&gt;Always Allow&lt;/strong&gt; once), then the rest 8 at a time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Over SSH: &lt;code&gt;errSecInternalComponent&lt;/code&gt;.&lt;/strong&gt; I drive the Mac from my Windows PC over SSH. An SSH session can't show that keychain dialog, so &lt;code&gt;codesign&lt;/code&gt; just fails. Signed builds run in the Mac's own Terminal. Unsigned test builds still work over SSH.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After that, notarization itself was the easy part: &lt;code&gt;APPLE_KEYCHAIN_PROFILE&lt;/code&gt; with credentials saved by &lt;code&gt;xcrun notarytool store-credentials&lt;/code&gt;, and about 10 minutes of waiting for Apple.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Auto-update wants the zip, not the dmg
&lt;/h2&gt;

&lt;p&gt;Users download the &lt;code&gt;.dmg&lt;/code&gt;, but electron-updater (Squirrel.Mac underneath) updates from the &lt;code&gt;.zip&lt;/code&gt; and a &lt;code&gt;latest-mac.yml&lt;/code&gt; next to it. Forget either in a GitHub release and every installed copy's update check fails. It also installs only an update signed with the same Developer ID, so a Mac release can never go out unsigned again.&lt;/p&gt;

&lt;p&gt;A small thing that helped: the &lt;code&gt;.dmg&lt;/code&gt; has no version in its name (&lt;code&gt;DubEval-Mac.dmg&lt;/code&gt;), so &lt;code&gt;/releases/latest/download/DubEval-Mac.dmg&lt;/code&gt; always points at the newest one, and the website never needs editing.&lt;/p&gt;

&lt;p&gt;(Windows has its own version of this. Our installer is signed after it's built, which changes its bytes, so the SHA-512 in &lt;code&gt;latest.yml&lt;/code&gt; and the &lt;code&gt;.blockmap&lt;/code&gt; have to be rebuilt from the signed file. Ship the build's &lt;code&gt;latest.yml&lt;/code&gt; and every installed app refuses the update.)&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Then it was just slow, for two reasons
&lt;/h2&gt;

&lt;p&gt;The first real evaluation on an M2 Pro took &lt;strong&gt;16 minutes&lt;/strong&gt; for a 1-minute clip, on a machine that should do it in 3.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Mac fell asleep.&lt;/strong&gt; &lt;code&gt;pmset -g log&lt;/code&gt; showed 766 seconds of sleep in the middle of the run. The app was working flat out, but a background job isn't "user activity", so the idle timer just ran out. The fix is macOS's own &lt;code&gt;caffeinate&lt;/code&gt;, tied to the server's process so it ends when the server does:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Popen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/usr/bin/caffeinate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-w"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getpid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Windows needs the same thing: &lt;code&gt;SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED)&lt;/code&gt;.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Speech recognition used the wrong cores.&lt;/strong&gt; CTranslate2's default thread count includes the efficiency cores, and on Apple silicon those slow the whole batch down. Asking macOS for the performance cores only:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/usr/sbin/sysctl"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-n"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"hw.perflevel0.physicalcpu"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;capture_output&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;took a whole evaluation from &lt;strong&gt;217 to 169 seconds&lt;/strong&gt;, with the same verdict. On my Intel Core Ultra 7 laptop the same change did nothing, so it's macOS only. Both fixes ship in the next version (0.1.8).&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed since the first post
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Windows installer is signed&lt;/strong&gt; now, so SmartScreen no longer warns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mac app:&lt;/strong&gt; Apple silicon, macOS 14 or later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lip sync counts in the verdict&lt;/strong&gt; when you install its optional model (StableSyncNet).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The local translation checker is now Gemma 4 12B&lt;/strong&gt; (through a bundled Ollama). In my first post the local model found 4 of 23 planted translation mistakes. Gemma 4 12B caught 28 of 28 on Windows and on the Mac. That's planted mistakes on 8 dubs, one run each, not yet compared with a human reviewer, so take it as promising, not proven.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dubeval.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=post2" rel="noopener noreferrer"&gt;Download for Mac or Windows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/shox17/DubEval" rel="noopener noreferrer"&gt;Source on GitHub&lt;/a&gt; (AGPL-3.0; the build script and &lt;code&gt;after-pack.js&lt;/code&gt; are in &lt;code&gt;tools/&lt;/code&gt; and &lt;code&gt;desktop/&lt;/code&gt; if you're packaging your own Python app)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Disclosure: I work at ESTsoft, which makes Perso AI (an AI dubbing service). DubEval is free and works with dubs from any service or from voice actors.&lt;/p&gt;

&lt;p&gt;If you've shipped a Python runtime inside a Mac app another way (PyInstaller, Briefcase, py2app), I'd like to hear what broke for you.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>python</category>
      <category>electron</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How do you know a dubbed video is good? I built an open-source tool to check</title>
      <dc:creator>DubEval</dc:creator>
      <pubDate>Tue, 03 Nov 2026 02:30:57 +0000</pubDate>
      <link>https://dev.to/shokhrukh_ochilov_ee12b13/how-do-you-know-a-dubbed-video-is-good-i-built-an-open-source-tool-to-check-29an</link>
      <guid>https://dev.to/shokhrukh_ochilov_ee12b13/how-do-you-know-a-dubbed-video-is-good-i-built-an-open-source-tool-to-check-29an</guid>
      <description>&lt;p&gt;&lt;em&gt;Update, 19 Nov 2026: DubEval 0.1.7 is out, with a Mac app, a signed Windows installer and a stronger offline translation check. &lt;a href="https://dev.to/shokhrukh_ochilov_ee12b13/shipping-a-python-app-inside-electron-on-a-mac-7-things-that-broke-when-i-signed-and-notarized-it-k5l"&gt;What's new →&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you use AI dubbing, you've probably done this: a dub comes back, and the only way to know whether it's any good is to watch all of it. That works for one video. It stops working at twenty videos in five languages.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://dubeval.com/?utm_source=devto&amp;amp;utm_medium=article" rel="noopener noreferrer"&gt;DubEval&lt;/a&gt;, a free, open-source desktop app that compares a dubbed video with its original and tells you whether the dub is ready to ship.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2ld6bsym4idlhtakivm1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2ld6bsym4idlhtakivm1.png" alt="Reviewing a dub in DubEval: both videos, both waveforms, the lines and the flagged problems on one timeline" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Reviewing a dub. The film is Tears of Steel (© Blender Foundation, CC BY 3.0).&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;You give it the original and the dub, from any service or from voice actors. You get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A verdict:&lt;/strong&gt; Good, Needs review or Poor. Every row says what was measured and how it's graded, so there's no single black-box score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every problem with a time:&lt;/strong&gt; long silences, loudness jumps, noise, a stretch left in the original language, lines that run long, mistranslations, changed numbers. Click one and it plays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A recommendation:&lt;/strong&gt; give it 2 to 8 dubs of one video and it ranks them with a fixed, printed rule, then says which one to deliver and why.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz6wtnegyoueugmm688q1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz6wtnegyoueugmm688q1.png" alt="A comparison of two dubs: which one to deliver, the reasoning, the ranking and every check side by side" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The checks run on your computer, and your videos never leave it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Same video, anything missing?&lt;/strong&gt; Picture fingerprints, about 10 frames a second.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where is someone speaking?&lt;/strong&gt; The Silero voice detector.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What did they say, and when?&lt;/strong&gt; Whisper, with a time for every word.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does the voice sound damaged or different?&lt;/strong&gt; DNSMOS for quality (since 0.1.7, the newer Audiobox Aesthetics when its download is installed), WeSpeaker for similarity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loudness, silence, noise, sound in sync:&lt;/strong&gt; plain signal measurements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does the translation mean the same?&lt;/strong&gt; Your own Claude, Gemini or ChatGPT key, which sends only the transcripts, or a local model. The first local model was much weaker: it found 4 of 23 planted translation mistakes, and Gemini found all 23. Since version 0.1.7 the local checker is Gemma 4 12B, which caught 28 of 28.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I test it
&lt;/h2&gt;

&lt;p&gt;A QA tool nobody has checked isn't worth much, so I test it two ways.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Planted problems.&lt;/strong&gt; I take real dubs and put known problems in them: a silence, the original voice back in, a loudness jump, distortion, noise, a cut, the sound 1 second late. Then I count. It catches &lt;strong&gt;102 of 112&lt;/strong&gt;, and &lt;strong&gt;18 of 24&lt;/strong&gt; on dubs it was never tuned on. It also raised &lt;strong&gt;42 false alarms&lt;/strong&gt; across those copies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A person's grades.&lt;/strong&gt; One reviewer graded 20 real dubs before seeing DubEval's results. It agreed on &lt;strong&gt;12 to 15 of 20&lt;/strong&gt;, and most of that gap comes from which AI model reviewed the translation.&lt;/p&gt;

&lt;p&gt;That's a small test set with one grader, so use the verdict to decide where to look first, and still watch the dub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four things that surprised me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. A well-known speech quality model was useless on real dubs.&lt;/strong&gt; The first one I tried, UTMOS, rated clean synthetic speech well but scored every real recording around 1.2 to 1.5 out of 5, originals included. It couldn't tell a good dub from a bad one. I switched to DNSMOS and score the dub against the original at the same moment, because background music lowers both tracks alike.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Turning the volume down looked like a worse voice.&lt;/strong&gt; One test copy is only 3 dB quieter, so anything flagged on it is wrong by definition. The voice score moved by up to 1.14 out of 5 from volume alone. Scoring the dub at the original's volume cut that to 0.51.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Numbers don't translate digit by digit.&lt;/strong&gt; My numbers check would have flagged "July 4" → "7월 4일" because of the 7, and "2 million" → "200만" because of the 200. Now it flags only a number replaced by another, and compares significant digits. It still caught all 6 numbers I planted, but it misses a number wrong only by its zeros, like 5 and 50.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. The same AI model doesn't always give the same answer.&lt;/strong&gt; On identical transcripts with the same model, the verdict flipped on 1 of 6 dubs: one line scored 5 out of 10 in one review and 1 in the other. So you can lock a run to one model, and a comparison warns when different models reviewed the dubs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it can't do yet
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Linux runs from source only. (Since 0.1.7 the Windows installer is signed, so SmartScreen no longer warns, and there's a Mac app for Apple silicon.)&lt;/li&gt;
&lt;li&gt;Speech recognition can't read some languages. On Uzbek, the line-level checks don't run, and DubEval says so instead of guessing.&lt;/li&gt;
&lt;li&gt;It misses hum, buzz and crackle, and noise shorter than 1.5 seconds.&lt;/li&gt;
&lt;li&gt;Lip sync is checked only with its optional download. With it, lip sync counts in the verdict since 0.1.7.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/shox17/DubEval/releases/latest/download/DubEval-Setup.exe" rel="noopener noreferrer"&gt;Download for Windows&lt;/a&gt; · &lt;a href="https://github.com/shox17/DubEval/releases/latest/download/DubEval-Mac.dmg" rel="noopener noreferrer"&gt;Download for Mac&lt;/a&gt; (Apple silicon)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/shox17/DubEval" rel="noopener noreferrer"&gt;Source on GitHub&lt;/a&gt; (AGPL-3.0)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It needs no account. Dubs where it gets things wrong would help me most, so please open an issue.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I work at ESTsoft, which makes Perso AI, an AI dubbing service. DubEval works the same with dubs from any service or from voice actors.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>ai</category>
      <category>python</category>
    </item>
  </channel>
</rss>
