{"id":10020416,"date":"2024-11-25T09:45:34","date_gmt":"2024-11-25T01:45:34","guid":{"rendered":"https:\/\/itmax.cn\/?p=10020416"},"modified":"2024-11-25T09:45:34","modified_gmt":"2024-11-25T01:45:34","slug":"web-%e7%ab%af%e8%af%ad%e9%9f%b3%e5%af%b9%e8%af%9d-ai-%e7%a4%ba%e4%be%8b%ef%bc%9a%e4%bd%bf%e7%94%a8-whisper-%e5%92%8c-llama-cpp-%e6%9e%84%e5%bb%ba%e8%af%ad%e9%9f%b3%e8%81%8a%e5%a4%a9%e6%9c%ba%e5%99%a8","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10020416","title":{"rendered":"Web \u7aef\u8bed\u97f3\u5bf9\u8bdd AI \u793a\u4f8b\uff1a\u4f7f\u7528 Whisper \u548c llama.cpp \u6784\u5efa\u8bed\u97f3\u804a\u5929\u673a\u5668\u4eba"},"content":{"rendered":"<p>\u5927\u8bed\u8a00\u6a21\u578b\uff08<code>LLM<\/code>\uff09\u4e3a\u57fa\u4e8e\u6587\u672c\u7684\u5bf9\u8bdd\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u80fd\u529b\u3002\u90a3\u4e48\uff0c\u80fd\u5426\u8fdb\u4e00\u6b65\u6269\u5c55\uff0c\u5c06\u5176\u8f6c\u5316\u4e3a\u8bed\u97f3\u5bf9\u8bdd\u7684\u5f62\u5f0f\u5462\uff1f\u672c\u6587\u5c06\u5c55\u793a\u5982\u4f55\u4f7f\u7528 <code>Whisper<\/code> \u8bed\u97f3\u8bc6\u522b\u548c <code>llama.cpp<\/code> \u6784\u5efa\u4e00\u4e2a Web \u7aef\u8bed\u97f3\u804a\u5929\u673a\u5668\u4eba\u3002<\/p>\n<h2>\u7cfb\u7edf\u6982\u89c8<\/h2>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045500338\" alt=\"\" title=\"\"><\/p>\n<p>\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u7cfb\u7edf\u7684\u5de5\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u7528\u6237\u901a\u8fc7\u8bed\u97f3\u8f93\u5165\u3002<\/li>\n<li>\u8bed\u97f3\u8bc6\u522b\uff0c\u8f6c\u6362\u4e3a\u6587\u672c\u3002<\/li>\n<li>\u6587\u672c\u901a\u8fc7\u5927\u8bed\u8a00\u6a21\u578b\uff08<code>LLM<\/code>\uff09\u751f\u6210\u6587\u672c\u54cd\u5e94\u3002<\/li>\n<li>\u6700\u540e\uff0c\u6587\u672c\u8f6c\u8bed\u97f3\u64ad\u653e\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<h2>\u7cfb\u7edf\u5b9e\u73b0<\/h2>\n<p>\u7aef\u4fa7\u7684\u5177\u4f53\u5f62\u6001\uff08\u5982 web \u7aef\u3001\u684c\u9762\u7aef\u3001\u624b\u673a\u7aef\uff09\u76f4\u63a5\u5f71\u54cd\u4e86\u7b2c\u4e00\u6b65\u7528\u6237\u8bed\u8a00\u7684\u8f93\u5165\uff0c\u4ee5\u53ca\u6700\u540e\u4e00\u6b65\u54cd\u5e94\u7ed3\u679c\u7684\u8bed\u97f3\u64ad\u653e\u3002<br \/>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u9009\u62e9\u4f7f\u7528 Web \u7aef\u4f5c\u4e3a\u793a\u4f8b\uff0c\u5229\u7528\u6d4f\u89c8\u5668\u672c\u8eab\u7684\u8bed\u8a00\u91c7\u96c6\u548c\u8bed\u97f3\u64ad\u653e\u529f\u80fd\uff0c\u6765\u5b9e\u73b0\u7528\u6237\u4e0e\u7cfb\u7edf\u7684\u4e92\u52a8\u3002<\/p>\n<p>\u4e0b\u56fe\u5c55\u793a\u4e86\u7cfb\u7edf\u67b6\u6784\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045500339\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u7528\u6237\u901a\u8fc7 Web \u7aef\u4e0e\u7cfb\u7edf\u4ea4\u4e92\uff0c\u8bed\u97f3\u6570\u636e\u901a\u8fc7 <code>WebSocket<\/code> \u4f20\u8f93\u5230\u540e\u7aef\u670d\u52a1\uff0c\u540e\u7aef\u670d\u52a1\u4f7f\u7528 <code>Whisper<\/code> \u5c06\u8bed\u97f3\u8f6c\u6362\u4e3a\u6587\u672c\uff0c\u63a5\u7740\u901a\u8fc7 <code>llama.cpp<\/code> \u8c03\u7528 <code>LLM<\/code> \u751f\u6210\u6587\u672c\u54cd\u5e94\uff0c\u6700\u540e\uff0c\u6587\u672c\u54cd\u5e94\u901a\u8fc7 <code>WebSocket<\/code> \u53d1\u9001\u56de\u524d\u7aef\uff0c\u5e76\u5229\u7528\u6d4f\u89c8\u5668\u7684\u8bed\u97f3\u64ad\u653e\u529f\u80fd\u5c06\u5176\u6717\u8bfb\u51fa\u6765\u3002<\/p>\n<h3>Web \u7aef<\/h3>\n<p>Web \u7aef\u7684\u5b9e\u73b0\u4e3b\u8981\u4f9d\u8d56 HTML5 \u548c JavaScript\u3002\u6211\u4eec\u4f7f\u7528\u6d4f\u89c8\u5668\u7684 Web API \u8fdb\u884c\u8bed\u97f3\u91c7\u96c6\u548c\u8bed\u97f3\u64ad\u653e\u3002\u4ee5\u4e0b\u662f\u7b80\u5316\u7684 Web \u7aef\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;\n    &lt;meta charset=&quot;UTF-8&quot;&gt;\n    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\n    &lt;title&gt;Voice Chat AI&lt;\/title&gt;\n    &lt;style&gt;\n        #loading { display: none; font-weight: bold; color: blue }\n        #response { white-space: pre-wrap; }\n    &lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;Voice Chat AI&lt;\/h1&gt;\n    &lt;button id=&quot;start&quot;&gt;Start Recording&lt;\/button&gt;\n    &lt;button id=&quot;stop&quot; disabled&gt;Stop Recording&lt;\/button&gt;\n    &lt;p id=&quot;loading&quot;&gt;Loading...&lt;\/p&gt;\n    &lt;p&gt;AI Response: &lt;span id=&quot;response&quot;&gt;&lt;\/span&gt;&lt;\/p&gt;\n\n    &lt;script&gt;\n        let audioContext, mediaRecorder;\n        const startButton = document.getElementById(&quot;start&quot;);\n        const stopButton = document.getElementById(&quot;stop&quot;);\n        const responseElement = document.getElementById(&quot;response&quot;);\n        const loadingElement = document.getElementById(&quot;loading&quot;);\n\n        let socket = new WebSocket(&quot;ws:\/\/localhost:8765\/ws&quot;);\n\n        socket.onmessage = (event) =&gt; {\n            const data = JSON.parse(event.data);\n            const inputText = data.input || &quot;No input detected&quot;;\n            responseElement.textContent += `\/nUser said: ${inputText}`;\n            const aiResponse = data.response || &quot;No response from AI&quot;;\n            responseElement.textContent += `\/nAI says: ${aiResponse}\/n`;\n            loadingElement.style.display = &quot;none&quot;;\n\n            const utterance = new SpeechSynthesisUtterance(aiResponse);\n            speechSynthesis.speak(utterance);\n        };\n\n        socket.onerror = (error) =&gt; {\n            console.error(&quot;WebSocket error:&quot;, error);\n            loadingElement.style.display = &quot;none&quot;;\n        };\n\n        startButton.addEventListener(&quot;click&quot;, async () =&gt; {\n            audioContext = new (window.AudioContext || window.webkitAudioContext)();\n            const stream = await navigator.mediaDevices.getUserMedia({ audio: true });\n            mediaRecorder = new MediaRecorder(stream);\n\n            const audioChunks = [];\n            mediaRecorder.ondataavailable = (event) =&gt; {\n                audioChunks.push(event.data);\n            };\n\n            mediaRecorder.onstop = () =&gt; {\n                const audioBlob = new Blob(audioChunks, { type: &quot;audio\/webm&quot; });\n                loadingElement.style.display = &quot;block&quot;;\n                socket.send(audioBlob);\n            };\n\n            mediaRecorder.start();\n            startButton.disabled = true;\n            stopButton.disabled = false;\n        });\n\n        stopButton.addEventListener(&quot;click&quot;, () =&gt; {\n            mediaRecorder.stop();\n            startButton.disabled = false;\n            stopButton.disabled = true;\n        });\n    &lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<p>\u4e3a\u4e86\u7b80\u5316\u793a\u4f8b\u4ee3\u7801\uff0c\u4f7f\u7528\u4e86\u5f00\u59cb\u548c\u7ed3\u675f\u6309\u94ae\u6765\u624b\u52a8\u63a7\u5236\u8bed\u97f3\u7684\u5f55\u5236\u3002\u5982\u679c\u8981\u5b9e\u73b0\u5b9e\u65f6\u5bf9\u8bdd\uff0c\u9664\u4e86\u9700\u8981\u5408\u7406\u8bbe\u7f6e\u8bed\u97f3\u91c7\u96c6\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u8fd8\u9700\u8981\u786e\u4fdd\u540e\u7aef\u80fd\u591f\u5feb\u901f\u54cd\u5e94\uff0c\u907f\u514d\u5ef6\u8fdf\u5f71\u54cd\u7528\u6237\u4f53\u9a8c\uff08\u8fd9\u5728\u6211\u7684\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u65e0\u6cd5\u505a\u5230\uff09\u3002<\/p>\n<h3>WebSocket \u670d\u52a1\u7aef<\/h3>\n<p>\u670d\u52a1\u7aef\u5b9e\u73b0\u4e3a\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528 <code>Python<\/code> \u548c <code>fastapi<\/code> \u6846\u67b6\u642d\u5efa <code>WebSocket<\/code> \u670d\u52a1\u3002<\/li>\n<li>\u4f7f\u7528 <code>whisper<\/code> \u8fdb\u884c\u8bed\u97f3\u8bc6\u522b\uff0c\u5c06\u8bed\u97f3\u8f6c\u6362\u4e3a\u6587\u672c\uff0c\u6ce8\u610f\u7cfb\u7edf\u73af\u5883\u9700\u8981\u989d\u5916\u5b89\u88c5 <code>ffmpeg<\/code> \u547d\u4ee4\u884c\u5de5\u5177\u3002<\/li>\n<li>\u901a\u8fc7 <code>llama.cpp<\/code> \u52a0\u8f7d <code>LLM<\/code>\uff08\u6211\u4f7f\u7528\u7684\u662f <code>llama3.2-1B<\/code> \u6a21\u578b\uff09 \u5e76\u751f\u6210\u54cd\u5e94\u6587\u672c\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u662f\u670d\u52a1\u7aef\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"python\">from fastapi import FastAPI, WebSocket\nimport uvicorn\nimport whisper\nimport tempfile\nimport os\nimport signal\n\napp = FastAPI()\n\n# \u52a0\u8f7d Whisper \u6a21\u578b\uff0c\u9ed8\u8ba4\u5b58\u50a8\u4f4d\u7f6e ~\/.cache\/whisper\uff0c\u53ef\u4ee5\u901a\u8fc7 download_root \u8bbe\u7f6e\nmodel = whisper.load_model(&quot;base&quot;, download_root=&quot;WHISPER_MODEL&quot;)\n\n@app.websocket(&quot;\/ws&quot;)\nasync def websocket_endpoint(websocket: WebSocket):\n    try:\n        await websocket.accept()\n        while True:\n            # \u63a5\u6536\u97f3\u9891\u6570\u636e\n            audio_data = await websocket.receive_bytes()\n\n            # \u4fdd\u5b58\u4e34\u65f6\u97f3\u9891\u6587\u4ef6\n            with tempfile.NamedTemporaryFile(delete=False, suffix=&quot;.webm&quot;) as temp_audio:\n                temp_audio.write(audio_data)\n                temp_audio_path = temp_audio.name\n\n            # Whisper \u8bed\u97f3\u8bc6\u522b\n            result = model.transcribe(temp_audio_path)\n            os.remove(temp_audio_path)\n            text = result[&quot;text&quot;]\n            print(&quot;user input: &quot;, text)\n\n            # \u751f\u6210 AI \u56de\u590d\n            response_text = LLMResponse(text)\n            print(&quot;AI response: &quot;, response_text)\n\n            await websocket.send_json({&quot;input&quot;: text, &quot;response&quot;: response_text})\n    except Exception as e:\n        print(&quot;Error: &quot;, e)\n\n\ndef handle_shutdown(signal_num, frame):\n    print(f&quot;Received shutdown signal: {signal_num}&quot;)\n\ndef setup_signal_handlers():\n    signal.signal(signal.SIGTERM, handle_shutdown)\n    signal.signal(signal.SIGINT, handle_shutdown)\n\nif __name__ == &quot;__main__&quot;:\n    setup_signal_handlers()\n\n    config = uvicorn.Config(&quot;main:app&quot;, port=8765, log_level=&quot;info&quot;)\n    server = uvicorn.Server(config)\n    server.run()<\/code><\/pre>\n<p>\u6b64\u5916\uff0c<code>llama.cpp<\/code> \u4f7f\u7528 Docker \u5bb9\u5668\u8fd0\u884c\uff0c\u4f5c\u4e3a HTTP \u670d\u52a1\u6765\u63d0\u4f9b <code>LLM<\/code> \u7684\u80fd\u529b\u3002\u542f\u52a8\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"sh\">docker run -p 8080:8080 -v ~\/ai-models:\/models \/\n    ghcr.io\/ggerganov\/llama.cpp:server \/\n    -m \/models\/llama3.2-1B.gguf -c 512 \/\n    --host 0.0.0.0 --port 8080<\/code><\/pre>\n<p><code>WebSocket server<\/code> \u4e0e <code>llama.cpp<\/code> \u4e4b\u95f4\u5219\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 HTTP \u7684\u65b9\u5f0f\u901a\u4fe1\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"python\">import requests\nimport json\n\nclass LlamaCppClient:\n    def __init__(self, host=&quot;http:\/\/localhost&quot;, port=8080):\n        self.base_url = f&quot;{host}:{port}&quot;\n\n    def completion(self, prompt):\n        url = f&quot;{self.base_url}\/v1\/chat\/completions&quot;\n        headers = {&quot;Content-Type&quot;: &quot;application\/json&quot;}\n        payload = {\n            &quot;messages&quot;: [\n                {\n                    &quot;role&quot;: &quot;system&quot;,\n                    &quot;content&quot;: &quot;&quot;&quot;\n                        You are a friendly conversation partner. Be natural, engaging, and helpful in our discussions. Respond to questions clearly and follow the conversation flow naturally.\n                    &quot;&quot;&quot;\n                },\n                {\n                    &quot;role&quot;: &quot;user&quot;,\n                    &quot;content&quot;: prompt\n                }\n            ]\n        }\n        \n        try:\n            response = requests.post(url, headers=headers, data=json.dumps(payload))\n            response.raise_for_status()\n            return response.json()\n        except requests.exceptions.RequestException as e:\n            return {&quot;error&quot;: str(e)}<\/code><\/pre>\n<p>\u6700\u540e\uff0c\u7528\u6237\u4e0e AI \u7684\u804a\u5929\u7ed3\u679c\u7c7b\u4f3c\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045500340\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u901a\u8fc7\u7ed3\u5408 Web \u7aef\u7684\u8bed\u97f3\u8bc6\u522b\u548c\u8bed\u97f3\u5408\u6210\u529f\u80fd\u3001<code>Whisper<\/code> \u7684\u8bed\u97f3\u8f6c\u6587\u672c\u80fd\u529b\u3001\u4ee5\u53ca <code>llama.cpp<\/code> \u63d0\u4f9b\u7684 <code>LLM<\/code> \u670d\u52a1\uff0c\u6211\u4eec\u6210\u529f\u6784\u5efa\u4e86\u4e00\u4e2a\u8bed\u97f3\u5bf9\u8bdd\u7cfb\u7edf\u3002\u8bed\u97f3\u5bf9\u8bdd\u7684\u573a\u666f\u975e\u5e38\u4e30\u5bcc\uff0c\u4f8b\u5982\u53e3\u8bed\u5916\u6559\u3001\u8bed\u97f3\u95ee\u7b54\u7b49\u7b49\u3002\u5e0c\u671b\u672c\u6587\u7684\u793a\u4f8b\u80fd\u591f\u4e3a\u4f60\u5728\u6784\u5efa\u8bed\u97f3\u4ea4\u4e92\u5f0f AI \u7cfb\u7edf\u65f6\u63d0\u4f9b\u542f\u53d1\u3002<\/p>\n<hr>\n<p>(\u6211\u662f\u51cc\u865a\uff0c\u5173\u6ce8\u6211\uff0c\u65e0\u5e7f\u544a\uff0c\u4e13\u6ce8\u6280\u672f\uff0c\u4e0d\u717d\u52a8\u60c5\u7eea\uff0c\u6b22\u8fce\u4e0e\u6211\u4ea4\u6d41)<\/p>\n<hr>\n<p>\u53c2\u8003\u8d44\u6599\uff1a<\/p>\n<ul>\n<li><em><a href=\"https:\/\/link.segmentfault.com\/?enc=K2OylofMTWAbpZ33F1ZILg%3D%3D.0KLSbsIW2mIt1p7V4Bwn%2F4W9vPURiWFKWumOcuBzA7MisLyXMbKGzPG1eeOpCJgJ\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/github.com\/openai\/whisper<\/a><\/em><\/li>\n<li><em><a href=\"https:\/\/link.segmentfault.com\/?enc=JAJ8suJQpGuMcKIZCpZ6Cw%3D%3D.wajc9KOllsglNuNH7PSOdNquWqxnV8qtWW0IyfN9xEdYvhZJ3kRc6%2FGep%2FXTs%2FWsE2Mfu5Wm4vEsAhUwbYco4XuD9Cod48Ez4J%2Ffe31Uqs4%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/github.com\/ggerganov\/llama.cpp\/blob\/master\/examples\/server\/README.md<\/a><\/em><\/li>\n<li><em><a href=\"https:\/\/link.segmentfault.com\/?enc=z4k8BcrgOTu2gwJgYIrX%2Fg%3D%3D.ECW%2FPmLt16XhuZPPb2VS1vBzTwPb%2BqCKpwhNsdzrtyNn%2FM9INqBRIztNecX5pYbi\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/github.com\/fastapi\/fastapi<\/a><\/em><\/li>\n<li><em><a href=\"https:\/\/link.segmentfault.com\/?enc=0d33oTPwRya1rPYW%2BQrnPw%3D%3D.1Pui6isExjCoNALE7fYld%2FmcdbFVFLA%2F4VS0Rw0pdE0g5xfITKmnU7WP243LpN2H8monKphlf%2FeRvR1x6%2FGcs4PrGVPDx9fU1Ut03tExyyU%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/SpeechSynthe&#8230;<\/a><\/em><\/li>\n<\/ul>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000045500336\">https:\/\/segmentfault.com\/a\/1190000045500336<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u4e3a\u57fa\u4e8e\u6587\u672c\u7684\u5bf9\u8bdd\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u80fd\u529b\u3002\u90a3\u4e48\uff0c\u80fd\u5426\u8fdb\u4e00\u6b65\u6269\u5c55\uff0c\u5c06\u5176\u8f6c\u5316\u4e3a\u8bed\u97f3\u5bf9\u8bdd\u7684\u5f62\u5f0f\u5462\uff1f\u672c\u6587\u5c06 [&hellip;]<\/p>\n","protected":false},"author":2,"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-10020416","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\/10020416","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10020416"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020416\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10020416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10020416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10020416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}