{"id":1932,"date":"2023-02-17T22:53:51","date_gmt":"2023-02-17T14:53:51","guid":{"rendered":"https:\/\/pjq.me\/?p=1932"},"modified":"2023-02-18T16:43:05","modified_gmt":"2023-02-18T08:43:05","slug":"chatgpt-mispeaker","status":"publish","type":"post","link":"https:\/\/pjq.me\/?p=1932","title":{"rendered":"ChatGPT-MiSpeaker"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/pjq.me\/?p=1932\/#ChatGPT-MiSpeaker\" >ChatGPT-MiSpeaker<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/pjq.me\/?p=1932\/#Repo\" >Repo<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/pjq.me\/?p=1932\/#Requirements\" >Requirements<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/pjq.me\/?p=1932\/#Update_your_bashrc_or_zshrc\" >Update your ~\/.bashrc or ~\/.zshrc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/pjq.me\/?p=1932\/#revChatGPTconfigjson\" >revChatGPT\/config.json<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/pjq.me\/?p=1932\/#Usage\" >Usage<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/pjq.me\/?p=1932\/#Clone_the_repository\" >Clone the repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/pjq.me\/?p=1932\/#Install_the_requirements\" >Install the requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/pjq.me\/?p=1932\/#Run_the_script\" >Run the script<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/pjq.me\/?p=1932\/#Support\" >Support<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"ChatGPT-MiSpeaker\"><\/span>ChatGPT-MiSpeaker<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png\" alt=\"\" class=\"wp-image-1938\" width=\"749\" height=\"593\" srcset=\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png 1024w, https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-300x238.png 300w, https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-768x608.png 768w, https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12.png 1300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Repo\"><\/span>Repo<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>https:\/\/github.com\/pjq\/ChatGPT-MiSpeaker<\/li>\n<\/ul>\n\n\n\n<p>This python script is used to interact with OpenAI&#8217;s ChatGPT model via the MiSpeaker. The script fetches questions from the MiSpeaker, passes the questions to the ChatGPT model, and returns the answers back to the MiSpeaker for TTS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Requirements\"><\/span>Requirements<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>python &gt;= 3.6<\/li>\n\n\n\n<li>requests<\/li>\n\n\n\n<li>rich<\/li>\n\n\n\n<li>revChatGPT, https:\/\/github.com\/acheong08\/ChatGPT<\/li>\n\n\n\n<li>micli, MiService (https:\/\/github.com\/Yonsm\/MiService)<\/li>\n<\/ul>\n\n\n\n<p>Please follow the revChatGPT\/MiService to config your ChatGPT\/MiService.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update_your_bashrc_or_zshrc\"><\/span>Update your ~\/.bashrc or ~\/.zshrc<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>export MI_USER=\"186xxxxxxx\"\nexport MI_PASS=\"xxxxxxxx\"\nexport MI_DID=\"114094xxx\"\nexport MI_HARDWARE=\"S12A\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"revChatGPTconfigjson\"><\/span>revChatGPT\/config.json<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>cat ~\/.config\/revChatGPT\/config.json\n{\n    \"conversation_id\": \"c379851d-fbd4-479e-a716-dddc379fb07c\",\n    \"model\": \"text-davinci-002-render-sha\",\n    \"paid\":true,\n    \"verbose\":true,\n    \"access_token\":\"xxxx\"\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Usage\"><\/span>Usage<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Clone_the_repository\"><\/span>Clone the repository<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone git@github.com:pjq\/ChatGPT-MiSpeaker.git <\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_the_requirements\"><\/span>Install the requirements<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install -r requirements.txt<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Run_the_script\"><\/span>Run the script<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>python ChatGPT-MiSpeaker.py --hardware HARDWARE<\/code><\/pre>\n\n\n\n<p>Replace HARDWARE with the identifier of your MiSpeaker, such as LX06, L05B, S12A, or LX01.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 ChatGPT-MiSpeaker.py --hardware \"$MI_HARDWARE\"\n0\nMiService: do_action 5-1: done, CompletedProcess(args=&#91;'micli', '5-1', '\u6b63\u5728\u542f\u52a8\u5c0f\u7231\u540c\u5b66\u548c\u53ef\u7231\u65e0\u654c\u5c0f\u670b\u53cb\u7684\u8bed\u97f3\u52a9\u624b\u7684\u8fde\u63a5,\u8bf7\u7a0d\u7b49\u54e6'],\nreturncode=0)\nChatGPT:\u5f53\u7136\u5566\uff0c\u76ae\u76ae\u867e\uff01\u90a3\u8ba9\u6211\u4eec\u91cd\u65b0\u5f00\u59cb\u5427\uff0c\u4ece\u7b2c\u4e00\u4e2a\u5355\u8bcd\u5f00\u59cb\uff01\n0\nMiService: do_action 5-1: done, CompletedProcess(args=&#91;'micli', '5-1', '\u5f53\u7136\u5566\uff0c\u76ae\u76ae\u867e\uff01\u90a3\u8ba9\u6211\u4eec\u91cd\u65b0\u5f00\u59cb\u5427\uff0c\u4ece\u7b2c\u4e00\u4e2a\u5355\u8bcd\u5f00\u59cb\uff01'], returncode=0)\n\u90a3\u5f00\u59cb\u5427\n0\nMiService: do_action 5-1: done, CompletedProcess(args=&#91;'micli', '5-1', '\u4f60\u7684\u95ee\u9898\u662f\u90a3\u5f00\u59cb\u5427,\u8bf7\u7a0d\u7b49\u54e6\uff0c\u8ba9\u6211\u6765\u60f3\u4e00\u60f3'], returncode=0)\nAsk ChatGPT:\u90a3\u5f00\u59cb\u5427\nChatGPT:\u597d\u554a\uff0c\u76ae\u76ae\u867e\uff01\u8ba9\u6211\u4eec\u4ece\u5934\u5f00\u59cb\u5b66\u4e60\u82f1\u6587\u5427\uff01\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u5b66\u4e00\u4e9b\u5e38\u89c1\u7684\u6c34\u679c\u5355\u8bcd\uff01\uff0c\uff0cApple\uff0c-\uff0c\u82f9\u679c\uff0cBanana\uff0c-\uff0c\u9999\u8549\uff0cGrape\uff0c-\uff0c\u8461\u8404\uff0c\nPeach\uff0c-\uff0c\u6843\u5b50\uff0cStrawberry\uff0c-\uff0c\u8349\u8393\uff0cWatermelon\uff0c-\uff0c\u897f\u74dc\uff0c\uff0c\u8fd9\u4e9b\u5355\u8bcd\u90fd\u5f88\u7b80\u5355\uff0c\u4f60\u8ba4\u8bc6\u5417\uff1f\u6211\u4eec\u53ef\u4ee5\u4e00\u8d77\u8bfb\u51e0\u904d\uff0c\u7136\u540e\u4f60\u8bd5\u7740\u8bf4\u4e00\u8bf4\uff0c\u5982\u679c\u6709\u56f0\u96be\u7684\u5730\n\u65b9\uff0c\u6211\u4eec\u518d\u4e00\u8d77\u7ec3\u4e60\uff01\n\u4ee5\u4e0b\u662f\u5c0f\u7231\u7684\u56de\u7b54:  \u5f00\u59cb\u5e72\u4ec0\u4e48\u5462\uff0c\u5c0f\u7231\u521a\u624d\u6ca1\u542c\u6e05\u5462\n0\nMiService: do_action 5-1: done, CompletedProcess(args=&#91;'micli', '5-1',\n'\u597d\u554a\uff0c\u76ae\u76ae\u867e\uff01\u8ba9\u6211\u4eec\u4ece\u5934\u5f00\u59cb\u5b66\u4e60\u82f1\u6587\u5427\uff01\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u5b66\u4e00\u4e9b\u5e38\u89c1\u7684\u6c34\u679c\u5355\u8bcd\uff01\uff0c\uff0cApple\uff0c-\uff0c\u82f9\u679c\uff0cBanana\uff0c-\uff0c\u9999\u8549\uff0cGrape\uff0c-\uff0c\u8461\u8404\uff0cPeach\uff0c-\n\uff0c\u6843\u5b50\uff0cStrawberry\uff0c-\uff0c\u8349\u8393\uff0cWatermelon\uff0c-\uff0c\u897f\u74dc\uff0c\uff0c\u8fd9\u4e9b\u5355\u8bcd\u90fd\u5f88\u7b80\u5355\uff0c\u4f60\u8ba4\u8bc6\u5417\uff1f\u6211\u4eec\u53ef\u4ee5\u4e00\u8d77\u8bfb\u51e0\u904d\uff0c\u7136\u540e\u4f60\u8bd5\u7740\u8bf4\u4e00\u8bf4\uff0c\u5982\u679c\u6709\u56f0\u96be\u7684\u5730\u65b9\uff0c\u6211\u4eec\u518d\n\uff01'], returncode=0)\nsleep: 33.6s<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Support\"><\/span>Support<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you have any questions or issues, please open a new issue in the repository.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ChatGPT-MiSpeaker Repo This python script is used to interact with OpenAI&#8217;s ChatGPT model via the MiSpeaker. The script fetches questions from the MiSpeaker, passes the questions to the ChatGPT model, and returns the answers back to the MiSpeaker for TTS.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169],"tags":[200,217,213,218],"class_list":["post-1932","post","type-post","status-publish","format-standard","hentry","category-tech","tag-chatgpt","tag-mispeaker","tag-openai","tag-xiaoai"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ChatGPT-MiSpeaker - Jianqing&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pjq.me\/?p=1932\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ChatGPT-MiSpeaker - Jianqing&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"ChatGPT-MiSpeaker Repo This python script is used to interact with OpenAI&#8217;s ChatGPT model via the MiSpeaker. The script fetches questions from the MiSpeaker, passes the questions to the ChatGPT model, and returns the answers back to the MiSpeaker for TTS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pjq.me\/?p=1932\" \/>\n<meta property=\"og:site_name\" content=\"Jianqing&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-17T14:53:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-18T08:43:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png\" \/>\n<meta name=\"author\" content=\"pengjianqing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pengjianqing\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pjq.me\/?p=1932#article\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/?p=1932\"},\"author\":{\"name\":\"pengjianqing\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"headline\":\"ChatGPT-MiSpeaker\",\"datePublished\":\"2023-02-17T14:53:51+00:00\",\"dateModified\":\"2023-02-18T08:43:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=1932\"},\"wordCount\":126,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"image\":{\"@id\":\"https:\/\/pjq.me\/?p=1932#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png\",\"keywords\":[\"ChatGPT\",\"MiSpeaker\",\"OpenAI\",\"XiaoAi\"],\"articleSection\":[\"Tech\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/pjq.me\/?p=1932#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pjq.me\/?p=1932\",\"url\":\"https:\/\/pjq.me\/?p=1932\",\"name\":\"ChatGPT-MiSpeaker - Jianqing&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=1932#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pjq.me\/?p=1932#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png\",\"datePublished\":\"2023-02-17T14:53:51+00:00\",\"dateModified\":\"2023-02-18T08:43:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/pjq.me\/?p=1932#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pjq.me\/?p=1932\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/?p=1932#primaryimage\",\"url\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12.png\",\"contentUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12.png\",\"width\":1300,\"height\":1030},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pjq.me\/?p=1932#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pjq.me\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ChatGPT-MiSpeaker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pjq.me\/#website\",\"url\":\"https:\/\/pjq.me\/\",\"name\":\"Jianqing&#039;s Blog\",\"description\":\"Thoughts and Future\",\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pjq.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\",\"name\":\"pengjianqing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"contentUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"width\":460,\"height\":752,\"caption\":\"pengjianqing\"},\"logo\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/pjq.me\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ChatGPT-MiSpeaker - Jianqing&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pjq.me\/?p=1932","og_locale":"en_US","og_type":"article","og_title":"ChatGPT-MiSpeaker - Jianqing&#039;s Blog","og_description":"ChatGPT-MiSpeaker Repo This python script is used to interact with OpenAI&#8217;s ChatGPT model via the MiSpeaker. The script fetches questions from the MiSpeaker, passes the questions to the ChatGPT model, and returns the answers back to the MiSpeaker for TTS.","og_url":"https:\/\/pjq.me\/?p=1932","og_site_name":"Jianqing&#039;s Blog","article_published_time":"2023-02-17T14:53:51+00:00","article_modified_time":"2023-02-18T08:43:05+00:00","og_image":[{"url":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png","type":"","width":"","height":""}],"author":"pengjianqing","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pengjianqing","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pjq.me\/?p=1932#article","isPartOf":{"@id":"https:\/\/pjq.me\/?p=1932"},"author":{"name":"pengjianqing","@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"headline":"ChatGPT-MiSpeaker","datePublished":"2023-02-17T14:53:51+00:00","dateModified":"2023-02-18T08:43:05+00:00","mainEntityOfPage":{"@id":"https:\/\/pjq.me\/?p=1932"},"wordCount":126,"commentCount":0,"publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"image":{"@id":"https:\/\/pjq.me\/?p=1932#primaryimage"},"thumbnailUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png","keywords":["ChatGPT","MiSpeaker","OpenAI","XiaoAi"],"articleSection":["Tech"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pjq.me\/?p=1932#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pjq.me\/?p=1932","url":"https:\/\/pjq.me\/?p=1932","name":"ChatGPT-MiSpeaker - Jianqing&#039;s Blog","isPartOf":{"@id":"https:\/\/pjq.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pjq.me\/?p=1932#primaryimage"},"image":{"@id":"https:\/\/pjq.me\/?p=1932#primaryimage"},"thumbnailUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12-1024x811.png","datePublished":"2023-02-17T14:53:51+00:00","dateModified":"2023-02-18T08:43:05+00:00","breadcrumb":{"@id":"https:\/\/pjq.me\/?p=1932#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pjq.me\/?p=1932"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/?p=1932#primaryimage","url":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12.png","contentUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-12.png","width":1300,"height":1030},{"@type":"BreadcrumbList","@id":"https:\/\/pjq.me\/?p=1932#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pjq.me\/"},{"@type":"ListItem","position":2,"name":"ChatGPT-MiSpeaker"}]},{"@type":"WebSite","@id":"https:\/\/pjq.me\/#website","url":"https:\/\/pjq.me\/","name":"Jianqing&#039;s Blog","description":"Thoughts and Future","publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pjq.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60","name":"pengjianqing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/","url":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","contentUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","width":460,"height":752,"caption":"pengjianqing"},"logo":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/"},"url":"https:\/\/pjq.me\/?author=1"}]}},"views":1426,"_links":{"self":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/1932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1932"}],"version-history":[{"count":5,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/1932\/revisions"}],"predecessor-version":[{"id":1940,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/1932\/revisions\/1940"}],"wp:attachment":[{"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}