{"id":28536,"date":"2024-11-25T10:37:34","date_gmt":"2024-11-25T02:37:34","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28536\/"},"modified":"2024-11-25T10:37:34","modified_gmt":"2024-11-25T02:37:34","slug":"%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e4%b9%8b%e8%af%ad%e9%9f%b3%e6%90%9c%e7%b4%a2%ef%bc%88suse%e7%89%88%ef%bc%89%e5%ae%9e%e4%be%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28536\/","title":{"rendered":"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b"},"content":{"rendered":"<p>\u76f4\u63a5\u8c03\u7528\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f55\u97f3\u63a5\u53e3\uff0c\u7136\u540e\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u767e\u5ea6\u8bed\u97f3\u7684\u63a5\u53e3\u662f\u8bc6\u522b\u4e0d\u4e86\u8fd9\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u90a3\u4e48\u95ee\u9898\u6765\u4e86<\/p>\n<p>\u4e00\u3001\u5982\u4f55\u8f6c\u7801\uff1fffmpeg\uff1f<\/p>\n<p>\u4e8c\u3001\u5982\u4f55\u5728PHP\u4e2d\u4f7f\u7528\uff1f<\/p>\n<p>\u672c\u6587\u5c06\u8981\u89e3\u51b3\u8fd9\u4e24\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u7528\u5230\u7684\u7b2c\u4e09\u65b9\u5de5\u5177\uff1a<\/p>\n<p>1\u3001\u767e\u5ea6\u8bed\u97f3<\/p>\n<p>2\u3001silk\u6587\u4ef6\u683c\u5f0f\u8f6c\u6362<\/p>\n<p><strong>\u4e00\u3001\u8f6c\u7801silk\u6587\u4ef6\u683c\u5f0f<\/strong><\/p>\n<p>\u4f20\u9001\u95e8\u5728\u6b64\uff1agithub.com\/kn007\/silk-v3-decoder<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a<\/p>\n<p>1\u3001\u9996\u5148\u8981\u5b89\u88c5- ffmpeg\uff0c\u5177\u4f53\u5b89\u88c5\u65b9\u6cd5\u8bf7\u81ea\u884c\u767e\u5ea6\uff0c\u5982\u679c\u8981\u8f6c\u7801\u6210MP3\u683c\u5f0f\uff0c\u8bf7\u8bb0\u5f97\u542f\u7528libmp3lame \u5373 &#8211;enable-libmp3lame<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/f9f22def49337b829f398d284cd0b6c0-0.png\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe\" \/><\/p>\n<p>2\u3001\u5982\u679c\u5728\u4f7f\u7528silk-v3-decoder \u8fc7\u7a0b\u4e2d\u63d0\u793a\u8f6c\u7801\u5931\u8d25\uff0c\u8bf7\u81ea\u884c\u6dfb\u52a0ffmpeg\u5230\u73af\u5883\u53d8\u91cf\u6216\u8005\u4fee\u6539converter.sh\uff0c\u5982\u4e0b\u6240\u793a\uff0c\u5efa\u8bae\u540e\u8005\uff0c\u56e0\u4e3a\u901a\u8fc7PHP\u6267\u884cshell\u811a\u672c\u662f\u4e0d\u8bfb\u73af\u5883\u53d8\u91cf\u7684<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/25fc7ab93b975495e760436ec7f5a97f-1.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe1\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe1\" \/><\/p>\n<p><strong>\u4e8c\u3001\u5982\u4f55\u5728PHP\u4e2d\u4f7f\u7528<\/strong><\/p>\n<p>\u6709\u4e86\u4e0a\u9762\u7684\u795e\u5668\u4e4b\u540e\uff0c\u5988\u5988\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u8bed\u97f3\u8bc6\u522b\u95ee\u9898\u4e86\u3002<\/p>\n<p>\u76ee\u524d\u91c7\u7528thinkPHP 5\u4f5c\u4e3a\u670d\u52a1\u7aef\u7cfb\u7edf\uff0c\u5728\u5c0f\u7a0b\u5e8f\u7aef\u628a\u6587\u4ef6\u4e0a\u4f20\u5230\u540e\u53f0\uff0cTP5\u5df2\u6709\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd\u7684\u5c01\u88c5\uff0c\u5177\u4f53\u4e0a\u4f20\u4ee3\u7801\u4e0d\u7ec6\u8bf4\uff1b<\/p>\n<p>\u6211\u4eec\u53ea\u9700\u8981\u8bfb\u53d6\u4e0a\u4f20\u7684\u6587\u4ef6\uff0c\u901a\u8fc7shell\u547d\u4ee4\u8fdb\u884c\u8f6c\u7801\uff0c\u7136\u540e\u628a\u8f6c\u7801\u540e\u7684\u6587\u4ef6\u53d1\u9001\u7ed9\u767e\u5ea6\u8bed\u97f3\u63a5\u53e3\u5373\u53ef\u5f97\u5230\u8bed\u97f3\u8bc6\u522b\u7ed3\u679c\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u5982\u4e0b\u51e0\u70b9\uff1a<\/p>\n<p>1\u3001\u5176\u4e2dphp\u6267\u884c\u8f6c\u7801\u7684\u4ee3\u7801\u5982\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/25fc7ab93b975495e760436ec7f5a97f-2.png\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe2\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe2\" \/><\/p>\n<p>$real_file\u5373\u4e3a\u8f6c\u7801\u540e\u7684\u97f3\u9891\u6587\u4ef6\u7684\u7edd\u5bf9\u5730\u5740\uff0c\u5efa\u8bae\u8f6c\u6362\u6210WAV\u683c\u5f0f\uff0camr\u683c\u5f0f\u8f6c\u6362\u4e0d\u6210\u529f\uff0c\u539f\u56e0\u672a\u77e5\u3002<\/p>\n<p>2\u3001\u8c03\u7528\u767e\u5ea6\u8bed\u97f3\u63a5\u53e3\u683c\u5f0f\u8bbe\u7f6e<\/p>\n<p>\u9700\u8981\u8bbe\u7f6e\u97f3\u9891\u683c\u5f0f\u4e3aWAV\uff0c\u7801\u7387\u4e3a16000\u6216\u80058000\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/b6f7fbcde9a331c98b4d492e5a86e779-3.png\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe3\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u63d2\u56fe3\" \/><\/p>\n<p><strong>\u4e09\u3001\u603b\u7ed3<\/strong><\/p>\n<p>\u5c0f\u7a0b\u5e8f\u8bed\u97f3\u63a5\u53e3\u548c\u516c\u4f17\u53f7\u7684\u8bed\u97f3\u63a5\u53e3\u4e0d\u4e00\u6837\uff0c\u516c\u4f17\u53f7\u8bed\u97f3\u63a5\u53e3\u8fd4\u56de\u7684\u662famr\u683c\u5f0f\uff0c\u5c0f\u7a0b\u5e8f\u7684\u662fsilk\u683c\u5f0f\uff0c\u662fSkype\u5f00\u6e90\u7684\u4e00\u4e2a\u7f51\u7edc\u97f3\u9891\u683c\u5f0f\uff0c\u901a\u8fc7\u4f20\u9001\u95e8\u4e2d\u7684\u5de5\u5177\u5373\u53ef\u8f6c\u7801\uff0c\u8f6c\u7801\u5de5\u5177\u5148\u662f\u8f6c\u6210pcm\u683c\u5f0f\u6587\u4ef6\uff0c\u7136\u540e\u8f6c\u6210\u6307\u5b9a\u683c\u5f0f\uff0c\u5176\u5b9epcm\u8fd9\u79cd\u683c\u5f0f\u767e\u5ea6\u8bed\u97f3\u5df2\u7ecf\u53ef\u4ee5\u8bc6\u522b\uff0c\u6709\u9700\u8981\u7684\u7ae5\u978b\u53ef\u4ee5\u4fee\u6539converter.sh\u811a\u672c\u3002<\/p>\n<p>\u3010\u76f8\u5173\u63a8\u8350\u3011<\/p>\n<p>1. <\/p>\n<p>2.&nbsp;<\/p>\n<p>3. <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76f4\u63a5\u8c03\u7528\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f55\u97f3\u63a5\u53e3\uff0c\u7136\u540e\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u767e\u5ea6\u8bed\u97f3\u7684\u63a5\u53e3\u662f\u8bc6\u522b\u4e0d\u4e86\u8fd9\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u90a3\u4e48\u95ee\u9898\u6765\u4e86 \u4e00\u3001\u5982\u4f55\u8f6c\u7801\uff1fffmpeg\uff1f \u4e8c\u3001\u5982\u4f55\u5728PHP\u4e2d\u4f7f\u7528\uff1f \u672c\u6587\u5c06\u8981\u89e3\u51b3\u8fd9\u4e24\u4e2a\u95ee\u9898\u3002 \u7528\u5230\u7684\u7b2c\u4e09\u65b9\u5de5\u5177\uff1a 1\u3001\u767e\u5ea6\u8bed\u97f3 2\u3001silk\u6587\u4ef6\u683c\u5f0f\u8f6c\u6362 \u4e00\u3001\u8f6c\u7801silk\u6587\u4ef6\u683c\u5f0f \u4f20\u9001\u95e8\u5728\u6b64\uff1agithub.com\/kn007\/silk-v3-decoder \u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a 1\u3001\u9996\u5148\u8981\u5b89\u88c5- ffmpeg\uff0c\u5177\u4f53\u5b89\u88c5\u65b9\u6cd5\u8bf7\u81ea\u884c\u767e\u5ea6\uff0c\u5982\u679c\u8981\u8f6c\u7801\u6210MP3\u683c\u5f0f\uff0c\u8bf7\u8bb0\u5f97\u542f\u7528libmp3lame \u5373 &#8211;enable-libmp3lame 2\u3001\u5982\u679c\u5728\u4f7f\u7528silk-v3-decoder \u8fc7\u7a0b\u4e2d\u63d0\u793a\u8f6c\u7801\u5931\u8d25\uff0c\u8bf7\u81ea\u884c\u6dfb\u52a0ffmpeg\u5230\u73af\u5883\u53d8\u91cf\u6216\u8005\u4fee\u6539converter.sh\uff0c\u5982\u4e0b\u6240\u793a\uff0c\u5efa\u8bae\u540e\u8005\uff0c\u56e0\u4e3a\u901a\u8fc7PHP\u6267\u884cshell\u811a\u672c\u662f\u4e0d\u8bfb\u73af\u5883\u53d8\u91cf\u7684 \u4e8c\u3001\u5982\u4f55\u5728PHP\u4e2d\u4f7f\u7528 \u6709\u4e86\u4e0a\u9762\u7684\u795e\u5668\u4e4b\u540e\uff0c\u5988\u5988\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u8bed\u97f3\u8bc6\u522b\u95ee\u9898\u4e86\u3002 \u76ee\u524d\u91c7\u7528thinkPHP 5\u4f5c\u4e3a\u670d\u52a1\u7aef\u7cfb\u7edf\uff0c\u5728\u5c0f\u7a0b\u5e8f\u7aef\u628a\u6587\u4ef6\u4e0a\u4f20\u5230\u540e\u53f0\uff0cTP5\u5df2\u6709\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd\u7684\u5c01\u88c5\uff0c\u5177\u4f53\u4e0a\u4f20\u4ee3\u7801\u4e0d\u7ec6\u8bf4\uff1b \u6211\u4eec\u53ea\u9700\u8981\u8bfb\u53d6\u4e0a\u4f20\u7684\u6587\u4ef6\uff0c\u901a\u8fc7shell\u547d\u4ee4\u8fdb\u884c\u8f6c\u7801\uff0c\u7136\u540e\u628a\u8f6c\u7801\u540e\u7684\u6587\u4ef6\u53d1\u9001\u7ed9\u767e\u5ea6\u8bed\u97f3\u63a5\u53e3\u5373\u53ef\u5f97\u5230\u8bed\u97f3\u8bc6\u522b\u7ed3\u679c\u3002 \u9700\u8981\u6ce8\u610f\u5982\u4e0b\u51e0\u70b9\uff1a 1\u3001\u5176\u4e2dphp\u6267\u884c\u8f6c\u7801\u7684\u4ee3\u7801\u5982\u4e0b $real_file\u5373\u4e3a\u8f6c\u7801\u540e\u7684\u97f3\u9891\u6587\u4ef6\u7684\u7edd\u5bf9\u5730\u5740\uff0c\u5efa\u8bae\u8f6c\u6362\u6210WAV\u683c\u5f0f\uff0camr\u683c\u5f0f\u8f6c\u6362\u4e0d\u6210\u529f\uff0c\u539f\u56e0\u672a\u77e5\u3002 2\u3001\u8c03\u7528\u767e\u5ea6\u8bed\u97f3\u63a5\u53e3\u683c\u5f0f\u8bbe\u7f6e \u9700\u8981\u8bbe\u7f6e\u97f3\u9891\u683c\u5f0f\u4e3aWAV\uff0c\u7801\u7387\u4e3a16000\u6216\u80058000\uff0c\u5982\u56fe\u6240\u793a\uff1a \u4e09\u3001\u603b\u7ed3 \u5c0f\u7a0b\u5e8f\u8bed\u97f3\u63a5\u53e3\u548c\u516c\u4f17\u53f7\u7684\u8bed\u97f3\u63a5\u53e3\u4e0d\u4e00\u6837\uff0c\u516c\u4f17\u53f7\u8bed\u97f3\u63a5\u53e3\u8fd4\u56de\u7684\u662famr\u683c\u5f0f\uff0c\u5c0f\u7a0b\u5e8f\u7684\u662fsilk\u683c\u5f0f\uff0c\u662fSkype\u5f00\u6e90\u7684\u4e00\u4e2a\u7f51\u7edc\u97f3\u9891\u683c\u5f0f\uff0c\u901a\u8fc7\u4f20\u9001\u95e8\u4e2d\u7684\u5de5\u5177\u5373\u53ef\u8f6c\u7801\uff0c\u8f6c\u7801\u5de5\u5177\u5148\u662f\u8f6c\u6210pcm\u683c\u5f0f\u6587\u4ef6\uff0c\u7136\u540e\u8f6c\u6210\u6307\u5b9a\u683c\u5f0f\uff0c\u5176\u5b9epcm\u8fd9\u79cd\u683c\u5f0f\u767e\u5ea6\u8bed\u97f3\u5df2\u7ecf\u53ef\u4ee5\u8bc6\u522b\uff0c\u6709\u9700\u8981\u7684\u7ae5\u978b\u53ef\u4ee5\u4fee\u6539converter.sh\u811a\u672c\u3002 \u3010\u76f8\u5173\u63a8\u8350\u3011 1. 2.&nbsp; 3. \u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8bed\u97f3\u641c\u7d22\uff08SUSE\u7248\uff09\u5b9e\u4f8b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-28536","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28536"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28536\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}