<?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: STFG</title>
    <description>The latest articles on DEV Community by STFG (@stfgdev).</description>
    <link>https://dev.to/stfgdev</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%2F4264163%2Ffd7b1b38-b5ff-4051-aec0-3183d02ac492.png</url>
      <title>DEV Community: STFG</title>
      <link>https://dev.to/stfgdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stfgdev"/>
    <language>en</language>
    <item>
      <title>One CPU core, three open speech models: routing each language to the model that handles it best</title>
      <dc:creator>STFG</dc:creator>
      <pubDate>Wed, 25 Nov 2026 17:44:59 +0000</pubDate>
      <link>https://dev.to/stfgdev/one-cpu-core-three-open-speech-models-routing-each-language-to-the-model-that-handles-it-best-211b</link>
      <guid>https://dev.to/stfgdev/one-cpu-core-three-open-speech-models-routing-each-language-to-the-model-that-handles-it-best-211b</guid>
      <description>&lt;p&gt;Most transcription tools run every file through one model. I wanted cheap, private transcription in many languages on a plain CPU, so I measured three open models and route each file to the one that does its language best:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Languages&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Speed on 1 CPU core (processing time / audio length)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;English + 24 European languages&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3" rel="noopener noreferrer"&gt;Parakeet TDT 0.6B v3&lt;/a&gt; (NVIDIA)&lt;/td&gt;
&lt;td&gt;0.30-0.43&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mandarin, Cantonese, Japanese, Korean&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://github.com/FunAudioLLM/SenseVoice" rel="noopener noreferrer"&gt;SenseVoice-Small&lt;/a&gt; (Alibaba)&lt;/td&gt;
&lt;td&gt;0.20-0.27&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everything else Whisper knows (Hindi, Arabic, Indonesian, Vietnamese, Thai...)&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/openai/whisper" rel="noopener noreferrer"&gt;Whisper small&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;1.24-1.27&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All three run int8 through &lt;a href="https://github.com/k2-fsa/sherpa-onnx" rel="noopener noreferrer"&gt;sherpa-onnx&lt;/a&gt;. Whisper tiny listens to the first two minutes to identify the language, then the whole file goes to the routed model.&lt;/p&gt;

&lt;p&gt;The result is a tool on Apify: &lt;strong&gt;&lt;a href="https://apify.com/stfgdev/audio-video-transcriber" rel="noopener noreferrer"&gt;Audio &amp;amp; Video to Text: Transcription in 99 Languages&lt;/a&gt;&lt;/strong&gt;. Paste links to audio or video files or a podcast feed; get text, timestamped sentences, and SRT/VTT subtitle files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I learned measuring it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Whisper is not the best choice for every language.&lt;/strong&gt; On English and European languages Parakeet was 3-4x faster on the same core, and on Chinese SenseVoice writes Cantonese as Hong Kong writes it (係, 嘅, 咗) instead of turning it into Mandarin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;faster-whisper did not help on one core.&lt;/strong&gt; For Whisper small on one thread the two were within 10% of each other (0.149 and 0.163 x real time): no meaningful gain once you are limited to a single thread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Whisper accepts at most 30 seconds per call.&lt;/strong&gt; Long sentences from voice activity detection have to be split, or the end is silently dropped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check that the output has words in any script.&lt;/strong&gt; My first "is this empty?" check only knew Latin and Chinese letters and threw away every Hindi sentence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Whisper loops.&lt;/strong&gt; On weak audio it can repeat one word dozens of times; a simple "one token is more than half the text" check catches it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Real output
&lt;/h2&gt;

&lt;p&gt;Uncorrected, from a 45-second English sample (CC BY-SA 3.0 recording of the Wikipedia article "Hong Kong action cinema"):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hong Kong Action Cinema is the principal source of the Hong Kong film industry's global fame. It combines elements from the action movie, as codified by Hollywood, With Chinese storytelling and aesthetic traditions.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The reader says "Wuxia" later on; the model wrote "Wuzier". Names and rare words are the weak spot of every speech model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy
&lt;/h2&gt;

&lt;p&gt;Speech recognition runs inside the run. The audio is not sent to any outside speech API, it is deleted when the run ends, and it is not used for training.&lt;/p&gt;

&lt;h2&gt;
  
  
  Price
&lt;/h2&gt;

&lt;p&gt;USD 0.01 per audio minute (USD 0.60 per hour) for English, 24 European languages, Mandarin, Cantonese, Japanese and Korean; USD 0.03 per minute for the other languages, which need Whisper and several times more compute. Files that fail are not charged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using it from code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;apify_client&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;ApifyClient&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;ApifyClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;YOUR_API_TOKEN&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"stfgdev/audio-video-transcriber"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run_input&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"sources"&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://example.com/episode.mp3"&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="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;default_dataset_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;iterate_items&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;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"language"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"text"&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="mi"&gt;200&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;
  
  
  Honest limits
&lt;/h2&gt;

&lt;p&gt;No speaker labels. No translation. It reads media files and podcast feeds, not YouTube pages. Less common languages are noticeably less accurate. Try one file before a batch.&lt;/p&gt;

&lt;p&gt;If it does badly on a recording of yours, tell me in the comments.&lt;/p&gt;

</description>
      <category>whisper</category>
      <category>python</category>
      <category>transcription</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
