{ "info": { "author": "Henry Zheng", "author_email": "henry.zheng@fano.ai", "bugtrack_url": null, "classifiers": [], "description": "fanolabsasr\n==========\n\nFanoLabs Asr module for Python3\n\n\n\n- [Installation](#installation)\n- [License](#license)\n- [API](#api)\n - [stt(senderId, filepath, language)](#stt(senderId,filepath,language))\n\n\n\n\n## Installation\n\nCurrent stable release (`0.0.1`)\n\n```sh\n$ pip install fanolabsasr\n```\n\n## Common Usage\nWe suggest you load the module via `import`, pending the stabalizing of es modules in node:\n```python\nfrom fanolabsasr import Asr\nimport os\ncurPath = os.path.abspath(os.path.dirname(__file__))\n\nclass Speech:\n\n def __init__(self):\n self.client = Asr(`url`, `corpId`, `authKey`)\n\n def __call__(self, senderId, filepath, language):\n return self.client.stt(senderId, filepath, language)\n\ndef main():\n returnObj = Speech()(`senderId`, os.path.abspath(curPath + '/test.wav'), `Cantonese`)\n print(returnObj)\n\nif __name__ == '__main__':\n main()\n```\n\n`Note`: `url`(e.g. https://xxx.fanoai.cn/asr)\u3001`corpId`\u3001`authKey` should set to the specific correct configuration.\n\n## API\n\n### stt(senderId,filepath,language)\n\n- `senderId` A string representing the user for chatting with asr\n- `filepath` A string representing the local wav file path \n- `language` A string representing the language for the user input content, allowed languages to 'Cantonese, English, Mandarin'\n- Returns: \n\n `Note`: successful response\n ```js\n {\n 'status': 200,\n 'content': [{\n 'recording_id': 'speech',\n 'start_time': 0.83,\n 'end_time': 1.62,\n 'n_bests': [{\n 'text': '\u660e\u767d\u8857',\n 'confidence': 0.121796916\n }],\n 'text': '\u660e\u767d\u8857',\n 'confidence': 0.121796916,\n 'success': True\n }]\n }\n ```\n\n `Note`: Error handling\n ```js\n {\n 'status': 500,\n 'statusText': 'Internal Server Error',\n 'error_msg': \"'input_language'\"\n }\n ```\n\n## License\n\nMIT\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://git.fanoai.cn/SDKs/asr-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fanolabsasr", "package_url": "https://pypi.org/project/fanolabsasr/", "platform": "", "project_url": "https://pypi.org/project/fanolabsasr/", "project_urls": { "Homepage": "https://git.fanoai.cn/SDKs/asr-python" }, "release_url": "https://pypi.org/project/fanolabsasr/0.0.1/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "FanoLabs Asr module for Python3", "version": "0.0.1" }, "last_serial": 5331330, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "956638396b58cfd590255e83dcb0ac21", "sha256": "4a034e13888f3e08aa808d9770f27ad652618a151f219fc5542020f73b5b3063" }, "downloads": -1, "filename": "fanolabsasr-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "956638396b58cfd590255e83dcb0ac21", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3595, "upload_time": "2019-05-29T09:12:15", "url": "https://files.pythonhosted.org/packages/f3/f8/f5b08799102ee8384ff21fc75c74dac5b3a23166e95101b34a1e72c6e679/fanolabsasr-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "24d9c9933b1a01f7a064e9a6bd8626f0", "sha256": "2c1355265695c087efa7e31390e035b5a8399ceb7185075f1fa81ea292fca281" }, "downloads": -1, "filename": "fanolabsasr-0.0.1.tar.gz", "has_sig": false, "md5_digest": "24d9c9933b1a01f7a064e9a6bd8626f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2895, "upload_time": "2019-05-29T09:12:17", "url": "https://files.pythonhosted.org/packages/35/e3/5e51a9e4c9e7fe0bdc34bce76eb143efbfc4294332768a16e9f9efae2c67/fanolabsasr-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "956638396b58cfd590255e83dcb0ac21", "sha256": "4a034e13888f3e08aa808d9770f27ad652618a151f219fc5542020f73b5b3063" }, "downloads": -1, "filename": "fanolabsasr-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "956638396b58cfd590255e83dcb0ac21", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3595, "upload_time": "2019-05-29T09:12:15", "url": "https://files.pythonhosted.org/packages/f3/f8/f5b08799102ee8384ff21fc75c74dac5b3a23166e95101b34a1e72c6e679/fanolabsasr-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "24d9c9933b1a01f7a064e9a6bd8626f0", "sha256": "2c1355265695c087efa7e31390e035b5a8399ceb7185075f1fa81ea292fca281" }, "downloads": -1, "filename": "fanolabsasr-0.0.1.tar.gz", "has_sig": false, "md5_digest": "24d9c9933b1a01f7a064e9a6bd8626f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2895, "upload_time": "2019-05-29T09:12:17", "url": "https://files.pythonhosted.org/packages/35/e3/5e51a9e4c9e7fe0bdc34bce76eb143efbfc4294332768a16e9f9efae2c67/fanolabsasr-0.0.1.tar.gz" } ] }