<?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 Egor Menyaylo on Medium]]></title>
        <description><![CDATA[Stories by Egor Menyaylo on Medium]]></description>
        <link>https://medium.com/@e_menyaylo?source=rss-a4a9895538c2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zkLtbw1l4_BeyzNRUZdbtA.jpeg</url>
            <title>Stories by Egor Menyaylo on Medium</title>
            <link>https://medium.com/@e_menyaylo?source=rss-a4a9895538c2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:15:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@e_menyaylo/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 install Whisper on Mac, an amazing OpenAI’s speech-to-text recognition system]]></title>
            <link>https://medium.com/gimz/how-to-install-whisper-on-mac-openais-speech-to-text-recognition-system-1f6709db6010?source=rss-a4a9895538c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f6709db6010</guid>
            <dc:creator><![CDATA[Egor Menyaylo]]></dc:creator>
            <pubDate>Tue, 21 Feb 2023 14:44:35 GMT</pubDate>
            <atom:updated>2023-03-15T07:45:27.777Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xgggK87YlyM6Ge4KYM_Mg.jpeg" /><figcaption>image generated by DALL·E 2</figcaption></figure><p>We’ve already told you <a href="https://medium.com/gimz/how-to-use-whisper-a-speech-recognition-model-that-turns-audio-into-text-a10bf182d85b">how to use Whisper in your browser</a>. It’s a neural network-based system that can transcribe audio into text in 99 languages. Now there’s a guide for Mac owners.</p><p>An enthusiast has <a href="https://github.com/ggerganov/whisper.cpp">rebuilt Whisper</a> in C/C++ for macOS — Intel and Apple Silicon (M-series) processors are supported, and you can even install it on iOS if you want. It’s essentially an unofficial version of Whisper which has been optimised for Apple processors. But it works just as well.</p><p>Compared to Google Colab, the Mac version is about twice as fast. On a MacBook Pro 16 (M1 Pro and 16GB RAM), a fifty minute recording was transcribed:</p><ul><li>via Google Colab — 53 minutes;</li><li>via whisper.cpp — 18 minutes.</li></ul><h3>Install whisper.cpp on Mac</h3><p>1. Download <a href="https://github.com/ggerganov/whisper.cpp">the code</a>.</p><p>Simple option: click on Code → Download ZIP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfSX9YPWfV8yuaZEbLdBow.png" /></figure><p>More complicated via git: copy the link to the code → in the terminal write <strong>git clone {link}</strong>.</p><p>Move the downloaded whisper.cpp folder to a location where it will be securely stored. For example <em>/User/Name/Files</em>.</p><p>3. Interaction with Whisper will be via Terminal. Therefore, you must first navigate to the whisper.cpp folder.</p><p>To do this in Terminal, type <strong>cd </strong>(with a space) and drag the whisper.cpp folder (the path to it will be automatically written). Press Enter.</p><p>4. Build Whisper.</p><p>Run <strong>make</strong> command. If this doesn’t work, you don’t have the right packages, so you need to install them.</p><p>To do this, install <a href="https://brew.sh/">brew</a>. Insert and execute this line in Terminal:</p><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><p>Once the process has finished, do not close Terminal — brew will prompt you to run two more commands. Execute one at a time: the first, then the second.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrO5v_RwptBk7qgC65WNSA.png" /></figure><p>Run <strong>make</strong> again. This time it should work.</p><p>5. Run <strong>./main</strong>.</p><p>The answer should be something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTsta67_osTRyldAlgOAxQ.png" /></figure><p>This is also a help sheet with additional parameters that Whisper supports. But more about them later.</p><p>6. Download a model.</p><p>The following models are available in whisper.cpp (the larger the model, the better the quality and the longer the decoding time):</p><p>tiny.en<br>tiny<br>base.en<br>base<br>small.en<br>small<br>medium.en<br>medium<br>large-v1<br>large</p><p>The most interesting one is large. That’s what we download. Run the command:</p><pre>make large</pre><p>7. Run Whisper and do a test.</p><p>Download an <a href="https://github.com/ggerganov/whisper.cpp/blob/master/samples/jfk.wav?raw=true">audio sample</a>, insert the command and drag the sample into Terminal. It will look something like this:</p><pre>./main -m models/ggml-large.bin -f /Users/Name/Files/whisper.cpp-master/samples_jfk.wav</pre><p>The result is highlighted in red:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3dPAoegK1CV8IeCsAeJsg.png" /></figure><p>Nice! Everything works. You can now do transcripts of your own files.</p><h3>Transcribe your audio</h3><p>The main difficulty is that only <em>.wav</em> files with a frequency of 16kHz are currently supported. No big deal.</p><p>1. Convert the file.</p><p>You can do this any way you want, even directly in Terminal. To do this, install ffmpeg with the command:</p><pre>brew install ffmpeg</pre><p>Then use the <strong>cd</strong> command to navigate to the folder with your file (put it in the whisper.cpp folder for convenience) and run the desired command — you can convert both video and audio sources. For example, let’s take <a href="https://www.youtube.com/watch?v=Nfu30AbwNMA&amp;t=136s">this video</a> and download it in two formats: <em>.mp4</em> and <em>.mp3</em>.</p><p>Command for audio file:</p><pre>ffmpeg -i polyglot.mp3 -ac 1 -ar 16000 polyglot.wav</pre><p>Command for video file:</p><pre>ffmpeg -i /Users/Name/Files/whisper.cpp-master/polyglot.mp4 -ac 1 -ar 16000 polyglotvideo.wav</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHJeY86Vxe-bl2Pq9jg2Eg.png" /></figure><p>2. Run Whisper.</p><p><em>Don’t forget to go to the whisper.cpp folder!</em></p><p>Write the most basic command to start Whisper:</p><pre>./main -m models/ggml-large.bin -f /Users/Name/Files/whisper.cpp-master/affordable.wav</pre><p>Done. You can copy the text from the terminal and do whatever you like with it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hrdzo-AAzNc7iZECiszwtw.png" /></figure><p>But it is possible to make the process more convenient. You need to use additional parameters.</p><h3>Advanced parameters for Whisper</h3><p>Go to the whisper.cpp folder (via cd) and type the command ./main. This window will open:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTsta67_osTRyldAlgOAxQ.png" /></figure><p>Any of these parameters can be used in the run command. We suggest this minimum set to get the text without timecodes and in the separate file:</p><pre>./main -l en -m models/ggml-large.bin -nt -otxt -f /Users/Name/Files/whisper.cpp-master/affordable.wav</pre><p>What these parameters mean:</p><p><strong>./main</strong> — command to start Whisper.<br><strong>-l</strong> — select language of source file. Sometimes Whisper can translate speech immediately into English. To keep the original language, add this option.<br><strong>-m</strong> — select transcription model, which you have previously uploaded.<br><strong>-nt</strong> — remove timecodes from the text, so you don’t have to delete them manually later.<br><strong>-otxt</strong> — export the text to a .txt file after the transcription is completed (it will be in the same folder where the audio file is located).<br><strong>-f </strong>— path to .wav file to be decrypted.</p><p>Result in Terminal without timecodes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWANYEzDm3Il4_dvCskG8A.png" /></figure><p>And a text file will appear in the folder with source audio file:</p><p>Try experimenting with other parameters as well, e.g. another useful one:</p><p><strong>-osrt </strong>— will make an .srt file with subtitles to the video.<br><strong>-tr</strong> — translates the transcript into the desired language immediately.<br><strong>-su</strong> — speed up audio by half.</p><h3>Three templates</h3><p>The parameters you need are already entered here, all you have to do is specify the path to the file in .wav 16KHz format.</p><ol><li>Transcribe English speech. No timecodes, export .txt.</li></ol><pre>./main -l en -m models/ggml-large.bin -nt -otxt -f {file path}</pre><p>2. Transcribe speech in any language and translate into English. No timecodes, export .txt.</p><pre>./main -m models/ggml-large.bin -tr -nt -otxt -f {file path}</pre><p>3. Make subtitles for the English video. Export .srt.</p><pre>./main -l en -m models/ggml-large.bin -osrt -f {file path}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f6709db6010" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gimz/how-to-install-whisper-on-mac-openais-speech-to-text-recognition-system-1f6709db6010">How to install Whisper on Mac, an amazing OpenAI’s speech-to-text recognition system</a> was originally published in <a href="https://medium.com/gimz">GIMZ</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Whisper — a Speech Recognition Model that turns audio into text]]></title>
            <link>https://medium.com/gimz/how-to-use-whisper-a-speech-recognition-model-that-turns-audio-into-text-a10bf182d85b?source=rss-a4a9895538c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a10bf182d85b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Egor Menyaylo]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 12:53:18 GMT</pubDate>
            <atom:updated>2023-02-17T15:08:13.354Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to use Whisper — an OpenAI Speech Recognition Model that turns audio into text with up to 99% accuracy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nT0KECx5gnxD0WcbPV8wGw.jpeg" /><figcaption>image generated by Midjourney</figcaption></figure><p>Whisper is a speech transcription system from the creators of ChatGPT. Anyone can use it, and it’s completely free, but there’s one problem.</p><p>Whisper does not have a web version like ChatGPT. You have to install it manually, read the guides written by the developers for the developers, write some code, and so on.</p><p>But in fact, you can try the neural network without even opening GitHub. Here’s how to do it.</p><h3>Who can use it</h3><p>Editors, speakers and anyone who needs to do speech-to-text. And there can be absolutely different ways of using it:</p><ul><li>If you made a working call with Zoom or Google Meet — you get a text that helps you dive into the context, make a follow-up, and don’t miss any details.</li><li>Conducted an interview — got a ready-made text draft right away.</li><li>Giving a presentation at a conference — you get an article with minimum effort.</li><li>Recorded a lecture or presentation of a project — got a ready text version.</li><li>Or made subtitles and so on.</li></ul><p>The system is trained on 680 000 hours of speech data from the network and recognises 99 languages.</p><h3>How to use Whisper</h3><p>There are three main ways:</p><p><strong>1. Hardcore, but the best (local installation).</strong> Go to GitHub, dig into sources, read tutorials, and install Whisper locally on your computer (both Mac and PC will work).</p><ul><li>Pros: works offline and fast, especially on good hardware.</li><li>Cons: Not everyone will want to understand it.</li></ul><p><strong>2. Simple, but slow (in the cloud).</strong> Right in the browser, and it takes literally five minutes to set up. You’ll need <a href="https://colab.research.google.com/">Google Colab</a> (kind of like Google Docs, only for writing Python code) and a few simple commands.</p><ul><li>Pros: you don’t have to bother installing it, you can use it on any device. Good way to get familiar with Whisper.</li><li>Cons: it’s slow, and you have to re-download the model (up to 3GB) every time you restart it. Also, the service’s free computing resources are limited and all data is deleted after 12 hours — restrictions can be removed by taking out a <a href="https://colab.research.google.com/signup">paid subscription</a>.</li></ul><p><strong>3. Convenient, but paid (app).</strong> Native Mac app, but the free version of <a href="https://goodsnooze.gumroad.com/l/macwhisper">MacWhisper</a> only supports the simplest recognition patterns.</p><ul><li>Pros: install and use.</li><li>Cons: you have to pay 10 euros for good results. But even the free version does not support the most advanced recognition model large-v2.</li></ul><p>We’ll leave the first method for next time (it has its own nuances) and tell you about the second one, so that everyone can test the neural network and understand whether you need it or not.</p><h3>Whisper in your browser</h3><p>The method should work on any device, even smartphones, but this is not certain. Certain — it works on desktop browsers.</p><p>1. Create a new Google Colab file. Simply click on the <a href="https://colab.research.google.com/#create=true">link</a>.</p><p>2. Enable GPU (works without it, but it’s better to choose).</p><p>Menu → Runtime → Change runtime type</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4NZ5hAE2UP0bBHNZ" /></figure><p>Select GPU as the hardware accelerator and click “Save”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HLjPyw5OdJHvXhdt" /></figure><p>3. Install Whisper</p><p>Paste the code below into an empty box and run it (the Play button next to the left of the box or the Ctrl + Enter). The installation will take a couple of minutes.</p><pre>!pip install git+https://github.com/openai/whisper.git<br>!sudo apt update &amp;&amp; sudo apt install ffmpeg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CKkVFRb3ruEI8FgN" /></figure><p>4. Upload an audio file.</p><p>Definitely supports <em>.mp4</em> video and <em>.mp3</em>, <em>.wav</em>, <em>.m4a</em> audio. We tested.</p><p>In the left column, press folder and download the file using any method. You can simply drag and drop it into the browser in any formats (<em>.mp3</em> and <em>.m4a</em> are definitely supported).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PVaqW-dPUTOTjDoj" /></figure><p>5. Run Whisper.</p><p>Write the command below with your file name (we took <a href="https://www.youtube.com/watch?v=Nfu30AbwNMA&amp;t=136s">this one</a>).</p><pre>!whisper &quot;Polyglot speaking in 12 languages.mp3&quot;</pre><p>Then press Play. Whisper will start transcribing, and after that upload text files to the same place where you uploaded the audio file. You can download them (there will be no timestamps like on the screenshot) in <em>.json</em>, <em>.srt</em>, <em>.tsv</em>, <em>.txt</em> and <em>.vtt</em> formats.</p><p>The results are impressive. Whisper recognised English and Spanish speech and transcribed them into text. But further languages were immediately translated into English, because it detected English as the main language of the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c9rtj87W3UGKo5yY" /></figure><p>Source language can be specified by adding the — language parameter. For example:</p><pre>!whisper &quot;Polyglot speaking in 12 languages.mp3&quot; –-language Italian</pre><p><em>We have also tried a normal recording, which was made on a dictaphone. There is no processing, raw source. At the same time, if the recording is absolutely bad, you can try to use </em><a href="https://podcast.adobe.com/enhance"><em>Enhance Speech from Adobe</em></a><em> to improve the sound quality. It works very well, too.</em></p><h3>Models and quality of transcription</h3><p>Whisper has several recognition <a href="https://github.com/openai/whisper/blob/main/model-card.md">models</a>, the bigger the model, the steeper the result and the longer the run time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*p79dKAtO4-JjjqJ9LdTihg@2x.png" /></figure><p>The most advanced <strong>large-v2</strong> is trained on the same dataset as <strong>large</strong> — but 2.5 times more, which improves the final result.</p><p>By default, Google Colab will use a <strong>small</strong> model. During the test, such a model transcribed a five-minute recording in 40 seconds, and an hour-long one in 8 minutes. It’s fast, but the result is appropriate. Not too bad, the meaning of the text will be clear, but the nuances can slip away.</p><p>Let’s run the same file, but on a large-v2 model:</p><pre>!whisper &quot;Polyglot speaking in 12 languages.mp3&quot; --model large-v2</pre><p>The results are even better. This time, the model transcribed not only English and Spanish, but all other languages as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zgrsYPLf3iDVYyWx" /></figure><p>Whisper has some other parameters, you can see them by writing the command:</p><pre>!whisper -h</pre><p>At least you can play around with it in your browser. It’s better to install it on your computer and compare the speed. When we do it, we’ll tell you everything.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a10bf182d85b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gimz/how-to-use-whisper-a-speech-recognition-model-that-turns-audio-into-text-a10bf182d85b">How to use Whisper — a Speech Recognition Model that turns audio into text</a> was originally published in <a href="https://medium.com/gimz">GIMZ</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>