{"id":16423166,"url":"https://github.com/hailiang-wang/xfyun-node","last_synced_at":"2026-07-14T10:07:15.964Z","repository":{"id":57401372,"uuid":"78411181","full_name":"hailiang-wang/xfyun-node","owner":"hailiang-wang","description":"Speech to Text SDK for Node.js","archived":false,"fork":false,"pushed_at":"2018-02-05T08:37:57.000Z","size":1754,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T04:21:40.611Z","etag":null,"topics":["asr","node-sdk","stt","xfyun"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/xfy-node","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hailiang-wang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-09T08:56:15.000Z","updated_at":"2024-04-02T10:09:18.000Z","dependencies_parsed_at":"2022-09-19T03:50:26.846Z","dependency_job_id":null,"html_url":"https://github.com/hailiang-wang/xfyun-node","commit_stats":null,"previous_names":["samurais/xfyun-node"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fxfyun-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fxfyun-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fxfyun-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fxfyun-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hailiang-wang","download_url":"https://codeload.github.com/hailiang-wang/xfyun-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240571029,"owners_count":19822412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asr","node-sdk","stt","xfyun"],"created_at":"2024-10-11T07:39:00.892Z","updated_at":"2025-10-28T22:46:11.721Z","avatar_url":"https://github.com/hailiang-wang.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xfyun-node\n\n![](https://camo.githubusercontent.com/ae91a5698ad80d3fe8e0eb5a4c6ee7170e088a7d/687474703a2f2f37786b6571692e636f6d312e7a302e676c622e636c6f7564646e2e636f6d2f61692f53637265656e25323053686f74253230323031372d30342d30342532306174253230382e32302e3437253230504d2e706e67)\n\n# welcome\n[科大讯飞](http://www.xfyun.cn/)没有提供Node.js SDK，于是就有了这个轮子。\n* 目前仅支持 linux64，目前仅支持科大讯飞听写接口。\n\n```\n# download xfyun sdks from official portal, a zip file like here.\nsudo unzip Linux_voice_1135_5864ae2d.zip -d /opt/xfy-sdk\ncd PROJECT_ROOT\n```\n\n* Install\n```\nnpm install xfy-node --save\n```\n\n## Usage\n```\n    const xfyclient = require('xfy-node');\n    let params = {\n        username: null, // 账号名称\n        password: null, // 账号密码 \n        appid: '5864ae2d', // AppID\n        // 语言\n        // zh_cn:简体中文\n        // zh_tw:繁体中文\n        // en_us:英语\n        // 默认为zh_cn\n        lang: 'zh_cn', \n        // 口音\n        // mandarin:普通话\n        // cantonese:粤语\n        // 默认为mandarin\n        accent: 'mandarin',\n        // 音频格式\n        // 8000, 16000, 默认为16000\n        sample_rate: 16000,\n        // 音频文件位置，绝对路径\n        audio_file: 'wav/iflytek01.wav'\n    }\n\n    xfyclient.iat(params)\n        .then(function (result) {\n            console.log('result', result);\n        }, function(err){\n            console.log('err', err);\n        });\n```\n\n## Tutorial\nhttps://github.com/Samurais/xfy-node-getstarted\n\n## Contribution\n```\nnpm install\nnode-gyp rebuild\nava # test\n```\n\n## 讯飞提供的原始SDK\n```\ngit clone https://github.com/Samurais/xfyun-get-started\n```\n\n## 资源链接\n[语音识别科普](http://bbs.xfyun.cn/forum.php?mod=viewthread\u0026tid=6911)\n\n[服务介绍](http://www.xfyun.cn/doccenter/asr)\n\n[开发者论坛](http://bbs.xfyun.cn/portal.php)\n\n[识别英语](http://bbs.xfyun.cn/forum.php?mod=viewthread\u0026tid=22602\u0026extra=page%3D1)\n\n# Copyright \u0026 License\n\nCode \u0026 Docs 2017© Hai Liang Wang hailiang.hl.wang@gmail.com\n\nCode released under the ISC license\n\nDocs released under Creative Commons","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhailiang-wang%2Fxfyun-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhailiang-wang%2Fxfyun-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhailiang-wang%2Fxfyun-node/lists"}