{"id":5030,"date":"2023-04-20T15:27:00","date_gmt":"2023-04-20T20:27:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5030"},"modified":"2023-04-20T15:02:28","modified_gmt":"2023-04-20T20:02:28","slug":"install-and-use-opanai-whisper","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/install-and-use-opanai-whisper\/","title":{"rendered":"Install and Use OpanAI Whisper"},"content":{"rendered":"\n<p>These commands work for Ubuntu.  Should be simple to change for other Linux distros.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Nvidia and CUDA drivers<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install nvidia-driver-530 nvidia-cuda-toolkit<\/pre>\n\n\n\n<p>Reboot so the system uses the driver.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install pip and ffmpeg<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install python3-pip<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install ffmpeg<\/pre>\n\n\n\n<p>Now we can install whisper with<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install -U openai-whisper<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Run Whisper<\/h2>\n\n\n\n<p>After it is installed, it should be able to run it like <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">whisper audio.mp3 --model medium<\/pre>\n\n\n\n<p>Change out medium to the model you would like to use.  It will then download the model and then work get to work on transcribing it.  The .en models i.e. medium.en, seem to perform better then the other ones.  If you are using English that is.<\/p>\n\n\n\n<p>If you receive a &#8220;Command &#8216;whisper&#8217; not found&#8221; error, you may not have ~\/.local\/bin in your user PATH.  Either add ~\/.local\/bin to your PATH, or run whisper with the full path<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~\/.local\/bin\/whisper audio.mp3 --model medium<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>OpenAI Whisper GitHub link.<br><a href=\"https:\/\/github.com\/openai\/whisper\">https:\/\/github.com\/openai\/whisper<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>These commands work for Ubuntu. Should be simple to change for other Linux distros. Install Nvidia and CUDA drivers sudo apt install nvidia-driver-530 nvidia-cuda-toolkit Reboot so the system uses the driver. Install pip and ffmpeg sudo apt install python3-pip sudo &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/install-and-use-opanai-whisper\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1458],"tags":[1454,1023,1466,1468,1467],"class_list":["post-5030","post","type-post","status-publish","format-standard","hentry","category-ai","tag-ai","tag-audio","tag-openai","tag-speech-to-text","tag-whisper"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=5030"}],"version-history":[{"count":3,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5030\/revisions"}],"predecessor-version":[{"id":5034,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5030\/revisions\/5034"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}