Automationscribe.com
  • Home
  • AI Scribe
  • AI Tools
  • Artificial Intelligence
  • Contact Us
No Result
View All Result
Automation Scribe
  • Home
  • AI Scribe
  • AI Tools
  • Artificial Intelligence
  • Contact Us
No Result
View All Result
Automationscribe.com
No Result
View All Result

Use OpenAI Whisper for Automated Transcriptions

admin by admin
June 26, 2025
in Artificial Intelligence
0
Use OpenAI Whisper for Automated Transcriptions
399
SHARES
2.3k
VIEWS
Share on FacebookShare on Twitter


improvement currently with giant language fashions (LLMs). A number of the main focus is on the question-answering you are able to do with each pure text-based fashions, or vision-language fashions (VLMs), the place you can even enter photographs.

Nevertheless, there may be one other dimension that has advanced a ton over the previous few years: Audio. Fashions that may each transcribe (speech -> textual content), speech synthesis (textual content -> speech), and likewise speech-to-speech, the place you’ve gotten an entire dialog with a language mannequin, with audio going each out and in.

The arcitecture and and coaching pipeline for OpenAI’s Whisper mannequin. Picture from OpenAI Whisper GitHub repository with MIT license.

On this article, I’ll focus on how I’m using the event throughout the audio mannequin house to my benefit, changing into an much more environment friendly programmer.

That is an instance video of me utilizing the transcription device. I first choose the immediate area in Cursor and use my hotkey to activate the microphone, which is indicated by the orange icon within the prime left. I then communicate out the sentence I wish to transcribe, and it rapidly seems within the immediate window with out me having to kind on the keyboard in any respect. This can be a extra environment friendly method to kind lengthy English prompts into your editor. Video by the writer.

Motivation

My major motivation for writing this text is that I’m regularly searching for methods to turn into a extra environment friendly programmer. After utilizing the ChatGPT cellular app for some time, I found their transcription choice (the microphone icon to the appropriate within the consumer enter area). I used the transcription and rapidly realized how significantly better this transcription is in comparison with others I’ve used earlier than, corresponding to Apple’s built-in iPhone transcription.

OpenAI’s transcription nearly at all times captures all of my phrases, with only a few errors. Even when I exploit much less widespread phrases, for instance, acronyms associated to pc science, it’s nonetheless capable of choose up what I’m saying.

The transcription icon from the OpenAI utility. Picture by the writer, taken from OpenAI’s ChatGPT.

This transcription was solely out there within the ChatGPT app. Nevertheless, I do know that OpenAI has an API endpoint for his or her Whisper mannequin, which is (presumably) the identical mannequin they’re utilizing to transcribe textual content within the app. I thus wished to set this mannequin up on my Mac to be out there through a shortcut.

(I do know there are apps corresponding to Macwhisper out there, however I wished to develop a very free answer, aside from the prices of the API calls themselves)

