{"id":612,"date":"2023-07-19T14:29:00","date_gmt":"2023-07-19T06:29:00","guid":{"rendered":"https:\/\/blog.lijishi.com\/?p=612"},"modified":"2025-02-08T14:17:15","modified_gmt":"2025-02-08T06:17:15","slug":"modelscope-asr","status":"publish","type":"post","link":"https:\/\/blog.lijishi.com\/index.php\/2023\/07\/19\/modelscope-asr\/","title":{"rendered":"ModelScope | \u6253\u9020\u4e13\u5c5eASR"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u679c\u7136\uff0c\u6298\u817e\u7684\u5c3d\u5934\u662f\u8eba\u5e73\u2026<\/p><\/blockquote>\n\n\n\n<p>\u56e0\u4e3a\u6211\u7ecf\u5e38\u4f7f\u7528PLEX\u8fdb\u884c\u5f71\u97f3\u64ad\u653e\uff0c\u6700\u8fd1\u5728\u542c\u8bc4\u4e66\u7684\u65f6\u5019\uff0c\u5ffd\u7136\u60f3\u5230\u53ef\u4ee5\u50cf\u6b4c\u66f2\u7684\u6b4c\u8bcd\u4e00\u6837\uff0c\u5728\u542c\u7684\u65f6\u5019\u4e5f\u80fd\u770b\u4e00\u773c\u3002\u4f46\u5f88\u660e\u663e\uff0c\u4efb\u4f55\u4e00\u672c\u8bc4\u4e66\u90fd\u4e0d\u4f1a\u6709\u4eba\u5236\u4f5c\u6b4c\u8bcd\u7684\uff0c\u9664\u4e86\u6211~<\/p>\n\n\n\n<p>\u4e4b\u524d\u6709\u4e00\u9635\u8ffd\u4e86\u4e00\u4e9b\u56fd\u5916\u5f71\u7247\uff0c\u5728\u9047\u5230\u751f\u8089\u7684\u65f6\u5019\u5462\uff0c\u5c31\u5df2\u7ecf\u901a\u8fc7ASR\u8fdb\u884c\u8bed\u97f3\u8bc6\u522b\uff0c\u5e76\u4e14\u901a\u8fc7\u673a\u5668\u7ffb\u8bd1\u5236\u4f5c\u5b57\u5e55\uff08\u6b63\u597d\u4ecb\u7ecd\u4e00\u4e2a\u4f18\u8d28\u8f6f\u4ef6\u2014\u2014<a rel=\"noreferrer noopener\" href=\"https:\/\/tern.1c7.me\/#\/\" target=\"_blank\">Tern<\/a>\uff09\u3002\u4f46\u4e4b\u524d\u90fd\u662f\u8f7b\u5ea6\u4f7f\u7528\uff0c\u4e00\u5b63\u7684\u77ed\u5267\u4e5f\u6ca1\u51e0\u4e2a\u5c0f\u65f6\uff0c\u800c\u6070\u597d\u817e\u8baf\u4e91\u53c8\u6709\u6bcf\u670810\u5c0f\u65f6\u7684\u514d\u8d39\u989d\u5ea6\uff0c\u57fa\u672c\u591f\u7528\u4e86\u3002\u800c\u8fd9\u6b21\u6211\u8981\u7684\u97f3\u9891\u603b\u91cf\u8fd1\u5343\u5c0f\u65f6\uff0c\u5404\u79cd\u8bc4\u4e66\u3001\u7f57\u8f91\u601d\u7ef4\u548c\u559c\u9a6c\u62c9\u96c5\u7684\u97f3\u9891\u6587\u4ef6\uff0c\u800c\u770b\u4e86\u773c\u4e91\u670d\u52a1\u5546\u7684ASR\uff08\u8bed\u97f3\u8bc6\u522b\uff09\u7684\u4ef7\u683c\uff0c\u7740\u5b9e\u529d\u9000\uff0c\u6700\u4fbf\u5b9c\u7684\u963f\u91cc\u4e91\u95f2\u65f6ASR\u90fd\u89811\u5143\/\u5c0f\u65f6\uff0c\u4e3a\u4e86\u6211\u4e00\u4e2a\u7a81\u53d1\u5947\u60f3\uff0c\u4e5f\u771f\u662f\u6ca1\u5fc5\u8981\u3002<\/p>\n\n\n\n<p>\u4f46\u9aa8\u5b50\u91cc\u7684\u6298\u817eDNA\u8fd8\u662f\u52a8\u4e86\uff0c\u6bd5\u7adfASR\u8fd9\u79cd\u6280\u672f\u65e9\u5c31\u5e94\u8be5\u666e\u53ca\u4e86\uff0c\u5f00\u6e90\u7684\u8f6f\u4ef6\u5e94\u8be5\u591a\u7684\u662f\u5427\uff0c\u4e8e\u662f\u4e4egithub\u901b\u4e86\u4e00\u5708\uff0c\u4e5f\u5c1d\u8bd5\u4e86\u51e0\u4e2a\u5f00\u6e90\u7684\u6846\u67b6\uff0c\u6548\u679c\u5f88\u4e00\u822c\uff0c\u5f88\u4e00\u822c\uff01\u7136\u540e\u53c8\u56de\u5230\u767e\u5ea6\u4e00\u901a\u641c\uff0c\u4e8e\u662f\u4e4e\u53d1\u73b0\u4e86\u767e\u5ea6\u65d7\u4e0b\u7684paddle\u98de\u6868\u5f00\u6e90\u5e73\u53f0\uff0c\u4e5f\u6709\u5f00\u6e90\u7684ASR\u6a21\u578b\uff0c\u5b89\u88c5\u4e5f\u7b97\u65b9\u4fbf\uff0c\u90fd\u662f\u57fa\u4e8epython\uff0c\u8fd9\u4e0d\u662f\u5f88\u5b8c\u7f8e\u561b\uff0c\u5417\uff1f<\/p>\n\n\n\n<p>\u4e00\u4e0b\u5348\u8fc7\u53bb\u4e86\uff0c\u6211\u8d39\u52b2\u5427\u5566\u7684\u641e\u597d\u4e86\u517c\u5bb9\u6027\uff0c\u6210\u529f\u7684\u8c03\u7528\u4e86cuda\u52a0\u901f\uff0c\u6211\u7684970ti\u8fd8\u80fd\u4e00\u6218\u3002\u7136\u800c\u662f\u6211\u5929\u771f\u4e86\uff0c\u7b49\u771f\u7684\u8981\u5f00\u59cb\u7684\u65f6\u5019\uff0c\u624d\u53d1\u73b0paddle-asr\u8fd9\u73a9\u610f\u6709\u65f6\u957f\u4e0a\u965050s\uff0c\u8981\u8fdb\u884c\u957f\u8bed\u97f3\u8bc6\u522b\uff0c\u8fd8\u8981\u518d\u8fdb\u884c\u97f3\u9891\u5207\u5272\u3002\u800c\u4e14\u5427\uff0c\u5b98\u65b9\u7684\u6587\u6863\u4e2d\uff0c\u4f7f\u7528\u7684\u662f\u6bcf10ms\u904d\u5386\uff0c\u51fa\u73b0\u9759\u97f3\u5c31\u5207\u5272\uff0c\u6211\u5927\u81f4\u7684\u4f53\u9a8c\u4e86\u4e00\u4e0b\uff0c\u56e0\u4e3a\u6211\u7684\u97f3\u9891\u5927\u90fd\u662f\u8bc4\u4e66\u4e4b\u7c7b\u7684\uff0c\u57fa\u672c\u4e0a\u6bcf\u4e2a\u6c14\u53e3\u90fd\u88ab\u5207\u5272\u4e86\uff0c\u8bc6\u522b\u51fa\u6765\u7684\u6587\u5b57\u6781\u5176\u7ec6\u788e\uff0c\u518d\u8865\u5145\u65f6\u95f4\u8f74\u548c\u6807\u70b9\u7b26\u53f7\u7b80\u76f4\u662f\u65e0\u7a3d\u4e4b\u8c08\u3002\u6211\u8fd8\u5c1d\u8bd5\u4e86\u56fa\u5b9a\u65f6\u95f4\u5207\u5272\uff0c\u6bcf10s\/30s\/50s\u6211\u90fd\u5c1d\u8bd5\u8fc7\uff0c\u6548\u679c\u4e5f\u4e00\u822c\uff0c\u6bd5\u7adf\u8c01\u8bb2\u8bdd\u4e5f\u4e0d\u4f1a\u8fd9\u4e48\u56fa\u5b9a\u554a\u3002<\/p>\n\n\n\n<p>\u4e8e\u662f\u4e4e\u6211\u53c8\u662f\u4e00\u987f\u641c\u7d22\uff0c\u7136\u540e\u53d1\u73b0\u4e86\u963f\u91cc\u4e91\u4ed6\u5144\u5f1f\u8fbe\u6469\u9662\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u4e5f\u6b63\u662f\u672c\u6587\u7684\u9886\u8854\u4e3b\u6f14\u2014\u2014ModelScope\u3002\u540c\u6837\u662f\u5f00\u6e90\u6846\u67b6\uff0c\u540c\u6837\u4e5f\u6709ASR\u5f00\u6e90\u6a21\u578b\uff0c\u53efModelScope\u7684ASR\u5f00\u6e90\u6a21\u578b\u8db3\u8db3\u670972\u4e2a\uff0c\u8fd8\u6709\u4e13\u95e8\u7684\u957f\u97f3\u9891\u7248\u672c\uff0c\u4e0a\u96502\u5c0f\u65f6\uff0c\u8fd9\u5b8c\u5168\u6ee1\u8db3\u6211\u7684\u9700\u6c42\u554a\u3002<\/p>\n\n\n\n<p>\u5565\u4e5f\u4e0d\u8bf4\u4e86\uff0c\u5f00\u5e72\u5427\u3002\u4f46\u6846\u67b6\u7684\u5b89\u88c5\u8fc7\u7a0b\uff0c\u6bd4paddle\u8fd8\u96be\uff0c\u9996\u5148\u662f\u8bed\u97f3\u8bc6\u522b\u7684\u76f8\u5173\u529f\u80fd\u662f\u53ea\u80fd\u5728linux\u73af\u5883\u8fd0\u884c\u7684\uff0c\u6211\u53c8\u4e0d\u662f\u4e13\u4e1a\u641e\u673a\u5668\u5b66\u4e60\u7684\uff0c\u624b\u91cc\u80af\u5b9a\u6ca1\u6709\u88c5linux\u7684\u673a\u5668\u554a\u3002\u59a5\u534f\u4e86\u4e00\u4e0b\uff0c\u5148\u641e\u4e00\u53f0ubuntu\u7684\u865a\u62df\u673a\u8bd5\u8bd5\u6c34\uff0c\u51c6\u5907\u641e\u597d\u4e86\u4e70\u4e2a\u4e91\u670d\u52a1\u5668\u3002\u4f46\u5b98\u65b9\u7684\u63a8\u8350\u7ec4\u5408ubuntu20.04+cuda11.3.0+py37+torch1.11.0+tf1.15.5\uff0c\u6211\u81f3\u4eca\u90fd\u6ca1\u80fd\u6210\u529f\u5b89\u88c5[\u5fae\u7b11]\u3002<\/p>\n\n\n\n<p>\u597d\u5728\uff0c\u4eba\u5bb6\u662f\u771f\u5584\u826f\uff0c\u76f4\u63a5\u7ed9\u4e86\u4e00\u4e2adocker\u955c\u50cf\uff0c\u5206\u5206\u949f\u53ef\u4ee5\u8dd1\u901a\uff0c\u81f3\u4e8e\u6027\u80fd\u635f\u5931\u561b\u2026\u2026\u5fcd\u4e86\u5427\u3002\u563f\uff0c\u4f60\u522b\u8bf4\uff0cModelScope\u7684ASR\u8fd8\u771f\u53ef\u4ee5\uff0c\u8bc6\u522b\u51fa\u6765\u7684\u7ed3\u679c\u81ea\u52a8\u52a0\u4e86\u6807\u70b9\u7b26\u53f7\uff0c\u8fd8\u6709\u76f8\u5bf9\u65f6\u95f4\u6233\uff0c\u7559\u7ed9\u6211\u505a\u7684\uff0c\u53ea\u9700\u8981\u6839\u636e\u6807\u70b9\u7b26\u53f7\u8fdb\u884c\u5207\u5272\uff0c\u7136\u540e\u628a\u76f8\u5bf9\u65f6\u95f4\u6233\u8f6c\u6362\u6210\u65f6\u95f4\u8f74\uff0c\u811a\u672c\u653e\u5728\u540e\u8fb9\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u5462\uff0c\u8003\u8651\u5230\u6709\u4e00\u4e9b\u89c6\u9891\u53ef\u80fd\u4e5f\u9700\u8981\u52a0\u5b57\u5e55\uff0c\u76f4\u63a5\u4e00\u6b21\u5230\u4f4d\uff0c\u518d\u52a0\u4e2a\u529f\u80fd\uff0c\u901a\u8fc7lrc\u8f6csrt\u3002\uff08\u522b\u95ee\u6211\u4e3a\u5565\u4e0d\u901a\u8fc7\u8bc6\u522b\u7ed3\u679c\u76f4\u63a5\u5199srt\uff0c\u8fd9\u4e0d\u662f\u60f3\u7701\u4e8b\u561b\uff0c\u6298\u817e\u7684\u5c3d\u5934\u662f\u8eba\u5e73\uff09\u5728\u6b64\u8981\u611f\u8c22github\u7684\u5f00\u6e90\u9879\u76eedjj45\/lrc2srt\uff0c\u76f4\u63a5\u5c06\u529f\u80fd\u52a0\u5165\u81f3\u6211\u7684\u811a\u672c\u4e2d\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u751f\u6210srt\u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n<p>\u81f3\u6b64\uff0c\u5b9e\u73b0ASR\u5c31\u5df2\u7ecf\u5f88\u7b80\u5355\u4e86\uff0c\u5148\u901a\u8fc7ffmpeg\u5c06\u97f3\u89c6\u9891\u8f6c\u7801\u81f3wav\u683c\u5f0f\uff08\u8fd9\u662fmodelscope\u7684\u6a21\u578b\u8981\u6c42\uff09\uff0c\u7136\u540e\u901a\u8fc7docker\u5173\u8054\u5bbf\u4e3b\u673a\u6587\u4ef6\u5939\uff0c\u5728docker\u4e2d\u8fd0\u884c\u811a\u672c\uff0c\u5750\u7b49lrc\/srt\u6587\u4ef6\u5c31OK\u4e86\u3002\u800c\u4e14\u867d\u7136\u662fdocker\uff0c\u867d\u7136\u6ca1\u6709cuda\u52a0\u901f\uff0c\u4f46\u901f\u5ea6\u771f\u7684\u6bd4\u60f3\u8c61\u4e2d\u7684\u5feb\u5f97\u591a\uff0c\u6211\u4e00\u4e2a\u4f4e\u538b\u516b\u6838i7\u5904\u7406\u5668\uff0c\u5e73\u5747\u7528\u4e861\/10\u7684\u97f3\u9891\u65f6\u95f4\u5b8c\u6210\u4e86\u8f6c\u5199\uff0c\u8fd9\u4e2a\u65f6\u95f4\u6211\u771f\u7684\u53ef\u4ee5\u63a5\u53d7\u4e86\u3002\u5e0c\u671b\u6709\u66f4\u5f3a\u6027\u80fd\u7684\uff0c\u53ef\u4ee5\u7528gpu-docker\uff0c\u6216\u8005\u4e0a\u4e91\u670d\u52a1\u5668\uff0c\u901f\u5ea6\u80af\u5b9a\u8fd8\u80fd\u518d\u4e0a\u4e00\u4e2a\u53f0\u9636\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/www.modelscope.cn\/home\">\u9996\u9875 \u00b7 \u9b54\u642d\u793e\u533a (modelscope.cn)<\/a><\/p><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/oss.lijishi.com\/modelscope.zip\">modelscope-docker-python\u811a\u672c<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u679c\u7136\uff0c\u6298\u817e\u7684\u5c3d\u5934\u662f\u8eba\u5e73\u2026 \u56e0\u4e3a\u6211\u7ecf\u5e38\u4f7f\u7528PLEX\u8fdb\u884c\u5f71\u97f3\u64ad\u653e\uff0c\u6700\u8fd1\u5728\u542c\u8bc4\u4e66\u7684\u65f6\u5019\uff0c\u5ffd\u7136\u60f3\u5230\u53ef\u4ee5\u50cf\u6b4c\u66f2\u7684\u6b4c\u8bcd\u4e00\u6837 &hellip; <a href=\"https:\/\/blog.lijishi.com\/index.php\/2023\/07\/19\/modelscope-asr\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">ModelScope | \u6253\u9020\u4e13\u5c5eASR<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":615,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[9,22,25],"class_list":["post-612","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-develop","tag-asr","tag-modelscope","tag-python"],"_links":{"self":[{"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/comments?post=612"}],"version-history":[{"count":1,"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/posts\/612\/revisions"}],"predecessor-version":[{"id":697,"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/posts\/612\/revisions\/697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/media\/615"}],"wp:attachment":[{"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/media?parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/categories?post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lijishi.com\/index.php\/wp-json\/wp\/v2\/tags?post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}