{"id":3512,"date":"2022-10-17T15:49:44","date_gmt":"2022-10-17T06:49:44","guid":{"rendered":"https:\/\/aiacademy.jp\/media\/?p=3512"},"modified":"2024-09-04T10:17:57","modified_gmt":"2024-09-04T01:17:57","slug":"%e3%80%90whisper%e3%80%91python%e3%81%a7%e9%9f%b3%e5%a3%b0%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e6%9b%b8%e3%81%8d%e5%87%ba%e3%81%97%e3%81%97%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=3512","title":{"rendered":"\u3010Whisper\u3011Python\u3067\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u51fa\u3057\u3066\u307f\u3088\u3046\uff01"},"content":{"rendered":"\n<div class=\"toc\">    <div id=\"toc_container\" class=\"sgb-toc--no-bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <span><\/span>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-0\">Whisper\u3068\u306f<\/a>      <\/li>      <li>        <a href=\"#i-1\">Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057\u3059\u308b\u74b0\u5883\u306e\u6e96\u5099<\/a>      <\/li>      <li>        <a href=\"#i-2\">\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-3\">Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-4\">AI\u306e\u57fa\u790e\u304b\u3089\u6a5f\u68b0\u5b66\u7fd2\u6280\u8853\u3092\u52b9\u7387\u3088\u304f\u8eab\u306b\u4ed8\u3051\u305f\u3044\u65b9\u3078<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><div class=\"toc\"><p><\/p>\n<\/div><h2 class=\"wp-block-heading\" id=\"i-0\">Whisper\u3068\u306f<\/h2>\n\n\n\n<p><a href=\"https:\/\/openai.com\/blog\/whisper\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Whisper<\/a>\u3068\u306f\u3001OpenAI\u304c\u958b\u767a\u3057\u3066\u3044\u308b\u6c4e\u7528\u7684\u306a\u97f3\u58f0\u8a8d\u8b58\u30e2\u30c7\u30eb\u3067\u3059\u3002<br>Web\u4e0a\u304b\u3089\u53ce\u96c6\u3057\u305f68\u4e07\u6642\u9593\u306b\u304a\u3088\u3076\u97f3\u58f0\u30c7\u30fc\u30bf\u3067\u5b66\u7fd2\u3055\u308c\u3001\u97f3\u58f0\u7ffb\u8a33\u3084\u8a00\u8a9e\u8b58\u5225\u3060\u3051\u3067\u306a\u304f\u3001\u591a\u8a00\u8a9e\u97f3\u58f0\u8a8d\u8b58\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30eb\u30c1\u30bf\u30b9\u30af\u30e2\u30c7\u30eb\u3067\u3082\u3042\u308b\u30e2\u30c7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<br>Whisper\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u97f3\u58f0\u304b\u3089\u306e\u6587\u5b57\u8d77\u3053\u3057\u3068\u97f3\u58f0\u304b\u3089\u306e\u7ffb\u8a33\u51e6\u7406\u3092\u884c\u3048\u307e\u3059\u3002<br>\u3053\u306e\u8a18\u4e8b\u3067\u306f2\u3064\u306e\u65b9\u6cd5\u3092Python\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>https:\/\/openai.com\/blog\/whisper\/<br>https:\/\/github.com\/openai\/whisper<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u65e5\u672c\u8a9e\u306e\u5358\u8a9e\u8aa4\u308a\u7387\uff08WER\/Word Error Rate\uff09\u306f6.4%\u3068\u30b0\u30e9\u30d5\u306b\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059\u3002<br>\u3053\u306e\u6570\u5024\u306f\u3001Whisper\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u4ed6\u306e\u8a00\u8a9e\u3068\u6bd4\u8f03\u3057\u3066\u3082\u3001\u4e0a\u4f4d\u306b\u4f4d\u7f6e\u3057\u3066\u304a\u308a\u3001\u9ad8\u3044\u7cbe\u5ea6\u3067\u6587\u5b57\u8d77\u3053\u3057\u304c\u53ef\u80fd\u3060\u3068\u89e3\u91c8\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"418\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.12.24-1024x418.png\" alt=\"\" class=\"wp-image-3515\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.12.24-1024x418.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.12.24-300x122.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.12.24-768x313.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.12.24-1536x627.png 1536w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.12.24-940x384.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.12.24.png 1578w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<p>\u307e\u305f\u30015\u3064\u306e\u30e2\u30c7\u30eb\u30b5\u30a4\u30ba\u304c\u63d0\u4f9b\u3055\u308c\u3066\u304a\u308a\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u300cbase\u300d\u300csmall\u300d\u300clarge\u300d\u306e\uff13\u7a2e\u985e\u3092\u5229\u7528\u3057\u3066\u307f\u307e\u3059\u3002<br>\u4e00\u756a\u5c0f\u3055\u3044\u30b5\u30a4\u30ba\u304c\u300ctiny\u300d\u3067\u4e00\u756a\u5927\u304d\u3044\u300clarge\u300d\u306b\u306a\u308b\u307b\u3069\u7cbe\u5ea6\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"285\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.13.12-1024x285.png\" alt=\"\" class=\"wp-image-3516\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.13.12-1024x285.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.13.12-300x84.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.13.12-768x214.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.13.12-940x262.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.13.12.png 1458w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<p>\u753b\u50cf\u5f15\u7528\uff1ahttps:\/\/github.com\/openai\/whisper<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-1\">Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057\u3059\u308b\u74b0\u5883\u306e\u6e96\u5099<\/h2>\n\n\n\n<p>Google\u3000Colab \u7121\u6599\u7248GPU\u74b0\u5883\u3092\u7528\u3044\u3066\u3001\u624b\u5143\u3067\u9332\u97f3\u3057\u305f\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u8d77\u3053\u3057\u3092\u884c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306fColab\u306e\u300c\u30e9\u30f3\u30bf\u30a4\u30e0\u306e\u30bf\u30a4\u30d7\u5909\u66f4\u300d\u3088\u308aGPU\u74b0\u5883\u306b\u5909\u66f4\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/aiacademy.jp\/media\/?p=1037\" target=\"_blank\" rel=\"noopener\" title=\"\">Google Colaboratory \u3068\u306f\uff1f<\/a><\/p>\n\n\n\n<p>\u6b21\u306b\u3001Whisper\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/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>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067Whisper\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import whisper<\/code><\/pre>\n\n\n\n<p>\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u306a\u304f\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"321\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.46.44-1024x321.png\" alt=\"\" class=\"wp-image-3517\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.46.44-1024x321.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.46.44-300x94.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.46.44-768x241.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.46.44-940x295.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.46.44.png 1486w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-2\">\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u3001Mac\u74b0\u5883\u306eQuickTime Player\u3092\u7528\u3044\u3066\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\uff08.m4a\uff09\u3092\u6e96\u5099\u3057\u307e\u3057\u305f\u3002<br>\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u300cmp4\u300d\u3084\u300cwav\u300d\u30d5\u30a1\u30a4\u30eb\u7b49\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4efb\u610f\u306e\u65b9\u6cd5\u3067\u97f3\u58f0\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u6e96\u5099\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092Google Colab\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u300ctest.m4a\u300d\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"398\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.54.02.png\" alt=\"\" class=\"wp-image-3522\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.54.02.png 832w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.54.02-300x144.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-10-17-15.54.02-768x367.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\"><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><meta charset=\"utf-8\">\u53c2\u8003\uff1a<a href=\"https:\/\/aiacademy.jp\/media\/?p=1037\" target=\"_blank\" rel=\"noopener\" title=\"\">Google Colaboratory \u3068\u306f\uff1f<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-3\">Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057<\/h2>\n\n\n\n<p>\u7d9a\u3044\u3066\u3001Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u8a18\u8ff0\u3059\u308b\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><meta charset=\"utf-8\">import whisper\nmodel = whisper.load_model(\"base\")\n# result = model.transcribe(\"\u6e96\u5099\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\") # \u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306ftest.m4a\u3092\u7528\u3044\u307e\u3059\u3002\nresult = model.transcribe(\"\/content\/test.m4a\")\nprint(result[\"text\"])<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6587\u5b57\u8d77\u3053\u3057\u3055\u308c\u307e\u3059\u3002Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057\u3057\u305f\u6587\u7ae0\u304c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>AI\u30a2\u30ab\u30c7\u30df\u30fc\u3068\u306f\u3042\u306a\u305f\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30ab\u30ea\u30af\u30e9\u30e0\u3067\u3001Python AI\u3092\u5b9f\u8df5\u7684\u306b\u5b66\u3079\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u5b66\u7fd2\u8005\u306f\u4f5c\u308a\u305f\u3044\u3082\u306e\u3092\u4f5c\u308a\u306a\u304c\u3089\u5fc5\u8981\u306a\u30b9\u30ad\u30eb\u3092\u52b9\u7387\u3088\u304f\u898b\u306b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/code><\/pre>\n\n\n\n<p>\u6c17\u306b\u306a\u308b\u6240\u3068\u3057\u3066\u306f\u300c\u30ab\u30ea\u30af\u30e9\u30e0\u300d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u4ed6\u306f\u307b\u307c\u5b8c\u5168\u306b\u66f8\u304d\u51fa\u3057\u304c\u51fa\u6765\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d9a\u3044\u3066\u3001\u300csmall\u300d\u30e2\u30c7\u30eb\u3067\u66f8\u304d\u51fa\u3057\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import whisper\nmodel = whisper.load_model(\"small\")\nresult = model.transcribe(\"\/content\/test.m4a\")\nprint(result[\"text\"])<\/code><\/pre>\n\n\n\n<p><meta charset=\"utf-8\">Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057\u3057\u305f\u6587\u7ae0\u304c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>AI\u30a2\u30ab\u30c7\u30df\u30fc\u3068\u306f\u3042\u306a\u305f\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0\u3067Python AI\u3092\u5b9f\u8df5\u7684\u306b\u5b66\u3079\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u5b66\u7fd2\u8005\u306f\u4f5c\u308a\u305f\u3044\u3082\u306e\u3092\u4f5c\u308a\u306a\u304c\u3089\u5fc5\u8981\u306a\u30b9\u30ad\u30eb\u3092\u52b9\u7387\u3088\u304f\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/code><\/pre>\n\n\n\n<p>\u3053\u3061\u3089\u306f\u300cbase\u300d\u30e2\u30c7\u30eb\u3088\u308a\u826f\u3044\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br>\u30a2\u30ab\u30c7\u30df\u30fc\u304cAcademy\u306b\u306a\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3001Python AI\u3068\u3001\u304c\u5165\u3063\u3066\u306a\u3044\u7a0b\u5ea6\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u300cbase\u300d\u30e2\u30c7\u30eb\u3068\u300csmall\u300d\u30e2\u30c7\u30eb\u3067\u8a66\u3057\u307e\u3057\u305f\u304c\u3001\u4ed6\u306b\u3082\u300cmedium\u300d\u3084\u300clarge\u300d\u7248\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001\u300clarge\u300d\u7248\u3092\u8a66\u3057\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u304c\u66f8\u304d\u51fa\u3057\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>AI Academy\u3068\u306f\u3001\u3042\u306a\u305f\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0\u3067Python\u3001AI\u3092\u5b9f\u8df5\u7684\u306b\u5b66\u3079\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u5b66\u7fd2\u8005\u306f\u3001\u4f5c\u308a\u305f\u3044\u3082\u306e\u3092\u4f5c\u308a\u306a\u304c\u3089\u5fc5\u8981\u306a\u30b9\u30ad\u30eb\u3092\u52b9\u7387\u3088\u304f\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/code><\/pre>\n\n\n\n<p>\u5b8c\u74a7\u306b\u66f8\u304d\u51fa\u3057\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u203b\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30fc\u30bf\u91cf\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u300clarge\u300d\u7248\u306f\u5b9f\u884c\u3057\u3066\u304b\u3089\u5b9f\u884c\u5b8c\u4e86\u3059\u308b\u307e\u3067\uff11\u5206\u5f31\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import whisper\nmodel = whisper.load_model(\"large\")\nresult = model.transcribe(\"\/content\/test.m4a\")\nprint(result[\"text\"])<\/code><\/pre>\n\n\n\n<p>\u4eca\u56de\u306f\u66f8\u304d\u51fa\u3057\u3092\u4e2d\u5fc3\u306b\u89e3\u8aac\u3057\u307e\u3057\u305f\u304c\u3001\u7ffb\u8a33\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p><code>task=\"translate\"<\/code>\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>result = model.transcribe(\"\/content\/test.m4a\", verbose=True, language=\"ja\", task=\"translate\")\nprint(result[\"text\"])<\/code><\/pre>\n\n\n\n<p>\u51fa\u529b\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>AI Academy is a programming learning service that allows you to learn Python and AI in a practical way with your optimized curriculum. Students can learn the skills they need while making what they want to make.<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u304b\u3089\u3001\u304b\u306a\u308a\u9ad8\u7cbe\u5ea6\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br>\u4eca\u5f8c\u306f\u3001\u3042\u3089\u3086\u308b\u5834\u9762\u3067\u97f3\u58f0\u8a8d\u8b58\u306e\u6d3b\u7528\u304c\u671f\u5f85\u3067\u304d\u305d\u3046\u3067\u3059\u3002<br>\u76f4\u8fd1\u3067\u306f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3MTG\u306e\u97f3\u58f0\u3092\u66f8\u304d\u8d77\u3053\u3057\u306a\u3069\u306b\u6d3b\u7528\u3067\u304d\u305d\u3046\u3060\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-4\">AI\u306e\u57fa\u790e\u304b\u3089\u6a5f\u68b0\u5b66\u7fd2\u6280\u8853\u3092\u52b9\u7387\u3088\u304f\u8eab\u306b\u4ed8\u3051\u305f\u3044\u65b9\u3078<\/h1>\n\n\n\n<p>Whisper\u306b\u3088\u308b\u6587\u5b57\u8d77\u3053\u3057\u3001\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f\u3082\u3063\u3068\u5b66\u3073\u305f\u3044\u3068\u601d\u308f\u308c\u305f\u65b9\u306b<span class=\"keiko_green\">AI Academy Bootcamp\u306e\u516c\u5f0fLINE<\/span>\u3092\u3054\u6848\u5185\u3057\u307e\u3059\u3002\u53cb\u3060\u3061\u767b\u9332\u3057\u3066\u304f\u3060\u3055\u3063\u305f\u65b9\u306b<strong>\u7121\u6599\u8b1b\u7fa9\u3084\u7121\u6599\u52d5\u753b\u306e\u3054\u6848\u5185<\/strong>\u3001\u3055\u3089\u306b\u5b66\u3073\u305f\u3044\u65b9\u306b\u306f<strong>\u53d7\u8b1b\u5272\u5f15\u30af\u30fc\u30dd\u30f3\u306e\u30d7\u30ec\u30bc\u30f3\u30c8<\/strong>\u3082\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong><span class=\"keiko_green\">\u7121\u6599\u3067\u5b66\u3076\u30c1\u30e3\u30f3\u30b9\u3067\u3059\uff01<\/span><\/strong><\/p>\n\n\n<div id=\"sgb-css-id-1\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size is-style-fill has-medium-font-size\"><a class=\"wp-block-button__link has-vivid-green-cyan-background-color has-background wp-element-button\" href=\"https:\/\/lin.ee\/3E4GzWk\" rel=\"nofollow noopener\" target=\"_blank\">LINE\u53cb\u3060\u3061\u767b\u9332 \u25b6 \u6a5f\u68b0\u5b66\u7fd2\u30b3\u30fc\u30b9 \u25b6 \u53d7\u8b1b\u5272\u5f15\u30af\u30fc\u30dd\u30f3 \u7121\u6599\u52d5\u753b<\/a><\/div>\n<\/div>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/aiacademy.jp\/bootcamp\/\">AI Academy Bootcamp<\/a>\u306e<span class=\"keiko_blue\">\u3010<strong>\u52d5\u753b\u898b\u653e\u984c\u30d7\u30e9\u30f3\uff1a\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\u52d5\u753b\uff0b\u30c1\u30e3\u30c3\u30c8\u30b5\u30dd\u30fc\u30c8\u30d7\u30e9\u30f3\u3011 \uff16\u304b\u670835,000\u5186(\u7a0e\u8fbc)<\/strong><\/span>\u3067\u306f\u3001<strong>Python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/strong>\u3084<strong>AI\u57fa\u790e<\/strong>\u3001<strong>\u7d71\u8a08\u5b66<\/strong>\u3001<strong>\u6a5f\u68b0\u5b66\u7fd2<\/strong>\u3001<strong>SQL<\/strong>\u3001<strong>\u6df1\u5c64\u5b66\u7fd2\u306e\u57fa\u790e<\/strong>\u304b\u3089\u5fdc\u7528\u7bc4\u56f2\u307e\u3067\u5e45\u5e83\u304f\u5b66<span class=\"keiko_blue\">\u3076<\/span>\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br>\u72ec\u5b66\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u7fd2\u3057\u305f\u3051\u308c\u3069\u632b\u6298\u3057\u3066\u3057\u307e\u3063\u305f\u65b9\u3084\u3001\u6a5f\u68b0\u5b66\u7fd2\u3084\u6df1\u5c64\u5b66\u7fd2\u306b\u95a2\u3057\u3066\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u3092\u8b1b\u5e2b\u306b\u3044\u3064\u3067\u3082\u8cea\u554f\u3067\u304d\u308b\u74b0\u5883\u3067\u5b66\u3073\u305f\u3044\u3068\u3044\u3046\u65b9\u306f\u662f\u975e\u3054\u53d7\u8b1b\u3054\u691c\u8a0e\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/aiacademy.jp\/bootcamp\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-1024x341.png\" alt=\"\" class=\"wp-image-587\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_banner2.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6b21 Whisper\u3068\u306f Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057\u3059\u308b\u74b0\u5883\u306e\u6e96\u5099 \u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099 Whisper\u3067\u6587\u5b57\u8d77\u3053\u3057 AI\u306e\u57fa\u790e\u304b\u3089\u6a5f\u68b0\u5b66\u7fd2\u6280\u8853\u3092\u52b9\u7387\u3088\u304f\u8eab\u306b\u4ed8\u3051\u305f\u3044\u65b9\u3078 Whisper\u3068\u306f Whisper\u3068\u306f\u3001OpenA &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3513,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,130,88,187,198],"tags":[],"class_list":{"0":"post-3512","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"category-130","9":"category-88","10":"category-187","11":"category-198"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/3512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3512"}],"version-history":[{"count":10,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/3512\/revisions"}],"predecessor-version":[{"id":5053,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/3512\/revisions\/5053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/3513"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}