Conditions

  • Alfred (I can be utilizing Alfred on the Mac to set off some scripts. Nevertheless, alternate options to this additionally exist. Usually, you want a method to set off scripts in your Mac / PC from a hotkey.

Execs

The principle benefit of utilizing this transcription is that you would be able to enter phrases into your pc extra rapidly. Once I kind as rapidly as I can on my pc, I’m not even capable of attain 100 phrases per minute, and if I’m to kind at that velocity, I actually should focus. Nevertheless, the common speaking velocity is at a minimal of 110, based on this article.

This implies you generally is a lot more practical if you’ll be able to communicate your phrases with transcription, as a substitute of typing them out on the keyboard.

I feel that is particularly related after the rise of huge language fashions corresponding to ChatGPT. You spend extra time prompting the language fashions, for instance, asking inquiries to ChatGPT, or prompting the cursor to implement a characteristic, or fixing a bug. Thus, using the English language is way more prevalent now than earlier than, in comparison with using programming languages corresponding to Python immediately.

Notice: After all, you’ll nonetheless be writing numerous code, however from expertise, I spend much more time prompting the cursor, for instance, with in depth English prompts, through which case, utilizing this transcription saves me numerous time.

Cons

There can, nevertheless, be some downsides to utilizing the transcription as effectively. One of many predominant ones is that numerous instances, you do not need to talk out loud when programming. You is likely to be sitting within the airport (as I’m when writing this text), and even in your workplace. If you’re in these situations, you most likely don’t wish to disturb these round you by talking out loud. Nevertheless, in case you are sitting in a house workplace, that is naturally not an issue.

One other unfavorable aspect is that smaller prompts won’t be that a lot quicker. Think about this: if you happen to simply wish to write a immediate of a single sentence, it is going to, in lots of situations, be quicker simply to kind the immediate out by hand. That is due to the delay in beginning, stopping, and transcribing audio into textual content. Sending the API name takes just a little little bit of time, and the shorter the immediate you’ve gotten, the bigger fraction of the time you must spend ready for the response.

The right way to implement

You’ll be able to see the code I used on this article on my GitHub. Nevertheless, you additionally want so as to add hotkeys to run the scripts.

First, you must:

  • Clone the GitHub repository:
git clone https://github.com/EivindKjosbakken/whisper-shortcut.git
  • Create a digital atmosphere known as .venv and set up the required packages:
python3 -m venv .venv
supply .venv/bin/activate
pip set up -r necessities.txt
  • Get an OpenAI API Key. You are able to do that by:
    • Going to the OpenAI API Overview, logging in/making a profile
    • Go to your profile, and API Keys
    • Create a brand new key. Keep in mind to repeat the important thing, as you will be unable to see it once more

The scripts from the GitHub repository work by:

  • start_recording.sh — begins recording your voice. The primary time you utilize this, it is going to ask you for permission to make use of the microphone
  • stop_recording.sh — sends a cease sign to the script to cease recording. Then sends the recorded audio to OpenAI for transcription. Moreover, it provides the transcribed textual content to your clipboard and pastes the textual content if in case you have a textual content area in your PC chosen

The whole repository is on the market with an MIT license.

Alfred

Yow will discover the Alfred workflow on the GitHub repository right here: Transcribe.alfredworkflow.

That is how I arrange the Alfred workflow:

My Alfred workflow. I’ve two hotkeys, one to start out the transcription (document voice), and one to cease transcription (cease recording, and ship the audio to the OpenAI Whisper API for transcription). The choice + Q command runs the start_recording.sh script, and the choice + W run the stop_recording.sh script. You’ll be able to, after all, change the hotkeys for these instructions. Picture by the writer.

You’ll be able to merely obtain it and add it to your Alfred.

Additionally, keep in mind to have a terminal window open everytime you wish to run this script, as you activate the Python script from the terminal. I needed to do it this fashion as a result of if the script was activated immediately from Alfred, I obtained permission points. The primary time you run the script, try to be prompted to present your terminal entry to the microphone, which you need to approve.

Value

An essential consideration when utilizing APIs corresponding to OpenAI Whisper is the price of the API utilization. I might contemplate the price of utilizing OpenAI’s Whisper mannequin reasonably excessive. As at all times, the price is totally depending on how a lot you utilize the mannequin. I might say I exploit the mannequin as much as 25 instances a day, as much as 150 phrases, and the price is lower than 1 greenback per day.

This implies, nevertheless, that if you happen to use the mannequin lots, you possibly can see prices as much as 30 {dollars} per 30 days, which is unquestionably a considerable value. Nevertheless, I feel it’s essential to be aware of the time financial savings you’ve gotten from the mannequin. If every mannequin utilization saves you 30 seconds, and you utilize it 20 instances per day, you’ve gotten simply saved ten minutes of your day. Personally, I’m keen to pay one greenback to save lots of ten minutes of my day, performing a activity (writing on my keyboard), that doesn’t actually grant me another profit. If any, utilizing your keyboard might contribute to the next danger of accidents corresponding to carpal tunnel syndrome. Utilizing the mannequin is thus positively value it for me.

Conclusion

On this article, I began off discussing the immense advances inside language fashions in the previous few years. This has helped us create highly effective chatbots, saving us monumental quantities of time. Nevertheless, with the advances of language fashions, we have now additionally seen advances in voice fashions. Transcription utilizing OpenAI Whisper is now close to excellent (from private expertise), which makes it a strong device you should use to enter phrases in your pc extra successfully. I mentioned the professionals and cons of utilizing OpenAI Whisper in your PC, and I additionally went step-by-step via how one can implement it by yourself pc.

Tags: AutomatedOpenAItranscriptionsWhisper
Previous Post

Construct an clever multi-agent enterprise professional utilizing Amazon Bedrock

Next Post

Structured information response with Amazon Bedrock: Immediate Engineering and Instrument Use

Next Post
Structured information response with Amazon Bedrock: Immediate Engineering and Instrument Use

Structured information response with Amazon Bedrock: Immediate Engineering and Instrument Use

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular News

  • How Aviva constructed a scalable, safe, and dependable MLOps platform utilizing Amazon SageMaker

    How Aviva constructed a scalable, safe, and dependable MLOps platform utilizing Amazon SageMaker

    401 shares
    Share 160 Tweet 100
  • Diffusion Mannequin from Scratch in Pytorch | by Nicholas DiSalvo | Jul, 2024

    401 shares
    Share 160 Tweet 100
  • Unlocking Japanese LLMs with AWS Trainium: Innovators Showcase from the AWS LLM Growth Assist Program

    401 shares
    Share 160 Tweet 100
  • Proton launches ‘Privacy-First’ AI Email Assistant to Compete with Google and Microsoft

    401 shares
    Share 160 Tweet 100
  • Streamlit fairly styled dataframes half 1: utilizing the pandas Styler

    400 shares
    Share 160 Tweet 100

About Us

Automation Scribe is your go-to site for easy-to-understand Artificial Intelligence (AI) articles. Discover insights on AI tools, AI Scribe, and more. Stay updated with the latest advancements in AI technology. Dive into the world of automation with simplified explanations and informative content. Visit us today!

Category

  • AI Scribe
  • AI Tools
  • Artificial Intelligence

Recent Posts

  • Structured information response with Amazon Bedrock: Immediate Engineering and Instrument Use
  • Use OpenAI Whisper for Automated Transcriptions
  • Construct an clever multi-agent enterprise professional utilizing Amazon Bedrock
  • Home
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions

© 2024 automationscribe.com. All rights reserved.

No Result
View All Result
  • Home
  • AI Scribe
  • AI Tools
  • Artificial Intelligence
  • Contact Us

© 2024 automationscribe.com. All rights reserved.