{ "info": { "author": "tangliufeng", "author_email": "137513285@qq.com", "bugtrack_url": null, "classifiers": [], "description": "![tts](https://mpython.readthedocs.io/zh/master/_images/extboard.png)\n\n## \u6982\u8ff0\n\n\u57fa\u4e8e\u8baf\u98deTTS\u8bed\u97f3\u5408\u6210API\u7684\u6587\u5b57\u8f6c\u8bed\u97f3\u529f\u80fd,\u5c06\u6587\u5b57\u4fe1\u606f\u8f6c\u5316\u4e3a\u58f0\u97f3\u4fe1\u606f\uff0c\u7ed9\u638c\u63a7\u677f\u914d\u4e0a\u201c\u5634\u5df4\u201d\u3002\u5176\u5408\u6210\u97f3\u5728\u97f3\u8272\u3001\u81ea\u7136\u5ea6\u7b49\u65b9\u9762\u7684\u8868\u73b0\u5747\u63a5\u8fd1\u751a\u81f3\u8d85\u8fc7\u4e86\u4eba\u58f0\u3002\u76ee\u524d\u5e94\u7528\u4e8e\u638c\u63a7\u62d3\u5c55\u677f\u3002\n\n* \u66f4\u591a\u7684mPython library\uff1ahttps://github.com/labplus-cn/mPython-lib\n* mPython library Documentation: https://mpython-lib.readthedocs.io\n\n## \u5e93\u7684\u5b89\u88c5\u65b9\u6cd5\n\n\u53ef\u901a\u8fc7\u4ee5\u4e0b\u4efb\u4e00\u65b9\u6cd5\u8fdb\u884c\u5b89\u88c5\u3002\n1. \u5c06\u9879\u76ee\u4e2d\u7684`tts.py` \u548c\u4f9d\u8d56\u4e8e`base64.py`\u62f7\u5230\u638c\u63a7\u677f\u6587\u4ef6\u7cfb\u7edf\u4e0a\n2. \u5728\u638c\u63a7\u677fREPL\u754c\u9762\u4e2d\uff0c\u4f7f\u7528upip\u5b89\u88c5\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a\n * \u524d\u7f6e\u6761\u4ef6\u9700\u8981\u638c\u63a7\u677f\u8fde\u63a5\u7f51\u7edc\n * \u5bfc\u5165upip\u6a21\u5757\uff0c\u6267\u884c`import upip`\n * \u6267\u884c`upip.install('mPython-tts'\uff09\n\n```python\n>>> import upip\n>>> upip.install('mPython-tts')\n```\n\n## \u4f7f\u7528\n\n\n\u8be5\u529f\u80fd\u4f7f\u7528\u8baf\u98de\u7684\u5728\u7ebf\u8bed\u97f3\u5408\u6210\u670d\u52a1,\u9700\u8981\u7528\u6237\u81ea\u884c\u5728\u5728\u8baf\u98de\u5f00\u53d1\u5e73\u53f0 https://www.xfyun.cn/ \u6ce8\u518c\u8d26\u53f7,\u6b65\u9aa4\u5982\u4e0b\uff1a\n\n1. \u6ce8\u518c\u8d26\u53f7\n2. \u65b0\u5efa\u4ea7\u54c1,\u9009\u62e9\u201c\u5728\u7ebf\u8bed\u97f3\u5408\u6210\u201d\u670d\u52a1\u3002\n3. \u5728IP\u767d\u540d\u5355\u4e2d\u6dfb\u52a0\u7f51\u7edc\u7684\u516c\u7f51IP\u3002\n\n\u793a\u4f8b:\n``` python\nfrom mpython import * \nfrom tts import *\n\nmywifi=wifi()\nmywifi.connectWiFi('ssid','password') #\u8fde\u63a5 WiFi \u7f51\u7edc\n\nAPPID = \"\" # \u8baf\u98de\u5e94\u7528ID\nAPI_KEY = \"\" # \u8baf\u98de\u5e94\u7528\u7684api key\n\n\ntts=TTS(APPID,API_KEY) #\u6784\u5efaTTS\u5b9e\u4f8b,\u5e76\u4f20\u5165appid,api key \u53c2\u6570.\n\n# \u6c81\u56ed\u6625\u00b7\u957f\u6c99 \u8bd7\u8bcd\npoem= \"\u72ec\u7acb\u5bd2\u79cb\uff0c\u6e58\u6c5f\u5317\u53bb\uff0c\u6a58\u5b50\u6d32\u5934\u3002 \\\n \u770b\u4e07\u5c71\u7ea2\u904d\uff0c\u5c42\u6797\u5c3d\u67d3\uff1b\u6f2b\u6c5f\u78a7\u900f\uff0c\u767e\u8238\u4e89\u6d41\u3002\\\n \u9e70\u51fb\u957f\u7a7a\uff0c\u9c7c\u7fd4\u6d45\u5e95\uff0c\u4e07\u7c7b\u971c\u5929\u7ade\u81ea\u7531\u3002\\\n \u6005\u5be5\u5ed3\uff0c\u95ee\u82cd\u832b\u5927\u5730\uff0c\u8c01\u4e3b\u6c89\u6d6e\uff1f\\\n \u643a\u6765\u767e\u4fa3\u66fe\u6e38\u3002\u5fc6\u5f80\u6614\u5ce5\u5d58\u5c81\u6708\u7a20\u3002\\\n \u6070\u540c\u5b66\u5c11\u5e74\uff0c\u98ce\u534e\u6b63\u8302\uff1b\u4e66\u751f\u610f\u6c14\uff0c\u6325\u65a5\u65b9\u9052\u3002\\\n \u6307\u70b9\u6c5f\u5c71\uff0c\u6fc0\u626c\u6587\u5b57\uff0c\u7caa\u571f\u5f53\u5e74\u4e07\u6237\u4faf\u3002\\\n \u66fe\u8bb0\u5426\uff0c\u5230\u4e2d\u6d41\u51fb\u6c34\uff0c\u6d6a\u904f\u98de\u821f\uff1f\"\\\n\n\ntts.translate(poem) # \u6587\u5b57\u8f6c\u8bed\u97f3\u5e76\u64ad\u653e\n```\n\n## \u6267\u7167\n\n\u6240\u6709\u4ee3\u7801\u5747\u5728MIT\u8bb8\u53ef\u4e0b\u53d1\u5e03\u3002", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/labplus-cn/mPython_tts", "keywords": "", "license": "MIT", "maintainer": "LabPlus Developers", "maintainer_email": "", "name": "mPython-tts", "package_url": "https://pypi.org/project/mPython-tts/", "platform": "", "project_url": "https://pypi.org/project/mPython-tts/", "project_urls": { "Homepage": "https://github.com/labplus-cn/mPython_tts" }, "release_url": "https://pypi.org/project/mPython-tts/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "\u638c\u63a7\u677f\u7684\u6587\u5b57\u8f6c\u8bed\u97f3,\u8bed\u97f3\u5408\u6210TTS", "version": "0.1.0" }, "last_serial": 4980370, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d5dd53080d1d79dbd86279279bb87cb3", "sha256": "7a7a721c2166d7204e4a547f3a9ec9637155cdc03d1952a9d77cfbe4159bad81" }, "downloads": -1, "filename": "mPython-tts-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d5dd53080d1d79dbd86279279bb87cb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3351, "upload_time": "2019-03-25T00:38:47", "url": "https://files.pythonhosted.org/packages/67/79/6b0cbcfd943157680a8d75a031264e93f905510e74599e279a3b332a3725/mPython-tts-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d5dd53080d1d79dbd86279279bb87cb3", "sha256": "7a7a721c2166d7204e4a547f3a9ec9637155cdc03d1952a9d77cfbe4159bad81" }, "downloads": -1, "filename": "mPython-tts-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d5dd53080d1d79dbd86279279bb87cb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3351, "upload_time": "2019-03-25T00:38:47", "url": "https://files.pythonhosted.org/packages/67/79/6b0cbcfd943157680a8d75a031264e93f905510e74599e279a3b332a3725/mPython-tts-0.1.0.tar.gz" } ] }