{"id":10021067,"date":"2025-11-06T15:21:28","date_gmt":"2025-11-06T07:21:28","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021067"},"modified":"2025-11-06T15:21:28","modified_gmt":"2025-11-06T07:21:28","slug":"java-%e5%ae%9e%e7%8e%b0%e5%8f%af%e9%9d%a0%e7%9a%84-wav-%e9%9f%b3%e9%a2%91%e6%8b%bc%e6%8e%a5%ef%bc%9a%e4%bb%8e%e7%bb%93%e6%9e%84%e8%a7%a3%e6%9e%90%e5%88%b0%e5%ae%8c%e6%95%b4%e5%8f%af%e6%92%ad%e6%94%be","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021067","title":{"rendered":"Java \u5b9e\u73b0\u53ef\u9760\u7684 WAV \u97f3\u9891\u62fc\u63a5\uff1a\u4ece\u7ed3\u6784\u89e3\u6790\u5230\u5b8c\u6574\u53ef\u64ad\u653e\u7684\u9ad8\u8d28\u91cf\u5408\u5e76\u65b9\u6848"},"content":{"rendered":"<h2>Java \u5b9e\u73b0\u53ef\u9760\u7684 WAV \u97f3\u9891\u62fc\u63a5\uff1a\u4ece\u7ed3\u6784\u89e3\u6790\u5230\u5b8c\u6574\u53ef\u64ad\u653e\u7684\u9ad8\u8d28\u91cf\u5408\u5e76\u65b9\u6848<\/h2>\n<p>\u5728\u97f3\u9891\u76f8\u5173\u7684\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u63a5\u89e6\u5230\u97f3\u9891\u7247\u6bb5\u62fc\u63a5\u7684\u9700\u6c42\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>\u6587\u672c\u8f6c\u8bed\u97f3\uff08TTS\uff09\u5e73\u53f0\u5c06\u591a\u6bb5\u8bed\u97f3\u6309\u6bb5\u843d\u62fc\u5408\u6210\u5b8c\u6574\u97f3\u9891\uff1b<\/li>\n<li>\u8bed\u97f3\u5bfc\u822a\u7cfb\u7edf\u9700\u8981\u6309\u573a\u666f\u62fc\u63a5\u63d0\u793a\u97f3\uff1b<\/li>\n<li>\u6559\u80b2\u7c7b\u4ea7\u54c1\u4e2d\uff0c\u5c06\u8bcd\u97f3\u3001\u91ca\u4e49\u3001\u4f8b\u53e5\u7b49\u7247\u6bb5\u7ec4\u5408\u6210\u81ea\u7136\u6d41\u7545\u7684\u8bb2\u89e3\u97f3\u9891\uff1b<\/li>\n<li>\u5f55\u97f3\u7f16\u8f91\u5de5\u5177\u4e2d\u5bf9\u591a\u4e2a\u5f55\u97f3\u7247\u6bb5\u8fdb\u884c\u6574\u5408\u5904\u7406\u3002<\/li>\n<\/ul>\n<p>\u4e4d\u770b\u4e4b\u4e0b\uff0c\u628a\u591a\u4e2a WAV \u6587\u4ef6\u7b80\u5355\u62fc\u63a5\u4f3c\u4e4e\u53ea\u662f\u201c\u628a\u6570\u636e\u8ffd\u52a0\u5728\u4e00\u8d77\u201d\u3002\u4f46\u5982\u679c\u5904\u7406\u4e0d\u5f53\uff0c\u5c31\u4f1a\u51fa\u73b0\u4e00\u4e9b\u5178\u578b\u95ee\u9898\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u95ee\u9898\u73b0\u8c61<\/th>\n<th>\u8868\u73b0\u5185\u5bb9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u64ad\u653e\u5f02\u5e38<\/td>\n<td>\u64ad\u653e\u5668\u53ea\u80fd\u64ad\u653e\u7b2c\u4e00\u6bb5\uff0c\u540e\u7eed\u5185\u5bb9\u6d88\u5931<\/td>\n<\/tr>\n<tr>\n<td>\u65f6\u95f4\u663e\u793a\u9519\u8bef<\/td>\n<td>\u64ad\u653e\u5668\u663e\u793a\u97f3\u9891\u603b\u65f6\u957f\u4e3a 0 \u79d2\u6216\u660e\u663e\u4e0d\u5bf9<\/td>\n<\/tr>\n<tr>\n<td>\u58f0\u97f3\u5931\u771f\u6216\u53d8\u901f<\/td>\n<td>\u5408\u5e76\u540e\u58f0\u97f3\u66f4\u5feb\u3001\u53d8\u6162\u6216\u97f3\u91cf\u53d8\u5316\u4e0d\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u65e0\u6cd5\u8bc6\u522b<\/td>\n<td>\u64ad\u653e\u8f6f\u4ef6\u76f4\u63a5\u62a5\u9519\u6216\u8005\u65e0\u6cd5\u6253\u5f00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u4e9b\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\uff0c\u5f80\u5f80\u4e0d\u5728\u97f3\u9891\u672c\u8eab\uff0c\u800c\u5728\u4e8e <strong>WAV \u6587\u4ef6\u5934\u548c\u5757\u7ed3\u6784\u6ca1\u6709\u88ab\u6b63\u786e\u5904\u7406<\/strong>\u3002<\/p>\n<hr>\n<h2>\u672c\u7ae0\u5b8c\u6574\u4ee3\u7801<\/h2>\n<p>\ud83d\udce6 \u5b8c\u6574\u5b9e\u73b0\u4ee3\u7801,\u4e4b\u524d\u5df2\u7ecf\u5728\u4e0b\u9762\u8fd9\u7bc7\u6587\u7ae0\u5185\u5199\u8fc7\u4e86\uff0c\u9700\u8981\u6211\u7684\u5b8c\u6574\u5c01\u88c5\u597d\u7684\u4ee3\u7801\uff0c\u53ef\u652f\u6301\u4e0b\u9762\u6587\u7ae0\u3002<br \/>\uff08\u5305\u542b\u5b8c\u6574\u7c7b\u5b9a\u4e49\u3001\u5f02\u5e38\u5904\u7406\u4e0e\u65e5\u5fd7\u8f93\u51fa\u903b\u8f91\uff09<br \/>\u5230\u4e0b\u9762\u6587\u7ae0\u4e2d\u83b7\u53d6\uff0c\u4eb2\u6d4b\u5b8c\u6574\u4ee3\u7801\uff0c\u53ef\u8fd0\u884c\uff0c\u76ee\u524d\u6ca1\u6709\u53d1\u73b0bug\uff0c\u8fd0\u884c\u826f\u597d\u3002<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=oQCVHM%2FB8tXqKI6TxnB9WA%3D%3D.LwaM3E0QQOUD83dVcy%2FY2z070c%2FZzdlllEgyBDRktVmqvnxZkpmVDL0GCd5pmB990ELbcgb4sNHASwYBJqxmig%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/blog.csdn.net\/weixin_52908342\/article\/details\/154193622<\/a><\/p><\/blockquote>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372775\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" title=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><\/p>\n<h3>\u4e00\u3001\u6df1\u5165\u7406\u89e3 WAV \u6587\u4ef6\u7684\u7ed3\u6784<\/h3>\n<p>WAV \u5c5e\u4e8e <strong>RIFF (Resource Interchange File Format)<\/strong> \u6587\u4ef6\u683c\u5f0f\uff0c\u8fd9\u662f\u4e00\u79cd\u7531\u591a\u4e2a <strong>Chunk\uff08\u6570\u636e\u5757\uff09<\/strong> \u7ec4\u6210\u7684\u5c42\u7ea7\u7ed3\u6784\u3002<\/p>\n<p>\u4e00\u4e2a\u5178\u578b\u4e14\u6700\u7b80\u5355\u7684 WAV \u6587\u4ef6\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<pre><code>RIFF Header\n \u2514\u2500 &quot;fmt &quot; Chunk\uff08\u63cf\u8ff0\u97f3\u9891\u683c\u5f0f\uff09\n \u2514\u2500 &quot;data&quot; Chunk\uff08\u539f\u59cb\u97f3\u9891\u6570\u636e\uff09<\/code><\/pre>\n<p>\u4f46\u5728 <strong>\u5b9e\u9645\u573a\u666f<\/strong> \u4e2d\uff0c\u5f88\u591a WAV \u4f1a\u5305\u542b\u989d\u5916\u7684\u6570\u636e\u5757\uff0c\u6bd4\u5982\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5757\u540d<\/th>\n<th>\u4f5c\u7528\u89e3\u91ca<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>LIST<\/td>\n<td>\u5b58\u653e\u97f3\u4e50\u5143\u4fe1\u606f\uff0c\u5982\u6807\u9898\u3001\u827a\u672f\u5bb6\u3001\u6ce8\u91ca<\/td>\n<\/tr>\n<tr>\n<td>INFO<\/td>\n<td>\u66f4\u7ec6\u5316\u7684\u8bb0\u5f55\u5c5e\u6027\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>JUNK<\/td>\n<td>\u5360\u4f4d\/\u5bf9\u9f50\u5757\uff0c\u4e3a\u4e86\u5bf9\u9f50\u6570\u636e\u6216\u8005\u586b\u5145\u6587\u4ef6\u5927\u5c0f<\/td>\n<\/tr>\n<tr>\n<td>fact<\/td>\n<td>\u67d0\u4e9b\u538b\u7f29\u683c\u5f0f\u4e0b\u97f3\u9891\u5e27\u7edf\u8ba1\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u56e0\u6b64\u4e00\u4e2a\u771f\u5b9e WAV \u6587\u4ef6\u7ed3\u6784\u53ef\u80fd\u662f\uff1a<\/p>\n<pre><code>RIFF\n \u2514\u2500 WAVE\n     \u251c\u2500 fmt   \uff08\u97f3\u9891\u683c\u5f0f\u4fe1\u606f\uff09\n     \u251c\u2500 LIST  \uff08\u53ef\u9009\u5143\u6570\u636e\uff09\n     \u251c\u2500 JUNK  \uff08\u53ef\u9009\u5360\u4f4d\u6570\u636e\uff09\n     \u251c\u2500 fact  \uff08\u53ef\u9009\uff0c\u538b\u7f29\u97f3\u9891\uff09\n     \u2514\u2500 data  \uff08\u771f\u5b9e PCM \u97f3\u9891\u6570\u636e\uff09<\/code><\/pre>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372776\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" title=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" loading=\"lazy\"><\/p>\n<h4>\u26a0 \u5173\u952e\u70b9\uff1a<\/h4>\n<blockquote><p><strong>data \u5757\u7684\u4f4d\u7f6e\u4e0d\u56fa\u5b9a\uff0c\u5927\u5c0f\u4e5f\u4e0d\u56fa\u5b9a<\/strong><br \/>\u56e0\u6b64\uff0c<strong>\u4e0d\u80fd\u4f9d\u8d56\u201c\u97f3\u9891\u6570\u636e\u4ece\u7b2c 44 \u5b57\u8282\u5f00\u59cb\u201d\u8fd9\u79cd\u5047\u8bbe\u3002<\/strong><\/p><\/blockquote>\n<p>\u8bb8\u591a\u62fc\u63a5\u5931\u8d25\uff0c\u6b63\u662f\u56e0\u4e3a <strong>\u9519\u8bef\u5730\u8ba4\u4e3a\u97f3\u9891\u6570\u636e\u4e00\u5b9a\u4ece 44 \u5b57\u8282\u4f4d\u7f6e\u5f00\u59cb\u3002<\/strong><\/p>\n<hr>\n<h3>\u4e8c\u3001\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u64ad\u653e\u5f02\u5e38\uff1f<\/h3>\n<p>\u5047\u8bbe\u6211\u4eec\u76f4\u63a5\u56fa\u5b9a\u504f\u79fb\u8bfb\u53d6\u97f3\u9891\u6570\u636e\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"text\">\u4ece\u7b2c 44 \u5b57\u8282\u8bfb\u53d6\u5269\u4f59\u6570\u636e\u4f5c\u4e3a PCM \u6570\u636e<\/code><\/pre>\n<p>\u5982\u679c\u88ab\u5904\u7406\u7684\u97f3\u9891\u4e2d\u5305\u542b LIST \u6216 JUNK \u5757\uff0c\u5219\uff1a<\/p>\n<pre><code>44 \u5b57\u8282 ~ data \u5757\u4e4b\u95f4 = \u975e\u97f3\u9891\u4fe1\u606f<\/code><\/pre>\n<p>\u8fd9\u4e9b\u975e\u97f3\u9891\u5185\u5bb9\u88ab\u201c\u5f53\u4f5c\u97f3\u9891\u5199\u5165\u201d\uff0c\u5c31\u4f1a\u5bfc\u81f4\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5f71\u54cd<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>PCM \u6570\u636e\u9519\u4f4d<\/td>\n<td>\u5bfc\u81f4\u64ad\u653e\u51fa\u73b0\u566a\u58f0\u6216\u7834\u97f3<\/td>\n<\/tr>\n<tr>\n<td>\u64ad\u653e\u5668\u65e0\u6cd5\u8bc6\u522b\u771f\u5b9e data \u5927\u5c0f<\/td>\n<td>\u5bfc\u81f4\u663e\u793a\u65f6\u957f\u5f02\u5e38\u6216\u4ec5\u64ad\u653e\u4e00\u6bb5<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u7ed3\u6784\u635f\u574f<\/td>\n<td>\u64ad\u653e\u5668\u76f4\u63a5\u65e0\u6cd5\u6253\u5f00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u56e0\u6b64\uff0c\u8981\u6b63\u786e\u62fc\u63a5 WAV \u6587\u4ef6\uff0c\u5fc5\u987b\u505a\u5230\uff1a<\/p>\n<h4>\u2705 \u6b63\u786e\u5b9a\u4f4d data \u5757<\/h4>\n<h4>\u2705 \u6b63\u786e\u7d2f\u52a0 data \u5757\u957f\u5ea6<\/h4>\n<h4>\u2705 \u6b63\u786e\u56de\u5199 RIFF \u548c data \u7684\u957f\u5ea6\u5b57\u6bb5<\/h4>\n<hr>\n<h3>\u4e09\u3001\u53ef\u884c\u4e14\u9c81\u68d2\u7684 WAV \u62fc\u63a5\u7b56\u7565<\/h3>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372777\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" title=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" loading=\"lazy\"><\/p>\n<h4><strong>\u6b65\u9aa4 1\uff1a\u8bfb\u53d6\u6bcf\u4e2a\u6587\u4ef6\u5e76\u9010\u5757\u626b\u63cf<\/strong><\/h4>\n<p>\u4ece\u97f3\u9891\u6587\u4ef6\u7b2c 12 \u5b57\u8282\uff08\u8df3\u8fc7 \u201cRIFFxxxxWAVE\u201d\uff09\u5f00\u59cb\uff1a<\/p>\n<pre><code>\u5faa\u73af\u8bfb\u53d6 ChunkHeader (8 \u5b57\u8282)\n\u2502\n\u251c\u2500 \u5982\u679c ChunkID == &quot;data&quot; \u2192 \u8bb0\u4e0b data \u7684\u504f\u79fb\u4f4d\u7f6e\u548c\u5927\u5c0f\n\u2514\u2500 \u5426\u5219 \u2192 \u8df3\u8fc7\u8be5\u5757\u7684\u5185\u5bb9\u7ee7\u7eed\u67e5\u627e<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\uff1a<\/p>\n<ul>\n<li>\u4e0d\u4f1a\u628a LIST\u3001JUNK\u3001INFO \u7b49\u6269\u5c55\u5185\u5bb9\u8bef\u5f53\u4f5c\u97f3\u9891\u6570\u636e<\/li>\n<li>\u53ef\u4ee5\u5904\u7406\u4e0d\u540c\u6765\u6e90\u3001\u4e0d\u540c\u7ed3\u6784\u7684 WAV \u6587\u4ef6<\/li>\n<\/ul>\n<hr>\n<h4><strong>\u6b65\u9aa4 2\uff1a\u7b2c\u4e00\u4e2a\u6587\u4ef6\u5199\u5934\u90e8\uff0c\u5176\u4f59\u6587\u4ef6\u53ea\u5199\u6570\u636e<\/strong><\/h4>\n<p>\u7b2c\u4e00\u4e2a\u6587\u4ef6\uff1a<\/p>\n<ul>\n<li>\u4fdd\u7559 RIFF\u3001fmt\u3001\u53ef\u80fd\u5b58\u5728\u7684 LIST \/ JUNK \u7b49\u5757<\/li>\n<li>\u4f46\u6682\u65f6\u4e0d\u56de\u5199 data \u5757\u5927\u5c0f\u5b57\u6bb5<\/li>\n<\/ul>\n<p>\u540e\u7eed\u6587\u4ef6\uff1a<\/p>\n<ul>\n<li><strong>\u53ea\u5199 data \u5757\u7684 PCM \u6570\u636e\u90e8\u5206<\/strong><\/li>\n<\/ul>\n<hr>\n<h4><strong>\u6b65\u9aa4 3\uff1a\u7d2f\u52a0\u6240\u6709 data \u5757\u7684\u771f\u5b9e\u957f\u5ea6<\/strong><\/h4>\n<p>\u5408\u5e76\u7ed3\u675f\u540e\uff0c\u9700\u8981\u6839\u636e\u7d2f\u52a0\u7ed3\u679c\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5b57\u6bb5\u4f4d\u7f6e<\/th>\n<th>\u66f4\u65b0\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>RIFF ChunkSize (\u504f\u79fb 4)<\/td>\n<td>\u603b\u6587\u4ef6\u5927\u5c0f &#8211; 8<\/td>\n<\/tr>\n<tr>\n<td>data Subchunk2Size<\/td>\n<td>\u6240\u6709\u97f3\u9891\u6570\u636e\u957f\u5ea6\u4e4b\u548c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5426\u5219\u64ad\u653e\u5668\u4f1a\u8ba4\u4e3a\uff1a<\/p>\n<pre><code>\u97f3\u9891\u6570\u636e\u4e3a 0 \u2192 \u65f6\u957f\u4e3a 0 \u2192 \u64ad\u653e\u65f6\u53ea\u64ad\u653e\u5f00\u5934<\/code><\/pre>\n<hr>\n<h3>\u56db\u3001\u6548\u679c\u9a8c\u8bc1\u4e0e\u5bf9\u6bd4\u8bf4\u660e<\/h3>\n<p>\u5047\u8bbe\u6709 3 \u4e2a\u97f3\u9891\u7247\u6bb5\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6587\u4ef6<\/th>\n<th>\u65f6\u957f<\/th>\n<th>\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>01.wav<\/td>\n<td>2.1s<\/td>\n<td>\u5355\u58f0\u9053\uff0c44.1kHz<\/td>\n<\/tr>\n<tr>\n<td>02.wav<\/td>\n<td>3.4s<\/td>\n<td>\u683c\u5f0f\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>03.wav<\/td>\n<td>1.7s<\/td>\n<td>\u683c\u5f0f\u4e00\u81f4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u62fc\u63a5\u5b8c\u6210\u540e\uff1a<\/p>\n<p>\u2714 \u64ad\u653e\u987a\u5e8f\u5b8c\u6574\u8fde\u8d2f<br \/>\u2714 \u97f3\u8d28\u4e00\u81f4\u4e14\u6ca1\u6709\u5361\u987f\u6216\u6742\u97f3<br \/>\u2714 \u64ad\u653e\u5668\u663e\u793a\u603b\u65f6\u957f \u2248 7.2 \u79d2<br \/>\u2714 WaveLab\u3001Audition\u3001GoldWave \u7b49\u8f6f\u4ef6\u5747\u53ef\u6b63\u5e38\u6253\u5f00\u4e0e\u7f16\u8f91<\/p>\n<hr>\n<h3>\u4e94\u3001\u4f7f\u7528\u65f6\u6ce8\u610f\u4e8b\u9879<\/h3>\n<p>\u4e3a\u4e86\u786e\u4fdd\u97f3\u9891\u5408\u5e76\u540e\u8d28\u91cf\u4e00\u81f4\uff0c<strong>\u6240\u6709\u97f3\u9891\u7684\u53c2\u6570\u5fc5\u987b\u4e00\u81f4<\/strong>\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u53c2\u6570\u540d\u79f0<\/th>\n<th>\u63a8\u8350\u4e00\u81f4\u6027\u8981\u6c42<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u91c7\u6837\u7387<\/td>\n<td>44100 Hz \/ 48000 Hz \u7b49<\/td>\n<\/tr>\n<tr>\n<td>\u58f0\u9053\u6570<\/td>\n<td>\u5355\u58f0\u9053 \/ \u53cc\u58f0\u9053\u5fc5\u987b\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>\u91c7\u6837\u4f4d\u5bbd<\/td>\n<td>16-bit \/ 24-bit \u5fc5\u987b\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>\u7f16\u7801\u683c\u5f0f<\/td>\n<td>\u5fc5\u987b\u4e3a PCM\uff08AudioFormat = 1\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u53c2\u6570\u4e0d\u4e00\u81f4\uff0c\u5e94\u5148\u505a\u683c\u5f0f\u8f6c\u6362\uff0c\u5426\u5219\u97f3\u9891\u4f1a\uff1a<\/p>\n<ul>\n<li>\u64ad\u653e\u53d8\u5feb\u6216\u53d8\u6162<\/li>\n<li>\u5de6\u53f3\u58f0\u9053\u4e0d\u5339\u914d\u5bfc\u81f4\u58f0\u573a\u9519\u4e71<\/li>\n<li>\u632f\u5e45\u4e0d\u4e00\u81f4\u5bfc\u81f4\u51fa\u73b0\u7a81\u5140\u97f3\u91cf\u53d8\u5316<\/li>\n<\/ul>\n<hr>\n<h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u6b63\u786e\u89e3\u6790 WAV \u6587\u4ef6\u5185\u90e8\u7ed3\u6784\uff0c\u52a8\u6001\u5b9a\u4f4d <code>data<\/code> \u5757\u5e76\u66f4\u65b0\u5934\u90e8\uff0c\u6211\u4eec\u5b9e\u73b0\u4e86\u4e00\u4e2a\uff1a<\/p>\n<ul>\n<li><strong>\u7a33\u5b9a<\/strong><\/li>\n<li><strong>\u901a\u7528<\/strong><\/li>\n<li><strong>\u53ef\u5927\u89c4\u6a21\u6279\u5904\u7406<\/strong><\/li>\n<li><strong>\u65e0\u9700\u4f9d\u8d56\u7b2c\u4e09\u65b9\u5de5\u5177<\/strong><\/li>\n<li><strong>\u80fd\u591f\u5904\u7406\u5b9e\u9645\u590d\u6742 WAV \u6587\u4ef6<\/strong><\/li>\n<\/ul>\n<p>\u7684\u97f3\u9891\u62fc\u63a5\u65b9\u6848\u3002<\/p>\n<p>WAV \u62fc\u63a5\u8868\u9762\u4e0a\u662f\u4e00\u9879\u7b80\u5355\u7684\u5b57\u8282\u8ffd\u52a0\u64cd\u4f5c\uff0c\u4f46\u771f\u6b63\u5f71\u54cd\u64ad\u653e\u6548\u679c\u7684\u6838\u5fc3\u5728\u4e8e \u6b63\u786e\u5904\u7406\u6587\u4ef6\u7684\u5757\u7ed3\u6784\u548c\u5934\u90e8\u4fe1\u606f\u3002\u53ea\u6709\u52a8\u6001\u8bc6\u522b data \u5757\u7684\u4f4d\u7f6e\u3001\u51c6\u786e\u7d2f\u8ba1\u5b9e\u9645\u97f3\u9891\u6570\u636e\u957f\u5ea6\uff0c\u5e76\u5728\u5408\u5e76\u5b8c\u6210\u540e\u91cd\u5199 RIFF \u548c data \u7684\u957f\u5ea6\u5b57\u6bb5\uff0c\u624d\u80fd\u786e\u4fdd\u64ad\u653e\u5668\u5728\u64ad\u653e\u8fc7\u7a0b\u4e2d\u80fd\u591f\u6b63\u786e\u8bc6\u522b\u5b8c\u6574\u97f3\u9891\u3002\u901a\u8fc7\u672c\u6b21\u5b9e\u8df5\uff0c\u6211\u4eec\u4ece\u5e38\u89c1\u7684\u201c\u65f6\u957f\u663e\u793a\u4e3a 0\u3001\u53ea\u80fd\u64ad\u653e\u4e00\u6bb5\u3001\u62fc\u63a5\u540e\u51fa\u73b0\u6742\u97f3\u201d\u7b49\u5178\u578b\u95ee\u9898\u5165\u624b\uff0c\u9010\u6b65\u5206\u6790\u539f\u56e0\u5e76\u6784\u5efa\u4e86\u4e00\u4e2a \u901a\u7528\u3001\u7a33\u5b9a\u3001\u53ef\u6269\u5c55 \u7684 WAV \u62fc\u63a5\u65b9\u6848\u3002\u8be5\u65b9\u6cd5\u4e0d\u4ec5\u9002\u7528\u4e8e\u7b80\u5355\u97f3\u9891\u5408\u5e76\uff0c\u4e5f\u53ef\u4e3a\u8bed\u97f3\u5408\u6210\u3001\u5f55\u97f3\u7f16\u8f91\u3001\u81ea\u52a8\u64ad\u62a5\u751f\u6210\u7b49\u4e1a\u52a1\u63d0\u4f9b\u575a\u5b9e\u57fa\u7840\u3002\u7406\u89e3\u683c\u5f0f\u672c\u8eab\uff0c\u5f80\u5f80\u6bd4\u76f4\u63a5\u4f7f\u7528\u5de5\u5177\u66f4\u91cd\u8981\u3002\u97f3\u9891\u5904\u7406\u4e0d\u662f\u76f2\u76ee\u64cd\u4f5c\u5b57\u8282\uff0c\u66f4\u662f\u5bf9\u6570\u636e\u7ed3\u6784\u7684\u7cbe\u51c6\u628a\u63a7\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047372773\">https:\/\/segmentfault.com\/a\/1190000047372773<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java \u5b9e\u73b0\u53ef\u9760\u7684 WAV \u97f3\u9891\u62fc\u63a5\uff1a\u4ece\u7ed3\u6784\u89e3\u6790\u5230\u5b8c\u6574\u53ef\u64ad\u653e\u7684\u9ad8\u8d28\u91cf\u5408\u5e76\u65b9\u6848 \u5728\u97f3\u9891\u76f8\u5173\u7684\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021067","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021067"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021067\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}