PHPackages                             365taofang/iflytek-asr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. 365taofang/iflytek-asr

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

365taofang/iflytek-asr
======================

automatic speech recognition

1.0.7(1y ago)1168↓100%Apache-2.0PHPPHP &gt;=5.6.0

Since Dec 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/365taofang/iflytek-asr)[ Packagist](https://packagist.org/packages/365taofang/iflytek-asr)[ RSS](/packages/365taofang-iflytek-asr/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

iflytek-asr
===========

[](#iflytek-asr)

科大讯飞，音频转换 官网文档地址：[https://www.xfyun.cn/doc/asr/ifasr\_new/API.html](https://www.xfyun.cn/doc/asr/ifasr_new/API.html)

使用方式
====

[](#使用方式)

返回结果字段详情同官网

创建asr请求
-------

[](#创建asr请求)

```
use Iflytek\LfasrClient;
$lfasrClient = new LfasrClient();

```

上传文件
----

[](#上传文件)

默认识别两个人对话

回调地址可不填

### 方式一：通过文件流上传

[](#方式一通过文件流上传)

```
$file = './audio/lfasr.wav';
$lfasrClient->upload_via_stream(file_get_contents($file), '测试1.wav', 3136940, 200, $roleType=0, $callbackUrl='http://callbacUrl.com');

```

### 方式二：通过外链url

[](#方式二通过外链url)

```
$lfasrClient->upload_via_url('http://xxx.yyy.ddd/audio/lfasr.wav', '测试2.wav', $roleType=0, $callbackUrl='http://callbacUrl.com');

```

查询结果
----

[](#查询结果)

```
/**
 *
 * @param $orderId string 订单id
 * @param $resultType string 查询结果类型：默认返回转写结果
 * 转写结果：transfer；
 * 翻译结果：translate；
 * 质检结果：predict；
 * 组合结果查询：多个类型结果使用”,”隔开，目前只支持转写和质检结果一起返回（如果任务有失败则只返回处理成功的结果）
 * 转写和质检结果组合返回：transfer，predict
 */
$lfasrClient->get_result('DKHJQ202212291654390770002600038F00000', 'transfer');

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~95 days

Recently: every ~162 days

Total

8

Last Release

564d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8af4ad0561769ee6f6577579d43d3230f69c045c71219efcea8a0231a9b2d1dc?d=identicon)[365taofang](/maintainers/365taofang)

---

Top Contributors

[![liangjian1234](https://avatars.githubusercontent.com/u/25069479?v=4)](https://github.com/liangjian1234 "liangjian1234 (11 commits)")

---

Tags

phpasriflytek

### Embed Badge

![Health badge](/badges/365taofang-iflytek-asr/health.svg)

```
[![Health](https://phpackages.com/badges/365taofang-iflytek-asr/health.svg)](https://phpackages.com/packages/365taofang-iflytek-asr)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[amirbagh75/smsir-php

Unofficial sms.ir PHP Package

181.2k](/packages/amirbagh75-smsir-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
