{"id":5886,"date":"2024-09-09T02:27:02","date_gmt":"2024-09-08T18:27:02","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=5886"},"modified":"2024-09-09T02:27:02","modified_gmt":"2024-09-08T18:27:02","slug":"babelfishai","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/de\/babelfishai\/","title":{"rendered":"Babelfish.ai\uff1a\u6d4f\u89c8\u5668\u8fd0\u884c\u7684\u8bed\u97f3\u5b9e\u65f6\u8f6c\u5f55\u4e0e\u7ffb\u8bd1\u5e94\u7528"},"content":{"rendered":"<p>Babelfish.ai \u662f\u4e00\u4e2a\u57fa\u4e8e Huggingface <a href=\"https:\/\/www.kdjingpai.com\/de\/transformer\/\">Transformer<\/a>.js \u548c Supabase Realtime \u6784\u5efa\u7684\u5b9e\u65f6\u8f6c\u5f55\u548c\u7ffb\u8bd1\u5e94\u7528\u3002\u8be5\u5e94\u7528\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u52a0\u8f7d\u5927\u6a21\u578b\u5e76\u5728\u672c\u5730\u8fd0\u884c\uff0c\u5b9e\u73b0\u5b9e\u65f6\u7684\u8bed\u97f3\u8f6c\u6587\u5b57\u548c\u7ffb\u8bd1\u529f\u80fd\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u8bbe\u7f6e\u548c\u64cd\u4f5c\uff0c\u5feb\u901f\u5c06\u8bed\u97f3\u5185\u5bb9\u8f6c\u5f55\u4e3a\u6587\u5b57\uff0c\u5e76\u7ffb\u8bd1\u6210\u591a\u79cd\u8bed\u8a00\uff0c\u9002\u7528\u4e8e\u591a\u79cd\u573a\u666f\uff0c\u5982\u4f1a\u8bae\u8bb0\u5f55\u3001\u8de8\u8bed\u8a00\u4ea4\u6d41\u7b49\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-5887\" title=\"Babelfish.ai\uff1a\u6d4f\u89c8\u5668\u8fd0\u884c\u7684\u8bed\u97f3\u5b9e\u65f6\u8f6c\u5f55\u4e0e\u7ffb\u8bd1\u5e94\u7528-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/eb401caada3666b.jpg\" alt=\"Babelfish.ai\uff1a\u6d4f\u89c8\u5668\u8fd0\u884c\u7684\u8bed\u97f3\u5b9e\u65f6\u8f6c\u5f55\u4e0e\u7ffb\u8bd1\u5e94\u7528-1\" width=\"732\" height=\"461\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/eb401caada3666b.jpg 3348w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/eb401caada3666b-300x189.jpg 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/eb401caada3666b-1024x645.jpg 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/eb401caada3666b-768x484.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/eb401caada3666b-1536x968.jpg 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/eb401caada3666b-2048x1291.jpg 2048w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li>\u5b9e\u65f6\u8bed\u97f3\u8f6c\u6587\u5b57\uff1a\u4f7f\u7528 OpenAI <a href=\"https:\/\/www.kdjingpai.com\/de\/crisperwhisper\/\">Whisper<\/a> \u5b9e\u73b0\u9ad8\u6548\u7684\u8bed\u97f3\u8f6c\u6587\u5b57\u529f\u80fd\u3002<\/li>\n<li>\u5b9e\u65f6\u7ffb\u8bd1\uff1a\u652f\u6301\u5c06\u8f6c\u5f55\u7684\u6587\u5b57\u7ffb\u8bd1\u6210 200 \u79cd\u8bed\u8a00\uff0c\u4f7f\u7528 Meta \u7684 NLLB-200 \u6a21\u578b\u3002<\/li>\n<li>\u591a\u5ba2\u6237\u7aef\u5e7f\u64ad\uff1a\u901a\u8fc7 Supabase Realtime \u5c06\u8f6c\u5f55\u548c\u7ffb\u8bd1\u5185\u5bb9\u5b9e\u65f6\u5e7f\u64ad\u7ed9\u8ba2\u9605\u7684\u5ba2\u6237\u7aef\u3002<\/li>\n<li>\u672c\u5730\u8fd0\u884c\uff1a\u65e0\u9700\u670d\u52a1\u5668\u652f\u6301\uff0c\u6240\u6709\u64cd\u4f5c\u5747\u5728\u6d4f\u89c8\u5668\u4e2d\u672c\u5730\u5b8c\u6210\u3002<\/li>\n<li>\u7b80\u5355\u90e8\u7f72\uff1a\u652f\u6301\u672c\u5730\u8fd0\u884c\u548c\u90e8\u7f72\u5230 GitHub Pages\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u4e0e\u8fd0\u884c<\/h3>\n<ol>\n<li><strong>\u672c\u5730\u8fd0\u884c<\/strong>\uff1a\n<ul>\n<li>\u514b\u9686\u4ed3\u5e93\uff1a<code>git clone https:\/\/github.com\/supabase-community\/babelfish.ai.git<\/code><\/li>\n<li>\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\uff1a<code>cd babelfish.ai<\/code><\/li>\n<li>\u590d\u5236\u73af\u5883\u53d8\u91cf\u6587\u4ef6\uff1a<code>cp .env.local.example .env.local<\/code><\/li>\n<li>\u8bbe\u7f6e Supabase \u51ed\u8bc1\uff1a\u5728 <code>.env.local<\/code> \u6587\u4ef6\u4e2d\u586b\u5199\u4f60\u7684 Supabase \u51ed\u8bc1\u3002<\/li>\n<li>\u5b89\u88c5\u4f9d\u8d56\uff1a<code>npm install<\/code><\/li>\n<li>\u8fd0\u884c\u5f00\u53d1\u670d\u52a1\u5668\uff1a<code>npm run dev<\/code><\/li>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee <code>http:\/\/localhost:3000<\/code> \u5373\u53ef\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u90e8\u7f72\u5230 GitHub Pages<\/strong>\uff1a\n<ul>\n<li>\u5728 GitHub \u4ed3\u5e93\u8bbe\u7f6e\u4e2d\u914d\u7f6e\u4f60\u7684 secrets\u3002<\/li>\n<li>\u5c06\u4ee3\u7801\u63a8\u9001\u5230 <code>main<\/code> \u5206\u652f\uff0cGitHub Actions \u4f1a\u81ea\u52a8\u90e8\u7f72\u5230 GitHub Pages\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u4f7f\u7528\u529f\u80fd<\/h3>\n<ol>\n<li><strong>\u5b9e\u65f6\u8bed\u97f3\u8f6c\u6587\u5b57<\/strong>\uff1a\n<ul>\n<li>\u6253\u5f00\u5e94\u7528\u540e\uff0c\u70b9\u51fb\u201c\u5f00\u59cb\u8f6c\u5f55\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5141\u8bb8\u6d4f\u89c8\u5668\u8bbf\u95ee\u9ea6\u514b\u98ce\uff0c\u5f00\u59cb\u8bf4\u8bdd\u3002<\/li>\n<li>\u8bed\u97f3\u5185\u5bb9\u4f1a\u5b9e\u65f6\u663e\u793a\u4e3a\u6587\u5b57\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u5b9e\u65f6\u7ffb\u8bd1<\/strong>\uff1a\n<ul>\n<li>\u5728\u8f6c\u5f55\u8fc7\u7a0b\u4e2d\uff0c\u9009\u62e9\u76ee\u6807\u8bed\u8a00\u3002<\/li>\n<li>\u8f6c\u5f55\u7684\u6587\u5b57\u4f1a\u81ea\u52a8\u7ffb\u8bd1\u6210\u6240\u9009\u8bed\u8a00\uff0c\u5e76\u663e\u793a\u5728\u754c\u9762\u4e0a\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u591a\u5ba2\u6237\u7aef\u5e7f\u64ad<\/strong>\uff1a\n<ul>\n<li>\u8ba2\u9605\u5ba2\u6237\u7aef\u53ef\u4ee5\u901a\u8fc7 Supabase Realtime \u63a5\u6536\u8f6c\u5f55\u548c\u7ffb\u8bd1\u5185\u5bb9\u3002<\/li>\n<li>\u5728\u4e0d\u540c\u8bbe\u5907\u4e0a\u6253\u5f00\u5e94\u7528\uff0c\u767b\u5f55\u76f8\u540c\u7684 Supabase \u8d26\u6237\uff0c\u5373\u53ef\u540c\u6b65\u63a5\u6536\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u9ad8\u7ea7\u8bbe\u7f6e<\/h3>\n<ul>\n<li><strong>\u81ea\u5b9a\u4e49\u6a21\u578b<\/strong>\uff1a\u53ef\u4ee5\u5728 <code>translationWorker.js<\/code> \u4e2d\u66ff\u6362\u4e3a\u5176\u4ed6\u652f\u6301\u7684\u7ffb\u8bd1\u6a21\u578b\u3002<\/li>\n<li><strong>\u754c\u9762\u5b9a\u5236<\/strong>\uff1a\u4fee\u6539 <code>index.html<\/code> \u548c <code>src<\/code> \u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5e94\u7528\u754c\u9762\u548c\u529f\u80fd\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Babelfish.ai \u662f\u4e00\u4e2a\u57fa\u4e8e Huggingface Transformer.js \u548c Supabase Realtime \u6784\u5efa\u7684\u5b9e\u65f6\u8f6c\u5f55\u548c\u7ffb\u8bd1\u5e94\u7528\u3002\u8be5\u5e94\u7528\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u52a0\u8f7d\u5927\u6a21\u578b\u5e76\u5728\u672c\u5730\u8fd0\u884c\uff0c\u5b9e\u73b0\u5b9e\u65f6\u7684\u8bed\u97f3\u8f6c\u6587\u5b57\u548c\u7ffb\u8bd1\u529f\u80fd\u3002\u7528\u6237\u53ef&#8230;<\/p>\n","protected":false},"author":1,"featured_media":60977,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,216],"class_list":["post-5886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-aiyuyinzhuanwenben"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/5886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/comments?post=5886"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/5886\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media\/60977"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media?parent=5886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/categories?post=5886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/tags?post=5886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}