{"id":427,"date":"2025-10-24T07:00:00","date_gmt":"2025-10-23T23:00:00","guid":{"rendered":"https:\/\/smartaiunion.com\/?p=427"},"modified":"2025-10-23T20:10:08","modified_gmt":"2025-10-23T12:10:08","slug":"%e6%95%88%e7%8e%87%e6%8b%89%e6%bb%a1%ef%bc%81%e7%94%a8-whisper-cpp-%e6%90%ad%e5%bb%ba%e5%85%8d%e8%b4%b9%e6%9c%ac%e5%9c%b0%e8%af%ad%e9%9f%b3%e8%bd%ac%e5%86%99%e5%b7%a5%e4%bd%9c%e6%b5%81%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/smartaiunion.com\/index.php\/2025\/10\/24\/427\/","title":{"rendered":"\u6548\u7387\u62c9\u6ee1\uff01\u7528 whisper.cpp \u642d\u5efa\u514d\u8d39\u672c\u5730\u8bed\u97f3\u8f6c\u5199\u5de5\u4f5c\u6d41\uff0c\u4f1a\u8bae\u8bb0\u5f55\u3001\u89c6\u9891\u5b57\u5e55\u5168\u641e\u5b9a"},"content":{"rendered":"\n<p>\u8bed\u97f3\u8f6c\u5f55\u8fd9\u4e2a\u9886\u57df\uff0cOpenAI \u7684 Whisper \u6a21\u578b\u65e0\u7591\u662f\u76ee\u524d\u77e5\u540d\u5ea6\u6700\u5e7f\u3001\u652f\u6301\u8bed\u8a00\u6700\u591a\u7684\u9009\u62e9\u3002<\/p>\n\n\n\n<p>\u56f4\u7ed5 Whisper\uff0c\u4e5f\u6d8c\u73b0\u51fa\u4e86\u8bb8\u591a\u4f18\u79c0\u7684\u884d\u751f\u9879\u76ee\uff0c\u6bd4\u5982&nbsp;<code>faster-whisper<\/code>\uff0c\u4ee5\u53ca\u652f\u6301\u8bf4\u8bdd\u4eba\u5206\u79bb\u7684&nbsp;<code>whisperx<\/code>\u3002\u4ee5\u53ca\u672c\u6587\u8981\u4ecb\u7ecd\u7684<code>whisper.cpp<\/code>\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u9879\u76ee\u5730\u5740:&nbsp;<a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fgithub.com%2Fggml-org%2Fwhisper.cpp\" target=\"_blank\" rel=\"noreferrer noopener\">github.com\/ggml-org\/wh\u2026<\/a><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u9009\u62e9 whisper.cpp\uff1f<\/h2>\n\n\n\n<p><code>whisper.cpp<\/code>&nbsp;\u662f Whisper \u6a21\u578b\u7684\u4e00\u4e2a C++ \u5b9e\u73b0\u7248\u672c\uff0c\u5b83\u7684\u6838\u5fc3\u4f18\u52bf\u975e\u5e38\u7a81\u51fa\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u51e0\u4e4e\u65e0\u4f9d\u8d56<\/strong>\uff1a\u8fd9\u662f\u5b83\u6700\u5927\u7684\u4eae\u70b9\u3002\u4e0d\u540c\u4e8e\u5176\u4ed6\u9700\u8981\u901a\u8fc7\u00a0<code>pip<\/code>\u00a0\u5b89\u88c5\u4e00\u5927\u5806 Python \u5e93\u7684\u9879\u76ee\uff0c<code>whisper.cpp<\/code>\u00a0\u51e0\u4e4e\u6ca1\u6709\u4f9d\u8d56\u3002\u4f60\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u9677\u5165\u607c\u4eba\u7684\u73af\u5883\u914d\u7f6e\u3001\u6a21\u5757\u5b89\u88c5\u9519\u8bef\u548c\u7248\u672c\u51b2\u7a81\u7684\u201c\u6df1\u5751\u201d\u91cc\u4e86\u3002<\/li>\n\n\n\n<li><strong>\u6027\u80fd\u5353\u8d8a<\/strong>\uff1aC++ \u5e26\u6765\u7684\u539f\u751f\u6027\u80fd\u4f18\u52bf\uff0c\u8ba9\u5b83\u7684\u8f6c\u5f55\u901f\u5ea6\u975e\u5e38\u5feb\uff0c\u8d44\u6e90\u5360\u7528\u4e5f\u76f8\u5bf9\u8f83\u4f4e\u3002<\/li>\n\n\n\n<li><strong>\u8de8\u5e73\u53f0\u4e0e\u786c\u4ef6\u652f\u6301<\/strong>\uff1a\u65e0\u8bba\u662f Windows\u3001macOS\u8fd8\u662f Linux\uff0c\u5b83\u90fd\u80fd\u826f\u597d\u8fd0\u884c\u3002\u66f4\u68d2\u7684\u662f\uff0c\u5b83\u652f\u6301\u591a\u79cd\u786c\u4ef6\u52a0\u901f\uff0c\u4ece\u4e3b\u6d41\u7684 NVIDIA (CUDA)\u3001AMD (OpenCL) \u663e\u5361\uff0c\u5230\u82f9\u679c\u7684 Metal \u6846\u67b6\uff0c\u751a\u81f3\u662f\u4e13\u7528 NPU\uff0c\u90fd\u80fd\u5229\u7528\u8d77\u6765\u8fdb\u4e00\u6b65\u63d0\u901f\u3002<\/li>\n\n\n\n<li><strong>\u90e8\u7f72\u7b80\u5355<\/strong>\uff1a\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u5b98\u65b9\u7f16\u8bd1\u597d\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u89e3\u538b\u5373\u7528\uff0c\u6574\u4e2a\u7a0b\u5e8f\u5305\u975e\u5e38\u5c0f\u5de7\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u5f53\u7136\uff0c\u5b83\u4e5f\u6709\u4e00\u4e2a\u5bf9\u65b0\u624b\u6765\u8bf4\u4e0d\u592a\u53cb\u597d\u7684\u5730\u65b9\uff1a<strong>\u7eaf\u547d\u4ee4\u884c\u64cd\u4f5c<\/strong>\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u522b\u62c5\u5fc3\uff0c\u8fd9\u7bc7\u6587\u7ae0\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u800c\u751f\u7684\u3002\u672c\u6587\u5c06\u624b\u628a\u624b\u5e26\u4f60\u5b8c\u6210\u4ece\u4e0b\u8f7d\u5230\u4f7f\u7528\u7684\u5168\u8fc7\u7a0b\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e2a\u4e13\u4e3a Windows \u7528\u6237\u5b9a\u5236\u7684\u6279\u91cf\u5904\u7406\u811a\u672c\u3002\u4f60\u53ea\u9700\u8981\u590d\u5236\u7c98\u8d34\uff0c\u5c31\u80fd\u5b9e\u73b0\u53cc\u51fb\u9f20\u6807\uff0c\u4e00\u952e\u8f6c\u5f55\u6587\u4ef6\u5939\u5185\u6240\u6709\u97f3\u89c6\u9891\u6587\u4ef6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u7b2c\u4e00\u6b65\uff1a\u51c6\u5907\u5de5\u4f5c<\/h2>\n\n\n\n<p>\u5728\u5f00\u59cb\u8f6c\u5f55\u4e4b\u524d\uff0c\u9700\u8981\u5148\u51c6\u5907\u597d\u5fc5\u8981\u7684\u7a0b\u5e8f\u548c\u6587\u4ef6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u4e0b\u8f7d whisper.cpp \u4e3b\u7a0b\u5e8f<\/h3>\n\n\n\n<p>\u9996\u5148\uff0c\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u786c\u4ef6\u60c5\u51b5\uff0c\u4e0b\u8f7d\u5bf9\u5e94\u7684\u9884\u7f16\u8bd1\u7248\u672c\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u4e0b\u8f7d\u5730\u5740<\/strong>:&nbsp;<a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fgithub.com%2Fggml-org%2Fwhisper.cpp%2Freleases%2Ftag%2Fv1.8.2\" target=\"_blank\" rel=\"noreferrer noopener\">github.com\/ggml-org\/wh\u2026<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>\u5982\u4f55\u9009\u62e9\uff1f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Windows (\u65e0 NVIDIA \u663e\u5361)<\/strong>\uff1a\u4e0b\u8f7d\u00a0<code>whisper-bin-x64.zip<\/code>\u3002<\/li>\n\n\n\n<li><strong>Windows (\u6709 NVIDIA \u663e\u5361)<\/strong>\uff1a\u8bf7\u6839\u636e\u4f60\u5b89\u88c5\u7684 CUDA \u7248\u672c\u9009\u62e9\u3002\u4f8b\u5982\uff0c\u5b89\u88c5\u4e86 CUDA 12.x\uff0c\u5c31\u4e0b\u8f7d\u00a0<code>whisper-cublas-12.4.0-bin-x64.zip<\/code>\uff1b\u5b89\u88c5\u4e86 CUDA 11.x\uff0c\u5c31\u4e0b\u8f7d\u00a0<code>whisper-cublas-11.8.0-bin-x64.zip<\/code>\u3002\u5229\u7528 GPU \u52a0\u901f\u80fd\u6781\u5927\u63d0\u5347\u8f6c\u5f55\u901f\u5ea6\u3002<\/li>\n\n\n\n<li><strong>macOS \u7528\u6237<\/strong>\uff1a\u4e0b\u8f7d\u00a0<code>whisper-v1.8.2-xcframework.zip<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/1536de5c509940768aa912d577a823de~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=kf0skMlclOu%2F2R6RwhfyCzNbpLU%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u89e3\u538b\u5e76\u6574\u7406\u6587\u4ef6\u7ed3\u6784<\/h3>\n\n\n\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u5c06\u538b\u7f29\u5305\u89e3\u538b\u3002<strong>\u5f3a\u70c8\u5efa\u8bae\u89e3\u538b\u5230\u4e00\u4e2a\u4e0d\u5305\u542b\u4e2d\u6587\u548c\u7a7a\u683c\u7684\u7b80\u77ed\u8def\u5f84\u4e0b<\/strong>\uff0c\u4f8b\u5982&nbsp;<code>D:\\whispercpp<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u5f88\u591a\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6\u3002<\/p>\n\n\n\n<p>\u89e3\u538b\u540e\uff0c\u8fdb\u5165\u6587\u4ef6\u5939\uff0c\u786e\u4fdd\u4f60\u80fd\u770b\u5230\u4e00\u4e2a\u540d\u4e3a&nbsp;<code>whisper-cli.exe<\/code>\u7684\u6587\u4ef6(\u4e0b\u6587\u6211\u4eec\u79f0\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e3a<em>whisper.cpp\u6839\u76ee\u5f55<\/em>)\u3002<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/95d02986a0b34ca6ab86c71097ee17fb~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=CG8PIjBYfG7%2B9f80uBHlKLosfTc%3D\" alt=\"image.png\">&nbsp;\u4e3a\u4e86\u65b9\u4fbf\u7ba1\u7406\uff0c\u6211\u4eec\u5728\u8fd9\u4e2a\u6587\u4ef6\u5939\u5185\u624b\u52a8\u521b\u5efa\u4e24\u4e2a\u65b0\u7684\u5b50\u6587\u4ef6\u5939\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>models<\/code>: \u7528\u4e8e\u5b58\u653e\u7a0d\u540e\u4e0b\u8f7d\u7684\u8f6c\u5f55\u6a21\u578b\u6587\u4ef6\u3002<\/li>\n\n\n\n<li><code>wavs<\/code>: \u7528\u4e8e\u5b58\u653e\u6240\u6709\u9700\u8981\u8f6c\u5f55\u7684\u97f3\u9891\u6216\u89c6\u9891\u6587\u4ef6\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/bc74ab43b16a4895b40fb2fecad778a5~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=iEU%2FcPSaXnJbkAfpMdMw6t75ChA%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u51c6\u5907 FFmpeg (\u53ef\u9009\u4f46\u5f3a\u70c8\u63a8\u8350)<\/h3>\n\n\n\n<p><code>whisper.cpp<\/code>&nbsp;\u672c\u8eab\u53ea\u5904\u7406\u6807\u51c6\u683c\u5f0f\u7684&nbsp;<code>.wav<\/code>&nbsp;\u97f3\u9891\u6587\u4ef6\u3002\u5982\u679c\u4f60\u7684\u6587\u4ef6\u662f&nbsp;<code>mp3<\/code>\u3001<code>m4a<\/code>&nbsp;\u7b49\u5176\u4ed6\u97f3\u9891\u683c\u5f0f\uff0c\u751a\u81f3\u662f&nbsp;<code>mp4<\/code>\u3001<code>mkv<\/code>&nbsp;\u7b49\u89c6\u9891\u683c\u5f0f\uff0c\u76f4\u63a5\u5904\u7406\u53ef\u80fd\u4f1a\u62a5\u9519\u6216\u5f97\u5230\u7a7a\u767d\u7ed3\u679c\u3002<\/p>\n\n\n\n<p>\u8fd9\u65f6\uff0c\u6211\u4eec\u5c31\u9700\u8981\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\u6765\u5e2e\u5fd9\u2014\u2014<code>FFmpeg<\/code>\u3002\u5b83\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u5404\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\u8f6c\u6362\u6210&nbsp;<code>whisper.cpp<\/code>&nbsp;\u9700\u8981\u7684\u683c\u5f0f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u68c0\u67e5\u662f\u5426\u5df2\u5b89\u88c5<\/strong>\uff1a\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff08cmd\uff09\uff0c\u8f93\u5165\u00a0<code>ffmpeg<\/code>\u00a0\u5e76\u56de\u8f66\u3002\u5982\u679c\u663e\u793a\u4e00\u5806\u7248\u672c\u4fe1\u606f\uff0c\u8bf4\u660e\u5df2\u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u73af\u5883\u53d8\u91cf\u3002\u5982\u679c\u63d0\u793a\u201c\u547d\u4ee4\u672a\u627e\u5230\u201d\uff0c\u5219\u9700\u8981\u624b\u52a8\u4e0b\u8f7d\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/9e825ad0c63d4b5cb3be9708b4a29e5f~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=EhhliSG503%2Bajc2GdfrR1v8sj18%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/187efde717984636aad76243acb3ac51~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=NxrEdiK4%2BdCpOGCToKXOEoLQcNc%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4e0b\u8f7d FFmpeg<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>\u61d2\u4eba\u7248<\/strong>: \u4f5c\u8005\u5df2\u63d0\u4f9b\u5355\u72ec\u7684\u00a0<code>ffmpeg.exe<\/code>\u00a0\u6587\u4ef6\uff0c\u4e0b\u8f7d\u540e\u76f4\u63a5\u653e\u5230\u00a0<code>whisper-cli.exe<\/code>\u00a0\u6240\u5728\u76ee\u5f55\u4e0b\u5373\u53ef\u3002<a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fgithub.com%2Fjianchang512%2Fstt%2Freleases%2Fdownload%2F0.0%2Fffmpeg.exe\" target=\"_blank\" rel=\"noreferrer noopener\">github.com\/jianchang51\u2026<\/a><\/li>\n\n\n\n<li><strong>\u5b98\u65b9\u7248<\/strong>: \u4f60\u4e5f\u53ef\u4ee5\u4ece FFmpeg \u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\uff0c\u89e3\u538b\u540e\uff0c\u5728\u00a0<code>bin<\/code>\u00a0\u6587\u4ef6\u5939\u91cc\u627e\u5230\u00a0<code>ffmpeg.exe<\/code>\uff0c\u540c\u6837\u590d\u5236\u5230\u00a0<code>whisper-cli.exe<\/code>\u00a0\u6240\u5728\u76ee\u5f55\u4e0b\u3002<a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fgithub.com%2FBtbN%2FFFmpeg-Builds%2Freleases%2Fdownload%2Flatest%2Fffmpeg-master-latest-win64-gpl-shared.zip\" target=\"_blank\" rel=\"noreferrer noopener\">github.com\/BtbN\/FFmpeg\u2026<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u4e0b\u8f7d\u6a21\u578b\u6587\u4ef6<\/h3>\n\n\n\n<p>\u6a21\u578b\u8d8a\u5927\uff0c\u901a\u5e38\u51c6\u786e\u7387\u8d8a\u9ad8\uff0c\u4f46\u9700\u8981\u7684\u8ba1\u7b97\u8d44\u6e90\u4e5f\u8d8a\u591a\uff0c\u901f\u5ea6\u8d8a\u6162\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u6a21\u578b\u4e0b\u8f7d\u5730\u5740<\/strong>:&nbsp;<a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fhuggingface.co%2Fggerganov%2Fwhisper.cpp%2Ftree%2Fmain\" target=\"_blank\" rel=\"noreferrer noopener\">huggingface.co\/ggerganov\/w\u2026<\/a><\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/990806c2d9ff4545987e212c9909abfe~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=Io8WwHLjw0y%2B%2BzoioFp2WHajPAc%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<p>\u63a8\u8350\u5728\u4ee5\u4e0b\u51e0\u4e2a\u6a21\u578b\u4e2d\u8fdb\u884c\u9009\u62e9(tiny\/base\u6a21\u578b\u592a\u5c0f\u65e0\u610f\u4e49,\u5176\u4ed6\u91cf\u5316\u6a21\u578b\u4e5f\u6ca1\u5fc5\u8981)\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u6a21\u578b\u540d\u79f0<\/th><th>\u6587\u4ef6\u5927\u5c0f<\/th><th>\u63a8\u8350\u573a\u666f<\/th><th>\u4e0b\u8f7d\u94fe\u63a5<\/th><\/tr><\/thead><tbody><tr><td><code>ggml-small.bin<\/code><\/td><td>~488 MB<\/td><td>\u7535\u8111\u914d\u7f6e\u8f83\u4f4e\uff0c\u5bf9\u901f\u5ea6\u8981\u6c42\u9ad8\uff0c\u80fd\u63a5\u53d7\u5c11\u91cf\u9519\u8bef\u3002<\/td><td><a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fhuggingface.co%2Fggerganov%2Fwhisper.cpp%2Fresolve%2Fmain%2Fggml-small.bin%3Fdownload%3Dtrue\" target=\"_blank\" rel=\"noreferrer noopener\">\u70b9\u51fb\u4e0b\u8f7d<\/a><\/td><\/tr><tr><td><code>ggml-medium.bin<\/code><\/td><td>~1.5 GB<\/td><td><strong>\u5e73\u8861\u4e4b\u9009<\/strong>\u3002<\/td><td><a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fhuggingface.co%2Fggerganov%2Fwhisper.cpp%2Fresolve%2Fmain%2Fggml-medium.bin%3Fdownload%3Dtrue\" target=\"_blank\" rel=\"noreferrer noopener\">\u70b9\u51fb\u4e0b\u8f7d<\/a><\/td><\/tr><tr><td><code>ggml-large-v2.bin<\/code><\/td><td>~3.0 GB<\/td><td>\u8ffd\u6c42\u9ad8\u51c6\u786e\u7387\uff0c\u7535\u8111\u914d\u7f6e\u8f83\u597d\u3002<\/td><td><a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fhuggingface.co%2Fggerganov%2Fwhisper.cpp%2Fresolve%2Fmain%2Fggml-large-v2.bin%3Fdownload%3Dtrue\" target=\"_blank\" rel=\"noreferrer noopener\">\u70b9\u51fb\u4e0b\u8f7d<\/a><\/td><\/tr><tr><td><code>ggml-large-v3.bin<\/code><\/td><td>~3.1 GB<\/td><td><strong>\u6700\u9ad8\u51c6\u786e\u7387<\/strong>\uff0c\u76ee\u524d\u6548\u679c\u6700\u597d\u7684\u6a21\u578b\uff0c\u63a8\u8350\u7ed9\u8ffd\u6c42\u6781\u81f4\u6548\u679c\u7684\u7528\u6237\u3002<\/td><td><a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fhuggingface.co%2Fggerganov%2Fwhisper.cpp%2Fresolve%2Fmain%2Fggml-large-v3.bin%3Fdownload%3Dtrue\" target=\"_blank\" rel=\"noreferrer noopener\">\u70b9\u51fb\u4e0b\u8f7d<\/a><\/td><\/tr><tr><td><code>ggml-large-v3-turbo.bin<\/code><\/td><td>~1.6 GB<\/td><td>large-v3 \u7684\u4f18\u5316\u7248\u672c\uff0c\u901f\u5ea6\u6bd4v2\/v3\u66f4\u5feb\uff0c\u51c6\u786e\u7387\u76f8\u5dee\u4e0d\u5927\uff0c\u9002\u5408\u5927\u591a\u6570\u7528\u6237\u3002<\/td><td><a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fhuggingface.co%2Fggerganov%2Fwhisper.cpp%2Fresolve%2Fmain%2Fggml-large-v3-turbo.bin%3Fdownload%3Dtrue\" target=\"_blank\" rel=\"noreferrer noopener\">\u70b9\u51fb\u4e0b\u8f7d<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u9009\u62e9\u4e00\u4e2a\u4f60\u9700\u8981\u7684\u6a21\u578b\u4e0b\u8f7d\uff0c\u7136\u540e\u5c06\u4e0b\u8f7d\u597d\u7684&nbsp;<code>.bin<\/code>&nbsp;\u6587\u4ef6\u653e\u5165\u6211\u4eec\u4e4b\u524d\u521b\u5efa\u7684&nbsp;<code>models<\/code>&nbsp;\u6587\u4ef6\u5939\u5185\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u7b2c\u4e8c\u6b65\uff1a\u5f00\u59cb\u8f6c\u5f55<\/h2>\n\n\n\n<p>\u51c6\u5907\u5de5\u4f5c\u5c31\u7eea\uff0c\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u771f\u6b63\u7684\u8f6c\u5f55\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u624b\u52a8\u6267\u884c\u4e00\u6b21\uff0c\u611f\u53d7\u57fa\u672c\u6d41\u7a0b<\/h3>\n\n\n\n<p>\u4e3a\u4e86\u7406\u89e3&nbsp;<code>whisper.cpp<\/code>&nbsp;\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u6211\u4eec\u5148\u624b\u52a8\u8fd0\u884c\u4e00\u6b21\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3<\/strong>\uff1a\u8fdb\u5165\u00a0<code>whisper-cli.exe<\/code>\u00a0\u6240\u5728\u6587\u4ef6\u5939\uff0c\u5728\u5730\u5740\u680f\u91cc\u8f93\u5165\u00a0<code>cmd<\/code>\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\u3002\u8fd9\u4f1a\u76f4\u63a5\u5728\u8be5\u76ee\u5f55\u4e0b\u6253\u5f00\u4e00\u4e2a\u547d\u4ee4\u884c\u7a97\u53e3\u3002<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/b0c8cd67dff5499aac0a5a830da6f7b2~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=hgUQjTeeisOSnS0zuj3%2Fqm9B42w%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u51c6\u5907\u547d\u4ee4<\/strong>\uff1a\u00a0<code>whisper.cpp<\/code>\u00a0\u7684\u57fa\u672c\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a\u00a0<code>whisper-cli [\u53c2\u6570] -f [\u4f60\u7684\u97f3\u9891\u6587\u4ef6\u8def\u5f84] -m [\u4f60\u7684\u6a21\u578b\u6587\u4ef6\u8def\u5f84]<\/code>\u6211\u4eec\u6765\u6784\u9020\u4e00\u4e2a\u5177\u4f53\u7684\u4f8b\u5b50\u3002\u5047\u8bbe\uff1a<ul><li>\u8981\u8f6c\u5f55\u7684\u6587\u4ef6<code>60.wav<\/code>\u5728\u684c\u9762\uff0c\u5b8c\u6574\u8def\u5f84\u662f\u00a0<code>C:\\Users\\c1\\Desktop\\60.wav<\/code>\u3002<\/li><li>\u4f7f\u7528\u7684\u6a21\u578b\u662f\u00a0<code>ggml-small.bin<\/code>\u3002<\/li><li>\u6211\u4eec\u5e0c\u671b\u81ea\u52a8\u68c0\u6d4b\u8bed\u8a00\uff0c\u5e76\u8f93\u51fa SRT \u5b57\u5e55\u6587\u4ef6\u3002<\/li><\/ul>\u90a3\u4e48\uff0c\u6700\u7ec8\u7684\u547d\u4ee4\u5c31\u662f\uff1a\u00a0<code>whisper-cli -np -f \"C:\\Users\\c1\\Desktop\\60.wav\" -l auto -m models\/ggml-small.bin -osrt<\/code><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/30728533cc4d45598b96ccae39e18b44~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=IZ4Apyl2mubhql00DmKjS8RNpD8%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<p><strong>\u547d\u4ee4\u53c2\u6570\u89e3\u91ca<\/strong>\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u53c2\u6570<\/th><th>\u4f5c\u7528<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td><code>whisper-cli<\/code><\/td><td>\u4e3b\u7a0b\u5e8f<\/td><td>\u8fd9\u662f\u6211\u4eec\u6267\u884c\u8f6c\u5f55\u7684\u6838\u5fc3\u6587\u4ef6\u3002<\/td><\/tr><tr><td><code>-np<\/code><\/td><td>No Progress<\/td><td>\u4e0d\u663e\u793a\u5b9e\u65f6\u8fdb\u5ea6\u6761\u3002\u5728\u811a\u672c\u4e2d\u8fd0\u884c\u65f6\uff0c\u8fd9\u80fd\u8ba9\u8f93\u51fa\u66f4\u5e72\u51c0\u3002<\/td><\/tr><tr><td><code>-f \"\u6587\u4ef6\u8def\u5f84\"<\/code><\/td><td>File<\/td><td>\u6307\u5b9a\u8981\u8f6c\u5f55\u7684\u8f93\u5165\u6587\u4ef6\u3002<strong>\u5982\u679c\u8def\u5f84\u5305\u542b\u7a7a\u683c\uff0c\u8bf7\u52a1\u5fc5\u7528\u53cc\u5f15\u53f7\u62ec\u8d77\u6765<\/strong>\u3002<\/td><\/tr><tr><td><code>-l auto<\/code><\/td><td>Language<\/td><td>\u6307\u5b9a\u8bed\u8a00\u3002<code>auto<\/code>&nbsp;\u8868\u793a\u81ea\u52a8\u68c0\u6d4b\u3002\u4f60\u4e5f\u53ef\u4ee5\u660e\u786e\u6307\u5b9a\uff0c\u5982&nbsp;<code>zh<\/code>&nbsp;(\u4e2d\u6587),&nbsp;<code>en<\/code>&nbsp;(\u82f1\u6587)\u3002<\/td><\/tr><tr><td><code>-m models\/...<\/code><\/td><td>Model<\/td><td>\u6307\u5b9a\u4f7f\u7528\u7684\u6a21\u578b\u6587\u4ef6\u8def\u5f84\u3002<\/td><\/tr><tr><td><code>-osrt<\/code><\/td><td>Output SRT<\/td><td>\u8868\u793a\u8f93\u51fa&nbsp;<code>.srt<\/code>&nbsp;\u683c\u5f0f\u7684\u5b57\u5e55\u6587\u4ef6\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>\u6267\u884c\u547d\u4ee4<\/strong>\uff1a\u5728\u00a0<code>cmd<\/code>\u00a0\u7a97\u53e3\u4e2d\u7c98\u8d34\u4e0a\u8ff0\u547d\u4ee4\uff0c\u7136\u540e\u56de\u8f66\u3002<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/e54409bb0d304f718cbc4b2abf72f26a~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=JISL00doIZarO6onJGAibPc1lB0%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<p>\u7a0b\u5e8f\u4f1a\u5f00\u59cb\u8fd0\u884c\u3002\u7b49\u5f85\u6267\u884c\u5b8c\u6bd5\u540e\uff0c\u4f60\u4f1a\u5728\u6e90\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff08\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u662f\u684c\u9762\uff09\u770b\u5230\u4e00\u4e2a\u65b0\u751f\u6210\u7684&nbsp;<code>60.wav.srt<\/code>&nbsp;\u5b57\u5e55\u6587\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/eb5a595271c342d78e4c922482f8fa2c~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=9P6lSnApPk4ruexqbB%2FHynnJm%2FU%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<p><code>whisper.cpp<\/code>&nbsp;\u5176\u5b9e\u8fd8\u6709\u975e\u5e38\u591a\u9ad8\u7ea7\u53c2\u6570\uff0c\u53ef\u4ee5\u8fdb\u884c\u66f4\u7cbe\u7ec6\u7684\u63a7\u5236\u3002\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u53bb\u5b98\u65b9\u6587\u6863\u6df1\u5165\u7814\u7a76\u3002\u5bf9\u4e8e\u65e5\u5e38\u4f7f\u7528\uff0c\u638c\u63e1\u4ee5\u4e0a\u51e0\u4e2a\u5c31\u8db3\u591f\u4e86\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u66f4\u591a\u547d\u4ee4\u53c2\u6570\uff1a<a href=\"https:\/\/link.juejin.cn\/?target=https%3A%2F%2Fgithub.com%2Fggml-org%2Fwhisper.cpp%2Ftree%2Fmaster%2Fexamples%2Fcli\" target=\"_blank\" rel=\"noreferrer noopener\">github.com\/ggml-org\/wh\u2026<\/a><\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/4e04159a3b1f465db8610d17a627f546~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=kAU2w7nUBbsDObJoDBLkzHGLFZg%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u4f7f\u7528 BAT \u811a\u672c\uff0c\u5b9e\u73b0\u4e00\u952e\u6279\u91cf\u5904\u7406<\/h3>\n\n\n\n<p>\u624b\u52a8\u8f93\u5165\u547d\u4ee4\u4e0d\u4ec5\u6548\u7387\u4f4e\u4e0b\uff0c\u8fd8\u5bb9\u6613\u51fa\u9519\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4e3a\u5927\u5bb6\u51c6\u5907\u4e86\u4e00\u4e2a Windows \u6279\u5904\u7406\uff08.bat\uff09\u811a\u672c\uff0c\u5b83\u53ef\u4ee5\u81ea\u52a8\u5b8c\u6210\u4ee5\u4e0b\u5de5\u4f5c\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u904d\u5386\u00a0<code>wavs<\/code>\u00a0\u6587\u4ef6\u5939\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u4f7f\u7528 FFmpeg \u5c06\u975e\u00a0<code>.wav<\/code>\u00a0\u683c\u5f0f\u7684\u97f3\u89c6\u9891\u81ea\u52a8\u8f6c\u6362\u4e3a\u4e34\u65f6\u00a0<code>.wav<\/code>\u00a0\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u8c03\u7528\u00a0<code>whisper.cpp<\/code>\u8fdb\u884c\u8f6c\u5f55\u3002<\/li>\n\n\n\n<li>\u5c06\u751f\u6210\u7684\u00a0<code>.srt<\/code>\u00a0\u5b57\u5e55\u6587\u4ef6\u7edf\u4e00\u5b58\u653e\u5230\u00a0<code>srt<\/code>\u00a0\u6587\u4ef6\u5939\u4e2d\u3002<\/li>\n\n\n\n<li>\u81ea\u52a8\u6e05\u7406\u4e34\u65f6\u6587\u4ef6\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u521b\u5efa\u811a\u672c\u6587\u4ef6<\/strong>\uff1a\u5728\u00a0<code>whisper-cli.exe<\/code>\u00a0\u6240\u5728\u76ee\u5f55\u4e0b\uff0c\u53f3\u952e\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u6863\uff0c\u547d\u540d\u4e3a\u00a0<code>run.txt<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u7c98\u8d34\u4ee3\u7801<\/strong>\uff1a\u53cc\u51fb\u6253\u5f00\u00a0<code>run.txt<\/code>\uff0c\u5c06\u4e0b\u9762\u7684\u6240\u6709\u4ee3\u7801\u590d\u5236\u5e76\u7c98\u8d34\u8fdb\u53bb\u3002bash\u4f53\u9a8cAI\u4ee3\u7801\u52a9\u624b\u4ee3\u7801\u89e3\u8bfb\u590d\u5236\u4ee3\u7801<code>@echo off set model_name=ggml-large-v3-turbo.bin setlocal enabledelayedexpansion cd \/d \"%~dp0\" if not exist \"srt\\\" mkdir \"srt\" set \"audio_ext=.wav\" if not exist \"models\/%model_name%\" ( echo. echo ================================================================= echo [\u9519\u8bef] \u6a21\u578b\u6587\u4ef6\u4e0d\u5b58\u5728: models\/%model_name% echo. echo \u8bf7\u786e\u8ba4\u4f60\u5df2\u7ecf\u4e0b\u8f7d\u4e86\u6a21\u578b\uff0c\u5e76\u5c06\u5176\u653e\u7f6e\u5728 models \u6587\u4ef6\u5939\u5185\u3002 echo \u5982\u679c\u6a21\u578b\u6587\u4ef6\u540d\u4e0d\u540c\uff0c\u8bf7\u4fee\u6539\u672c\u811a\u672c\u7b2c\u4e8c\u884c\u7684 \"set model_name=...\" echo. echo \u6a21\u578b\u4e0b\u8f7d\u5730\u5740: https:\/\/huggingface.co\/ggerganov\/whisper.cpp\/tree\/main echo ================================================================= echo. pause exit \/b 1 ) echo =============================================== echo \u5f00\u59cb\u6279\u91cf\u8f6c\u5f55 \"%~dp0wavs\" \u6587\u4ef6\u5939\u4e0b\u7684\u6240\u6709\u6587\u4ef6... echo \u7ed3\u679c\u5c06\u4fdd\u5b58\u5230 \"%~dp0srt\" \u6587\u4ef6\u5939\u5185\u3002 echo \u5f53\u524d\u4f7f\u7528\u6a21\u578b: %model_name% echo =============================================== echo. :: \u904d\u5386 wavs \u6587\u4ef6\u5939\u4e0b\u7684\u6240\u6709\u6587\u4ef6 (*.*) FOR %%F IN (wavs\\*.*) DO ( set ext=\"%%~xF\" set sttwav=\"%%F\" set temp_wav=\"\" echo. echo ----------------- \u5f00\u59cb\u5904\u7406\u6587\u4ef6: \"%%~nxF\" ----------------- rem \u5224\u65ad\u683c\u5f0f\u5982\u679c\u4e0d\u662fwav\uff0c\u5219\u4f7f\u7528 ffmpeg\u8f6c\u7801 echo !audio_ext! | findstr \/i \/c:\"!ext!\" >nul if !errorlevel! neq 0 ( set temp_wav=\"wavs\\temp_%%~nxF.wav\" echo [-] \"%%F\" \u4e0d\u662f\u6807\u51c6\u7684WAV\u97f3\u9891\uff0c\u6b63\u5728\u4f7f\u7528 FFmpeg \u8fdb\u884c\u8f6c\u6362... ffmpeg -y -i \"%%F\" -ac 1 -ar 16000 -c:a pcm_s16le \"!temp_wav!\" >nul 2>&amp;1 if !errorlevel! equ 0 ( echo [+] FFmpeg \u8f6c\u6362\u6210\u529f! set sttwav=\"!temp_wav!\" ) else ( echo [X] \u9519\u8bef: \u6587\u4ef6 \"%%~nxF\" \u4f7f\u7528 FFmpeg \u8f6c\u6362\u5931\u8d25\uff0c\u5df2\u8df3\u8fc7\u3002 set sttwav=\"\" ) ) if not !sttwav! == \"\" ( echo [-] \u6b63\u5728\u8c03\u7528 whisper.cpp \u8fdb\u884c\u8f6c\u5f55... set temp_log=\"temp_%%~nxF.log\" whisper-cli.exe -np -f !sttwav! -l auto -m models\/%model_name% -osrt -of \"srt\\%%~nF\" > !temp_log! 2>&amp;1 findstr \/i \/c:\"error:\" !temp_log! >nul if !errorlevel! equ 0 ( echo [X] \u9519\u8bef: \u6587\u4ef6 \"%%~nxF\" \u8f6c\u5f55\u5931\u8d25\uff0c\u8bf7\u67e5\u770b\u65e5\u5fd7\u4e86\u89e3\u8be6\u60c5\u3002 ) else ( echo [OK] \u6210\u529f: \u6587\u4ef6 \"%%~nxF\" \u8f6c\u5f55\u5b8c\u6210\uff0c\u5b57\u5e55\u5df2\u4fdd\u5b58\u4e3a \"srt\\%%~nF.srt\" ) del !temp_log! if not !temp_wav! == \"\" ( del !temp_wav! ) ) echo -------------------------------------------------------------------- ) echo. echo =============================================== echo \u6240\u6709\u6587\u4ef6\u5904\u7406\u5b8c\u6bd5\uff01 echo \u7ed3\u679c\u5df2\u5168\u90e8\u4fdd\u5b58\u5728 \"%~dp0srt\" \u6587\u4ef6\u5939\u5185\u3002 echo =============================================== echo. pause<\/code><\/li>\n\n\n\n<li><strong>\u4fee\u6539\u540e\u7f00\u540d<\/strong>\uff1a\u4fdd\u5b58\u5e76\u5173\u95ed\u00a0<code>run.txt<\/code>\u3002\u7136\u540e\uff0c\u5c06\u8fd9\u4e2a\u6587\u4ef6\u7684\u540e\u7f00\u540d\u4ece\u00a0<code>.txt<\/code>\u00a0\u4fee\u6539\u4e3a\u00a0<code>.bat<\/code>\u3002\u6700\u7ec8\u6587\u4ef6\u540d\u5e94\u4e3a\u00a0<code>run.bat<\/code>\u3002<strong>\u91cd\u8981\u63d0\u793a<\/strong>\uff1a\u5982\u679c\u4f60\u7684\u7535\u8111\u4e0d\u663e\u793a\u6587\u4ef6\u6269\u5c55\u540d\uff0c\u8bf7\u5148\u5728\u6587\u4ef6\u5939\u9009\u9879\u4e2d\u5f00\u542f\u201c<strong>\u663e\u793a\u6587\u4ef6\u6269\u5c55\u540d<\/strong>\u201d\uff0c\u5426\u5219\u4f60\u53ef\u80fd\u4f1a\u628a\u5b83\u9519\u8bef\u5730\u547d\u540d\u4e3a\u00a0<code>run.bat.txt<\/code>\u3002<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/70c5a04cb1574afe84200fae2aa90cf7~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=AVxFenhnYGcgKuShHAzjQucDh1Y%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<p>\u5982\u679c\u4fee\u6539\u540e\u53cc\u51fb\u6587\u4ef6\uff0c\u5b83\u4f9d\u7136\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\uff0c\u8bf4\u660e\u4f60\u6ca1\u6709\u6210\u529f\u4fee\u6539\u540e\u7f00\u540d\u3002\u8bf7\u786e\u4fdd\u6587\u4ef6\u540d\u672b\u5c3e\u6ca1\u6709&nbsp;<code>.txt<\/code>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/114688d2d97a46c98f0832c4cb5ae24e~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=aTtWTub1UmDv56yxO3YlZoTMK%2FM%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>\u914d\u7f6e\u6a21\u578b<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u00a0<code>run.bat<\/code>\u00a0\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u7f16\u8f91\u201d\u3002\u4f60\u4f1a\u770b\u5230\u4ee3\u7801\u7684\u7b2c\u4e8c\u884c\u662f\uff1a\u00a0<code>set model_name=ggml-large-v3-turbo.bin<\/code>\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u4fee\u6539\u6210\u4f60\u4e0b\u8f7d\u5e76\u60f3\u4f7f\u7528\u7684\u4efb\u4f55\u6a21\u578b\u7684\u6587\u4ef6\u540d\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u00a0<code>large-v3<\/code>\u00a0\u6a21\u578b\uff0c\u5c31\u628a\u5b83\u6539\u6210\uff1a\u00a0<code>set model_name=ggml-large-v3.bin<\/code><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/070991e6723942619b5fdfde6f5507f0~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=AfTMZSjDn%2FDiX7G9%2BucoCNzXWaI%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<p>\u4fee\u6539\u540e\u4fdd\u5b58\u5373\u53ef\u3002<\/p>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li><strong>\u5f00\u59cb\u6279\u91cf\u8f6c\u5f55<\/strong>\uff1a<ul><li>\u5c06\u4f60\u6240\u6709\u9700\u8981\u8f6c\u5f55\u7684\u97f3\u9891\u548c\u89c6\u9891\u6587\u4ef6\uff0c\u5168\u90e8\u590d\u5236\u6216\u79fb\u52a8\u5230\u00a0<code>wavs<\/code>\u00a0\u6587\u4ef6\u5939\u5185\u3002<\/li><li>\u53cc\u51fb\u8fd0\u884c\u00a0<code>run.bat<\/code>\u00a0\u811a\u672c\u3002<\/li><li>\u6b64\u65f6\u4f1a\u5f39\u51fa\u4e00\u4e2a\u9ed1\u8272\u7684\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u811a\u672c\u4f1a\u81ea\u52a8\u5f00\u59cb\u5904\u7406\u6587\u4ef6\u3002\u4f60\u53ea\u9700\u8981\u9759\u9759\u7b49\u5f85\u5b83\u5b8c\u6210\u3002<\/li><\/ul><strong>\u811a\u672c\u8fd0\u884c\u793a\u4f8b<\/strong><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/p9-xtjj-sign.byteimg.com\/tos-cn-i-73owjymdk6\/be0d7fc87d4d471c9d53b9cac339bb0a~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgbW9ydGltZXI=:q75.awebp?rk3s=f64ab15b&amp;x-expires=1761749529&amp;x-signature=tIzKNtdrfRJtgr5EIw9w%2FGXeF3k%3D\" alt=\"image.png\"\/><\/figure>\n\n\n\n<p>\u5f53\u7a97\u53e3\u663e\u793a\u201c\u6240\u6709\u6587\u4ef6\u5904\u7406\u5b8c\u6bd5\uff01\u201d\u65f6\uff0c\u4f60\u5c31\u53ef\u4ee5\u5173\u95ed\u5b83\u4e86\u3002\u6b64\u65f6\uff0c\u53bb&nbsp;<code>srt<\/code>&nbsp;\u6587\u4ef6\u5939\u770b\u770b\uff0c\u6240\u6709\u7684\u5b57\u5e55\u6587\u4ef6\u662f\u4e0d\u662f\u90fd\u5df2\u7ecf\u751f\u6210\u597d\u4e86\uff1f<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u7b2c\u4e09\u6b65\uff1a\u811a\u672c\u4ee3\u7801\u89e3\u91ca<\/h2>\n\n\n\n<p>\u5bf9\u4e8e\u60f3\u4e86\u89e3\u811a\u672c\u662f\u5982\u4f55\u5de5\u4f5c\u7684\u670b\u53cb\uff0c\u8fd9\u91cc\u5bf9\u6838\u5fc3\u4ee3\u7801\u505a\u4e2a\u7b80\u5355\u7684\u89e3\u91ca\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>@echo off<\/code>: \u5173\u95ed\u547d\u4ee4\u56de\u663e\uff0c\u8ba9\u7a97\u53e3\u8f93\u51fa\u66f4\u5e72\u51c0\u3002<\/li>\n\n\n\n<li><code>set model_name=...<\/code>: \u5b9a\u4e49\u4e00\u4e2a\u53d8\u91cf\u00a0<code>model_name<\/code>\uff0c\u65b9\u4fbf\u6211\u4eec\u5728\u811a\u672c\u5f00\u5934\u96c6\u4e2d\u4fee\u6539\u6a21\u578b\u3002<\/li>\n\n\n\n<li><code>cd \/d \"%~dp0\"<\/code>: \u5c06\u5f53\u524d\u76ee\u5f55\u5207\u6362\u5230\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u786e\u4fdd\u540e\u7eed\u547d\u4ee4\u80fd\u5728\u6b63\u786e\u7684\u8def\u5f84\u4e0b\u6267\u884c\u3002<\/li>\n\n\n\n<li><code>if not exist \"srt\\\" mkdir \"srt\"<\/code>: \u68c0\u67e5\u662f\u5426\u5b58\u5728\u00a0<code>srt<\/code>\u00a0\u6587\u4ef6\u5939\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u5c31\u521b\u5efa\u4e00\u4e2a\u3002<\/li>\n\n\n\n<li><code>if not exist \"models\/%model_name%\"<\/code>: \u68c0\u67e5\u6307\u5b9a\u7684\u6a21\u578b\u6587\u4ef6\u662f\u5426\u5b58\u5728\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u5219\u62a5\u9519\u5e76\u9000\u51fa\uff0c\u7ed9\u51fa\u6a21\u578b\u7684\u4e0b\u8f7d\u5730\u5740\u3002<\/li>\n\n\n\n<li><code>FOR %%F IN (wavs\\*.*) DO (...)<\/code>: \u8fd9\u662f\u4e00\u4e2a\u5faa\u73af\u8bed\u53e5\uff0c\u5b83\u4f1a\u904d\u5386\u00a0<code>wavs<\/code>\u00a0\u6587\u4ef6\u5939\u91cc\u7684\u6bcf\u4e00\u4e2a\u6587\u4ef6\uff0c\u5e76\u5c06\u6587\u4ef6\u540d\u8d4b\u503c\u7ed9\u53d8\u91cf\u00a0<code>%%F<\/code>\uff0c\u7136\u540e\u6267\u884c\u00a0<code>DO<\/code>\u00a0\u540e\u9762\u7684\u4ee3\u7801\u5757\u3002<\/li>\n\n\n\n<li><code>if !errorlevel! neq 0 (...)<\/code>: \u8fd9\u6bb5\u662f\u5224\u65ad\u6587\u4ef6\u683c\u5f0f\u5e76\u8c03\u7528 FFmpeg \u7684\u903b\u8f91\u3002<code>!errorlevel!<\/code>\u00a0\u662f\u4e0a\u4e00\u6761\u547d\u4ee4\u7684\u8fd4\u56de\u72b6\u6001\u7801\uff0c<code>0<\/code>\u00a0\u4ee3\u8868\u6210\u529f\uff0c\u975e\u00a0<code>0<\/code>\u00a0\u4ee3\u8868\u5931\u8d25\u3002\u8fd9\u91cc\u901a\u8fc7\u4e00\u4e2a\u5c0f\u6280\u5de7\u5224\u65ad\u6587\u4ef6\u540d\u540e\u7f00\u662f\u5426\u4e3a\u00a0<code>.wav<\/code>\uff0c\u5982\u679c\u4e0d\u662f\uff0c\u5c31\u8c03\u7528\u00a0<code>ffmpeg<\/code>\u00a0\u547d\u4ee4\u8fdb\u884c\u8f6c\u6362\u3002<\/li>\n\n\n\n<li><code>ffmpeg -y -i \"%%F\" -ac 1 -ar 16000 ...<\/code>: \u8fd9\u662f FFmpeg \u7684\u8f6c\u6362\u547d\u4ee4\uff0c\u53c2\u6570\u542b\u4e49\u5206\u522b\u662f\uff1a\n<ul class=\"wp-block-list\">\n<li><code>-y<\/code>: \u5982\u679c\u8f93\u51fa\u6587\u4ef6\u5df2\u5b58\u5728\u5219\u76f4\u63a5\u8986\u76d6\u3002<\/li>\n\n\n\n<li><code>-i \"%%F\"<\/code>: \u6307\u5b9a\u8f93\u5165\u6587\u4ef6\u3002<\/li>\n\n\n\n<li><code>-ac 1<\/code>: \u8bbe\u7f6e\u97f3\u9891\u901a\u9053\u4e3a\u5355\u58f0\u9053\u3002<\/li>\n\n\n\n<li><code>-ar 16000<\/code>: \u8bbe\u7f6e\u91c7\u6837\u7387\u4e3a 16000 Hz\u3002<\/li>\n\n\n\n<li><code>-c:a pcm_s16le<\/code>: \u8bbe\u7f6e\u97f3\u9891\u7f16\u7801\u4e3a 16-bit PCM\u3002\u8fd9\u4e9b\u90fd\u662f Whisper \u6700\u63a8\u8350\u7684\u97f3\u9891\u89c4\u683c\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>whisper-cli.exe ...<\/code>: \u8c03\u7528\u6838\u5fc3\u8f6c\u5f55\u7a0b\u5e8f\uff0c\u548c\u6211\u4eec\u624b\u52a8\u6267\u884c\u65f6\u7c7b\u4f3c\u3002<\/li>\n\n\n\n<li><code>del !temp_wav!<\/code>: \u8f6c\u5f55\u5b8c\u6210\u540e\uff0c\u5220\u9664 FFmpeg \u751f\u6210\u7684\u4e34\u65f6\u00a0<code>.wav<\/code>\u00a0\u6587\u4ef6\uff0c\u4fdd\u6301\u76ee\u5f55\u6574\u6d01\u3002<\/li>\n\n\n\n<li><code>pause<\/code>: \u5728\u811a\u672c\u6267\u884c\u7ed3\u675f\u65f6\u6682\u505c\uff0c\u7b49\u5f85\u7528\u6237\u6309\u4efb\u610f\u952e\u5173\u95ed\u7a97\u53e3\uff0c\u8fd9\u6837\u53ef\u4ee5\u8ba9\u6211\u4eec\u770b\u6e05\u695a\u6700\u540e\u7684\u6267\u884c\u7ed3\u679c\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u81f3\u6b64\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u642d\u5efa\u8d77\u4e00\u4e2a\u672c\u5730\u3001\u9ad8\u6548\u3001\u514d\u8d39\u4e14\u65e0\u4f9d\u8d56\u7684\u8bed\u97f3\u8f6c\u6587\u5b57\u5de5\u4f5c\u6d41\u3002\u901a\u8fc7&nbsp;<code>whisper.cpp<\/code>&nbsp;\u7684\u5f3a\u5927\u6027\u80fd\u548c\u6211\u4eec\u63d0\u4f9b\u7684\u6279\u5904\u7406\u811a\u672c\uff0c\u65e0\u8bba\u662f\u6574\u7406\u4f1a\u8bae\u8bb0\u5f55\u3001\u5236\u4f5c\u89c6\u9891\u5b57\u5e55\uff0c\u8fd8\u662f\u8f6c\u6362\u5b66\u4e60\u8d44\u6599\uff0c\u90fd\u5c06\u53d8\u5f97\u5f02\u5e38\u7b80\u5355\u3002<\/p>\n\n\n\n<p>\u539f\u6587\u6765\u6e90\uff1ahttps:\/\/juejin.cn\/post\/7563869029645238298<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bed\u97f3\u8f6c\u5f55\u8fd9\u4e2a\u9886\u57df\uff0cOpenAI \u7684 Whisper \u6a21\u578b\u65e0\u7591\u662f\u76ee\u524d\u77e5&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":428,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-427","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools"],"_links":{"self":[{"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/posts\/427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/comments?post=427"}],"version-history":[{"count":1,"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/posts\/427\/revisions"}],"predecessor-version":[{"id":429,"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/posts\/427\/revisions\/429"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/media\/428"}],"wp:attachment":[{"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/media?parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/categories?post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartaiunion.com\/index.php\/wp-json\/wp\/v2\/tags?post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}