{"id":128,"date":"2026-06-21T20:00:00","date_gmt":"2026-06-21T12:00:00","guid":{"rendered":"http:\/\/www.tantan.ink\/index.php\/2026\/06\/21\/magenta-realtime-2-%e4%bd%93%e9%aa%8c%ef%bc%9agoogle-%e6%8a%8a-ai-%e9%9f%b3%e4%b9%90%e5%81%9a%e6%88%90%e4%ba%86%e8%83%bd%e8%b7%9f%e5%bc%b9%e7%9a%84%e4%b9%90%e5%99%a8\/"},"modified":"2026-07-09T19:30:21","modified_gmt":"2026-07-09T11:30:21","slug":"magenta-realtime-2-%e4%bd%93%e9%aa%8c%ef%bc%9agoogle-%e6%8a%8a-ai-%e9%9f%b3%e4%b9%90%e5%81%9a%e6%88%90%e4%ba%86%e8%83%bd%e8%b7%9f%e5%bc%b9%e7%9a%84%e4%b9%90%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.tantan.ink\/index.php\/2026\/06\/21\/magenta-realtime-2-%e4%bd%93%e9%aa%8c%ef%bc%9agoogle-%e6%8a%8a-ai-%e9%9f%b3%e4%b9%90%e5%81%9a%e6%88%90%e4%ba%86%e8%83%bd%e8%b7%9f%e5%bc%b9%e7%9a%84%e4%b9%90%e5%99%a8\/","title":{"rendered":"Magenta RealTime 2\uff1aGoogle \u628a AI \u97f3\u4e50\u505a\u6210\u4e86\u80fd\u8ddf\u5f39\u7684\u4e50\u5668"},"content":{"rendered":"<p>Google Magenta \u56e2\u961f 6 \u6708 4 \u65e5\u4e22\u51fa\u6765\u7684\u65b0\u4e1c\u897f Magenta RealTime 2\uff08\u4e0b\u9762\u7b80\u79f0 MRT2\uff09\uff0c\u5728 AI \u97f3\u4e50\u8fd9\u4e00\u6ce2\u91cc\u7b97\u662f\u4e2a\u5f88\u4e0d\u4e00\u6837\u7684\u4e1c\u897f\u2014\u2014\u5b83\u4e0d\u662f\u7ed9\u4f60&#8221;\u751f\u6210\u4e00\u9996\u6b4c\u542c&#8221;\uff0c\u800c\u662f\u7ed9\u4f60<strong>\u4e00\u4e2a\u80fd\u8ddf\u4f60\u5728\u7434\u952e\u4e0a\u5bf9\u5f39\u7684\u865a\u62df\u4e50\u624b<\/strong>\u3002\u4f60\u6309 MIDI\uff0c\u5b83\u8ddf\uff1b\u4f60\u6362\u98ce\u683c\uff0c\u5b83\u8ddf\u7740\u53d8\uff1b\u4f60\u60f3\u8ba9\u5b83\u505c\u9f13\uff0c\u5b83\u5c31\u505c\u3002<\/p>\n<p>\u800c\u4e14\u8fd9\u6b21\u662f\u771f\u6b63\u80fd\u5728\u672c\u673a\u8dd1\u7684\u5f00\u6e90\u6a21\u578b\uff0c\u4e0d\u662f\u53ea\u80fd\u8c03 API\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"638\" class=\"wp-image-124\" alt=\"Magenta RealTime 2 \u4e3b\u89c6\u89c9\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/06\/mrt2-jam.png\" srcset=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/06\/mrt2-jam.png 850w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/06\/mrt2-jam-300x225.png 300w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/06\/mrt2-jam-768x576.png 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<h2>\u662f\u4ec0\u4e48<\/h2>\n<p>MRT2 \u662f Google \u4e4b\u524d Magenta RealTime \u7684\u7b2c\u4e8c\u4ee3\uff0c\u7b2c\u4e00\u4ee3\u662f\u53bb\u5e74 NeurIPS Creative AI \u4e0a\u90a3\u7bc7 &#8220;Live Music Models&#8221; \u8bba\u6587\u91cc\u63d0\u7684\uff0c2 \u79d2\u4e00\u5e27\u3001\u63a7\u5236\u5ef6\u8fdf 3 \u79d2\u2014\u2014\u80fd\u542c\uff0c\u4f46&#8221;\u5b9e\u65f6&#8221;\u662f\u6709\u70b9\u52c9\u5f3a\u7684\u3002\u65b0\u7248\u672c\u6838\u5fc3\u5c31\u6539\u8fd9\u4e00\u4ef6\u4e8b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>MRT v1<\/th>\n<th>MRT2<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5e27\u5927\u5c0f<\/td>\n<td>2 \u79d2<\/td>\n<td>40 ms<\/td>\n<\/tr>\n<tr>\n<td>\u63a7\u5236\u5ef6\u8fdf<\/td>\n<td>~3 \u79d2<\/td>\n<td>~200 ms<\/td>\n<\/tr>\n<tr>\n<td>\u63a7\u5236\u8f93\u5165<\/td>\n<td>\u6587\u672c\u3001\u97f3\u9891<\/td>\n<td>\u6587\u672c\u3001\u97f3\u9891\u3001<strong>MIDI<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u67b6\u6784<\/td>\n<td>\u53cc\u5411 T5 + \u56e0\u679c\u89e3\u7801\u5668<\/td>\n<td>Decoder-only + \u6ed1\u52a8\u7a97\u53e3\u6ce8\u610f\u529b<\/td>\n<\/tr>\n<tr>\n<td>\u8dd1\u5728\u54ea<\/td>\n<td>TPU\/GPU<\/td>\n<td><strong>Apple Silicon Mac<\/strong>\uff08MLX\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6a21\u578b\u672c\u8eab\u5206\u4e24\u4e2a\u7248\u672c\uff1a<\/p>\n<ul>\n<li><strong>base<\/strong>\uff1a2.4B \u53c2\u6570<\/li>\n<li><strong>small<\/strong>\uff1a230M \u53c2\u6570<\/li>\n<\/ul>\n<p>\u97f3\u9891\u7f16\u7801\u7528\u7684\u662f SpectroStream codec\uff0c\u628a 48 kHz \u7acb\u4f53\u58f0\u538b\u5230 16 kbps\uff08base\uff09\/ 3 kbps\uff08small\uff09\u7684\u4e00\u7ec4 RVQ token\u3002MIDI \u63a7\u5236\u662f\u8fd9\u7248\u6700\u5927\u4eae\u70b9\u2014\u2014128 \u4e2a MIDI \u97f3\u9ad8\u53ef\u4ee5\u5e27\u7ea7\u64cd\u63a7\uff0c\u771f\u4eba\u4e50\u624b\u80fd\u505a\u5230\u7684\u5b9e\u65f6\u611f\u89c9\uff0c\u8fd9\u91cc\u7ec8\u4e8e\u4e5f\u80fd\u8f93\u51fa\u4e86\u3002<\/p>\n<p><img decoding=\"async\" class=\"wp-image-125\" alt=\"MRT2 \u6a21\u578b\u3001\u63a8\u7406\u5f15\u64ce\u3001\u5e94\u7528\u4e09\u5c42\u67b6\u6784\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/06\/mrt2-architecture.png\" \/><\/p>\n<h2>\u600e\u4e48\u88c5<\/h2>\n<p>\u76ee\u524d\u5b98\u65b9\u53ea\u652f\u6301 Apple Silicon Mac\uff08M1\/M2\/M3\/M4 \u7cfb\u5217\uff09\uff0c\u8dd1\u5728 MLX \u4e0a\u3002base \u7248\u672c\u9700\u8981 MacBook M3 Pro \u6216 M2 Max \u4ee5\u4e0a\u624d\u80fd\u5b9e\u65f6\u6d41\u5f0f\u751f\u6210\uff0csmall \u7248\u672c M1 \u5c31\u591f\u3002<\/p>\n<h3>\u88c5 Python \u5e93<\/h3>\n<pre><code class=\"language-bash\">pip install magenta-rt\n<\/code><\/pre>\n<h3>\u72ec\u7acb\u5e94\u7528 \/ DAW \u63d2\u4ef6<\/h3>\n<p>\u53bb <a href=\"https:\/\/magenta.withgoogle.com\/mrt2\">magenta.withgoogle.com\/mrt2<\/a> \u4e0b\u9884\u7f16\u8bd1\u7684\u5305\u3002macOS \u88c5\u597d\u540e\u53ef\u4ee5\u72ec\u7acb\u8dd1\uff0c\u4e5f\u53ef\u4ee5\u88c5\u8fdb Logic Pro\u3001Ableton \u8fd9\u7c7b DAW \u5f53\u4e50\u5668\u8f68\u9053\u3002<\/p>\n<h3>\u88c5\u6e90\u7801<\/h3>\n<pre><code class=\"language-bash\">git clone https:\/\/github.com\/magenta\/magenta-realtime.git\ncd magenta-realtime\npip install -e .\n<\/code><\/pre>\n<h2>\u600e\u4e48\u7528<\/h2>\n<p>\u6700\u6709\u610f\u601d\u7684\u662f MIDI \u63a7\u5236\u8fd9\u90e8\u5206\u3002\u6bcf\u5e27\u6a21\u578b\u4f1a\u6536\u5230\u4e00\u4e2a 128 \u7ef4 multihot \u5411\u91cf\u2014\u2014MIDI \u6807\u51c6\u7684 128 \u4e2a\u97f3\u9ad8\uff0c\u6bcf\u4e2a\u503c\u4ee3\u8868\u8fd9\u4e00\u5e27\u8fd9\u4e2a\u97f3\u7684\u72b6\u6001\uff1a0=\u5173\uff0c1=\u5ef6\u97f3\uff0c2=\u8d77\u97f3\uff0c3=\u6a21\u578b\u81ea\u5df1\u51b3\u5b9a\u3002<\/p>\n<p>\u6709\u4e24\u79cd\u6a21\u5f0f\uff1a<\/p>\n<ul>\n<li><strong>Auto-Strum \u6a21\u5f0f<\/strong>\uff1a\u4f60\u53ea\u7ba1\u6309\u4f4f\u548c\u5f26\uff0c\u6a21\u578b\u81ea\u5df1\u51b3\u5b9a\u5565\u65f6\u5019\u62e8\u5f26\u3001\u600e\u4e48\u5206\u89e3<\/li>\n<li><strong>Auto-Strum \u5173<\/strong>\uff1a\u4f60\u60f3\u7cbe\u63a7\u5230\u6beb\u79d2\u7ea7\u653b\u51fb\u65f6\u5e8f\u4e5f\u884c<\/li>\n<\/ul>\n<p>\u98ce\u683c\u5f15\u5bfc\u7528\u6587\u672c\u6216\u8005\u97f3\u9891\u6837\u4f8b\u90fd\u884c\uff0c\u4e22\u4e2a &#8220;lo-fi hip hop&#8221; \u6216 &#8220;heavy metal&#8221; \u7684\u63d0\u793a\u8bcd\u8fdb\u53bb\u5c31\u8ddf\u7740\u8d70\u3002<\/p>\n<p><img decoding=\"async\" class=\"wp-image-126\" alt=\"Decoder-only \u67b6\u6784 + \u6ed1\u52a8\u7a97\u53e3\u6ce8\u610f\u529b\u793a\u610f\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/06\/mrt2-decoder.png\" \/><\/p>\n<h3>Python \u8c03\u7528\u793a\u610f<\/h3>\n<pre><code class=\"language-python\">import magenta_rt as mrt\n\nmodel = mrt.MagentaRT2(base_or_small=\"base\")\nstate = model.init_state()\n\n# \u52a0\u8f7d\u4e00\u6bb5 MIDI \u63d0\u793a\nmidi_prompt = mrt.MidiPrompt(...)\nstate = model.encode_midi(midi_prompt, state)\n\n# \u8bbe\u7f6e\u98ce\u683c\nstyle = mrt.Style(audio=\"path\/to\/sample.wav\", text=\"warm jazz piano\")\nstate = model.encode_style(style, state)\n\n# \u6d41\u5f0f\u751f\u6210\nfor chunk in model.stream(..., state):\n    audio = chunk.audio  # \u62ff\u5230\u8fd9\u4e00\u6bb5\u751f\u6210\u7684\u97f3\u9891\n<\/code><\/pre>\n<p>\u5b98\u65b9\u4e5f\u6709 C++ \u5f15\u64ce\uff0c\u7ecf\u8fc7 MLX \u7f16\u8bd1\u6210 .mlxfn \u6587\u4ef6\uff0c\u5728 Apple Silicon GPU \u4e0a\u76f4\u63a5\u8dd1\uff0c\u4e0d\u7ed5 Python \u5c42\u3002<\/p>\n<h2>\u51e0\u4e2a\u503c\u5f97\u6ce8\u610f\u7684\u70b9<\/h2>\n<p><strong>\u5ef6\u8fdf 200ms \u4ec0\u4e48\u6982\u5ff5\uff1f<\/strong> \u4eba\u611f\u77e5\u5ef6\u8fdf\u4e00\u822c 100ms \u4ee5\u5185\u662f\u65e0\u611f\uff0c200ms \u662f&#8221;\u6709\u70b9\u611f\u89c9\u4f46\u80fd\u63a5\u53d7&#8221;\u7684\u8fb9\u754c\u3002\u5bf9\u4e8e\u5373\u5174\u6f14\u594f\u573a\u666f\uff0c\u8fd9\u4e2a\u6570\u5b57\u662f\u591f\u7528\u7684\u3002\u5982\u679c\u4f60\u5728\u5916\u63a5 MIDI \u952e\u76d8\u4e0a\u5f39\uff0c\u4f60\u53ef\u80fd\u6ce8\u610f\u5f97\u5230\uff0c\u4f46\u5408\u594f\u6216\u80cc\u666f\u751f\u6210\u5b8c\u5168\u65e0\u611f\u3002<\/p>\n<p><img decoding=\"async\" class=\"wp-image-127\" alt=\"\u5404\u7ec4\u4ef6\u5ef6\u8fdf\u5206\u89e3\u56fe\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/06\/mrt2-latency.png\" \/><\/p>\n<p><strong>\u4e3a\u4ec0\u4e48\u53ea\u652f\u6301 Apple Silicon\uff1f<\/strong> \u56e0\u4e3a MLX \u662f Apple \u81ea\u5df1\u7684\u673a\u5668\u5b66\u4e60\u6846\u67b6\uff0c\u5728 M \u7cfb\u5217\u82af\u7247\u4e0a\u80fd\u62ff\u5230 GPU \u7684\u771f\u6b63\u8fd1\u7aef\u5185\u5b58\uff0c\u9002\u5408\u8fd9\u79cd\u4f4e\u5ef6\u8fdf\u6d41\u5f0f\u63a8\u7406\u3002\u522b\u7684\u5e73\u53f0\uff08Windows\/NVIDIA\uff09\u8fd9\u6b21\u5c31\u6ca1\u653e\u51fa\u6765\uff0cC++ \u63a8\u7406\u5f15\u64ce\u7406\u8bba\u4e0a\u53ef\u4ee5\u79fb\u690d\uff0c\u4f46\u5b98\u65b9\u6ca1\u7ed9\u3002<\/p>\n<p><strong>\u8ddf Suno\/ACE-Step \u6709\u4ec0\u4e48\u4e0d\u540c\uff1f<\/strong> Suno \u548c ACE-Step \u662f&#8221;\u4e00\u6b21\u6027\u751f\u6210\u5b8c\u6574\u66f2\u5b50&#8221;\u7684\u8303\u5f0f\uff0c\u4f60\u7ed9\u63d0\u793a\u8bcd\uff0c\u5b83\u5410\u4e00\u4e2a\u6587\u4ef6\u51fa\u6765\u3002MRT2 \u662f&#8221;\u751f\u6210\u8fc7\u7a0b\u6301\u7eed\u8fd0\u884c\u3001\u4f60\u53ef\u4ee5\u968f\u65f6\u63d2\u624b&#8221;\u7684\u4ea4\u4e92\u5f0f\u8303\u5f0f\uff0c\u66f4\u50cf\u4e00\u4ef6\u4e50\u5668\u800c\u4e0d\u662f\u4e00\u4e2a\u751f\u6210\u5668\u3002\u4e24\u8005\u4e92\u8865\uff0c\u4e0d\u662f\u66ff\u4ee3\u5173\u7cfb\u3002<\/p>\n<p><strong>License \u662f Apache 2.0 + CC-BY 4.0<\/strong>\uff0c\u6a21\u578b\u6743\u91cd\u4e5f\u662f\u5f00\u6e90\u7684\uff0c\u5546\u7528\u6ca1\u95ee\u9898\uff0c\u53ea\u8981\u6807\u6ce8\u6765\u6e90\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>MRT2 \u662f\u7b2c\u4e00\u4e2a\u505a\u5230&#8221;\u771f\u6b63\u53ef\u7528\u5ef6\u8fdf&#8221;\u7684\u5f00\u6e90\u5b9e\u65f6\u97f3\u4e50\u6a21\u578b\uff0c\u800c\u4e14\u5f00\u6e90\u7a0b\u5ea6\u5f88\u8db3\u2014\u2014\u6a21\u578b\u6743\u91cd\u3001\u63a8\u7406\u5f15\u64ce\u3001\u5e94\u7528\u4ee3\u7801\u5168\u5957\u5f00\u6e90\u3002\u5bf9\u4e8e\u672c\u5730 AI \u8def\u7ebf\u6765\u8bf4\uff0c\u8fd9\u662f Apple Silicon \u5728\u56fd\u5185\u7528\u6237\u91cc\u53c8\u591a\u4e86\u4e00\u4e2a\u4e0d\u80fd\u62d2\u7edd\u7684\u7406\u7531\uff08M \u7cfb\u5217\u8dd1\u8fd9\u4e2a\u6bd4\u4efb\u4f55 N \u5361\u65b9\u6848\u90fd\u987a\uff09\u3002<\/p>\n<p>\u5982\u679c\u4f60\uff1a<\/p>\n<ul>\n<li>\u6709 M \u7cfb\u5217 Mac\uff0c\u60f3\u73a9 AI \u97f3\u4e50<\/li>\n<li>\u60f3\u628a AI \u751f\u6210\u5d4c\u8fdb DAW \u5de5\u4f5c\u6d41<\/li>\n<li>\u5bf9\u5ef6\u8fdf\u8981\u6c42\u6bd4&#8221;\u5148\u751f\u6210\u518d\u542c&#8221;\u9ad8<\/li>\n<\/ul>\n<p>\u53ef\u4ee5\u8bd5\u8bd5\u3002\u6e90\u7801\u5728 <a href=\"https:\/\/github.com\/magenta\/magenta-realtime\">github.com\/magenta\/magenta-realtime<\/a>\uff0c\u6a21\u578b\u5728 <a href=\"https:\/\/huggingface.co\/google\/magenta-realtime-2\">huggingface.co\/google\/magenta-realtime-2<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Magenta \u56e2\u961f 6 \u6708 4 \u65e5\u53d1\u5e03\u7684 Magenta RealTime 2\uff0c\u7b2c\u4e00\u4e2a\u628a AI \u97f3\u4e50\u505a\u6210&#8221;\u771f\u80fd\u8ddf\u5f39&#8221;\u7684\u5f00\u6e90\u672c\u5730\u6a21\u578b\u3002\u63a7\u5236\u5ef6\u8fdf\u4ece v1 \u7684 3 \u79d2\u964d\u5230 200ms\uff0c\u65b0\u589e MIDI \u5e27\u7ea7\u63a7\u5236\uff0c2.4B \u53c2\u6570\u7684 base \u7248\u5728 M3 Pro \u4ee5\u4e0a\u7684 MacBook \u4e0a\u5c31\u80fd\u5b9e\u65f6\u8dd1\u3002<\/p>\n","protected":false},"author":2,"featured_media":124,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[40,31,50,48,51,49,41,5],"class_list":["post-128","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-ai","tag-apple-silicon","tag-google","tag-magenta","tag-midi","tag-realtime","tag-41"],"_links":{"self":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":1,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":271,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/128\/revisions\/271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media\/124"}],"wp:attachment":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}