{"id":7314,"date":"2022-10-05T18:57:08","date_gmt":"2022-10-05T09:57:08","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=7314"},"modified":"2022-10-05T18:57:09","modified_gmt":"2022-10-05T09:57:09","slug":"post-7314","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2022\/10\/05\/post-7314\/","title":{"rendered":"Whisper\u3092Windows\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"\n<p>Whisper\u306f\u3001OpenAI\u304cMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u516c\u958b\u3057\u305f\u6c4e\u7528\u97f3\u58f0\u8a8d\u8b58\u30e2\u30c7\u30eb\u3002\u6a5f\u68b0\u5b66\u7fd2\u306e\u8a13\u7df4\u6e08\u307f\u306e\u30e2\u30c7\u30eb\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/openai.com\/blog\/whisper\/\">https:\/\/openai.com\/blog\/whisper\/<\/a><br><a href=\"https:\/\/github.com\/openai\/whisper\">https:\/\/github.com\/openai\/whisper<\/a><\/p>\n\n\n\n<p>\u3053\u308c\u3092\u8a66\u3059\u305f\u3081\u306b\u3001\u307b\u307c\u307e\u3063\u3055\u3089\u306aWindows11 Pro\u306e\u4e0a\u306b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u305f\u3002\u305d\u306e\u3068\u304d\u306e\u624b\u9806\u306f\u4e0b\u8a18\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Python\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>Python\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u3001Windows\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<p>Windows\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306f\u3001\u30e6\u30fc\u30b6\u74b0\u5883\u3067\u306f\u306a\u304f\u3001ALL\u30e6\u30fc\u30b6\u306e\u74b0\u5883\u3092\u9078\u629e\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3092C\u30c9\u30e9\u30a4\u30d6\u306e\u4e0b\u306b\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u3001\u305d\u3053\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u304c\u3088\u3044\u3002\u30e6\u30fc\u30b6\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u3001\u30e6\u30fc\u30b6\u540d\u3067\u65e5\u672c\u8a9e\u304c\u4f7f\u308f\u308c\u3066\u3044\u305f\u308a\u3057\u3066\u3001\u5b9f\u884c\u6642\u306b\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">PyTorch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u4e0b\u8a18\u306epytorch\u306e\u30b5\u30a4\u30c8\u3067\u78ba\u8a8d\u3057\u3066\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/pytorch.org\/get-started\/locally\/\">https:\/\/pytorch.org\/get-started\/locally\/<\/a><\/p>\n\n\n\n<p>NVIDIA\u306eGPU\u304c\u306a\u3044\u666e\u901a\u306ePC\uff08\u3068\u308a\u3042\u3048\u305aSurface Pro7\uff09\u306a\u306e\u3067\u3001Pytorch\u3082CPU\u7248\u3092\u9078\u629e\u3057\u305f\uff08CUDA\u306a\u3057\u306e\u74b0\u5883\uff09\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001Python\u6a19\u6e96\u306b\u3064\u3044\u3066\u304f\u308bpip3\u3067\u3002\u305d\u306e\u3068\u304d\u306e\u30b3\u30de\u30f3\u30c9\u306f\u4e0b\u8a18\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install torch torchvision torchaudio<\/code><\/pre>\n\n\n\n<p>\u3082\u3057\u3001pip3\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001Windows\u3092\u518d\u8d77\u52d5\u3057\u3066\u307f\u308b\u3002\u30d1\u30b9\u304c\u8a8d\u8b58\u3055\u308c\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FFMPEG\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u3044\u308d\u3044\u308d\u3068\u691c\u8a0e\u3057\u305f\u304c\u3001Windows\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u306echocolatey\u3092\u4f7f\u3046\u306e\u304c\u697d\u3060\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001chocolatey\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002Powershell\u3092\u7ba1\u7406\u8005\u6a29\u9650\u3067\u958b\u3044\u3066\u4e0b\u8a18\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-ExecutionPolicy Bypass -Scope Process -Force; &#91;System.Net.ServicePointManager]::SecurityProtocol = &#91;System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https:\/\/chocolatey.org\/install.ps1'))<\/code><\/pre>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u30d1\u30b9\u304c\u6b63\u5e38\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3060\u3063\u305f\u306e\u3067\u3001Windows\u3092\u518d\u8d77\u52d5\u3057\u305f\u3002<\/p>\n\n\n\n<p>Powershell\u3092\u7ba1\u7406\u8005\u6a29\u9650\u3067\u958b\u3044\u3066\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066ffmpeg\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>choco install ffmpeg<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Rust\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>Whisper\u306e\u30da\u30fc\u30b8\u306b\u3088\u308b\u3068\u3001\u5ff5\u306e\u305f\u3081\u3001 rust\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u3068\u306e\u3053\u3068\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install setuptools-rust<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Git\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u4e0b\u8a18\u306e\u30b5\u30a4\u30c8\u304b\u3089Windows\u7528\u306eGit\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/gitforwindows.org\/\">https:\/\/gitforwindows.org\/<\/a><\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001Windows\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Whisper\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>Powershell\u3092\u958b\u3044\u3066\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install git+https:\/\/github.com\/openai\/whisper.git<\/code><\/pre>\n\n\n\n<p>\u3084\u3063\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Whisper\u3067\u52d5\u753b\u30d5\u30a1\u30a4\u30eb\u306e\u97f3\u58f0\u8d77\u3053\u3057\u3092\u3084\u3063\u3066\u307f\u308b<\/h3>\n\n\n\n<p>Powershell\u3092\u8d77\u52d5\u3057\u3066\u3001\u4e0b\u8a18\u306e\u66f8\u5f0f\u3067Whisper\u3092\u5229\u7528\u3059\u308b\u3002\u5b9f\u969b\u306b\u52d5\u4f5c\u3059\u308b\u306e\u306f\u3001Python\u306e\u30b3\u30fc\u30c9\u3060\u304c\u3001\u4f7f\u3046\u3060\u3051\u306a\u3089Python\u3092\u8d77\u52d5\u3055\u305b\u306a\u304f\u3066\u3082\u3044\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>whisper \u30d5\u30a1\u30a4\u30eb\u540d --language Japanese --model small<\/code><\/pre>\n\n\n\n<p>\u300c&#8211;model xxx\u300d\u306exxx\u306b\u306f\u300ctiny\u300d\u300cbase\u300d\u300csmall\u300d\u300cmedium\u300d\u300clarge\u300d\u3092\u9078\u629e\u3057\u3066\u3001\u6307\u5b9a\u3059\u308b\u3002\u30e2\u30c7\u30eb\u306f\u3001\u51e6\u7406\u901f\u5ea6\u3068\u7cbe\u5ea6\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u306b\u306a\u308b\u3002\u30e2\u30c7\u30eb\u304cmedium\u3001large\u3068\u5927\u304d\u304f\u306a\u308b\u307b\u3069\u3001\u51e6\u7406\u8ca0\u8377\u304c\u5897\u3048\u308b\u3002<\/p>\n\n\n\n<p>\u5229\u7528\u3059\u308b\u30e2\u30c7\u30eb\u306e\u521d\u56de\u5b9f\u884c\u6642\u306b\u306f\u3001\u30e2\u30c7\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u884c\u308f\u308c\u308b\u305f\u3081\u3001\u51e6\u7406\u304c\u59cb\u307e\u308b\u307e\u3067\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u30011\u6642\u9593\u7a0b\u5ea6\u306eMP4\u306e\u52d5\u753b\u306e\u6587\u5b57\u8d77\u3053\u3057\u3092\u3001\u30e2\u30c7\u30ebsmall\u3067\u3055\u305b\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u7b2c10\u4e16\u4ee3\u306eCore i5\u3067\u306e\u51e6\u7406\u3067\u30015\u6642\u9593\u304b\u304b\u3063\u3066\u300130\u5206\u5f31\u3057\u304b\u51e6\u7406\u3067\u304d\u3066\u3044\u306a\u3044\u3002\u8a8d\u8b58\u306e\u7cbe\u5ea6\u3068\u3057\u3066\u306f\u3001\u6f22\u5b57\u3078\u306e\u5909\u63db\u3082\u542b\u3081\u3066\u3001\u304b\u306a\u308a\u8aad\u3081\u308b\u7cbe\u5ea6\u3060\u3002\u300cxxx\u4ee3\u300d\u304c\u300cxxx\u53f0\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u304b\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u8aad\u307e\u306a\u3044\u3068\u5909\u63db\u3067\u304d\u306a\u3044\u3082\u306e\u306f\u3001\u9055\u3063\u3066\u3044\u308b\u3051\u308c\u3069\u3001\u304a\u304a\u3080\u306d\u6587\u5b57\u8d77\u3053\u3057\u3067\u304d\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>NVIDIA\u306eGPU\u3092\u5165\u308c\u3066\u3001CUDA\u3067\u3001Pytorch\u306e\u51e6\u7406\u3092\u3055\u305b\u306a\u3044\u3068\u3001\u9ad8\u901f\u5316\u306f\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3082\u308f\u304b\u3063\u305f\u3002CPU\u3060\u3051\u3060\u3068\u3001\u5411\u304d\u4e0d\u5411\u304d\u306e\u4e0d\u5411\u304d\u306a\u51e6\u7406\u306a\u306e\u3067\u3001\u5b9f\u7528\u306b\u8010\u3048\u3089\u308c\u308b\u901f\u5ea6\u306f\u3060\u305b\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u300cbase\u300d\u3084\u300ctiny\u300d\u3082\u8a66\u3057\u3066\u307f\u306a\u3044\u3053\u3068\u306b\u306f\u7d50\u8ad6\u306f\u3060\u305b\u306a\u3044\u3051\u308c\u3069\u3082\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whisper\u306f\u3001OpenAI\u304cMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u516c\u958b\u3057\u305f\u6c4e\u7528\u97f3\u58f0\u8a8d\u8b58\u30e2\u30c7\u30eb\u3002\u6a5f\u68b0\u5b66\u7fd2\u306e\u8a13\u7df4\u6e08\u307f\u306e\u30e2\u30c7\u30eb\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002 https:\/\/openai.com\/blog\/whisper\/https:\/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[164,238],"class_list":["post-7314","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-python","tag-windows11"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/7314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=7314"}],"version-history":[{"count":2,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/7314\/revisions"}],"predecessor-version":[{"id":7316,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/7314\/revisions\/7316"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=7314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=7314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=7314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}