PHPackages                             hufeiyu/call-baidu-voice - 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. hufeiyu/call-baidu-voice

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

hufeiyu/call-baidu-voice
========================

hufeiyu call baidu voice

112PHP

Since Aug 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dongyu789/composer_hufeiyu)[ Packagist](https://packagist.org/packages/hufeiyu/call-baidu-voice)[ RSS](/packages/hufeiyu-call-baidu-voice/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

composer\_hufeiyu
=================

[](#composer_hufeiyu)

接口
--

[](#接口)

src/CallBaiduVoice

参数
--

[](#参数)

- $filename string 文件位置
- $format string 文件类型，支持amr，wav，pcm
- $rate int 比率 8000或者16000,不可选其他值
- $dev\_pid int 语言类型： \[1537 ：普通话; 1837 ：四川话; 1637 ：粤语; 1737 ：英语\]

使用方法
----

[](#使用方法)

传入指定文件，返回结果

// 成功返回

```
{
    "err_no": 0,
    "err_msg": "success.",
    "corpus_no": "15984125203285346378",
    "sn": "481D633F-73BA-726F-49EF-8659ACCC2F3D",
    "result": ["北京天气"]
}

// 失败返回
{
    "err_no": 2000,
    "err_msg": "data empty.",
    "sn": null
}
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/aee08a9013ac7652a8f4c7294c3aa09571f94760eab5fe88f9404249bf0ebc84?d=identicon)[dongyu789](/maintainers/dongyu789)

---

Top Contributors

[![dongyu789](https://avatars.githubusercontent.com/u/70784432?v=4)](https://github.com/dongyu789 "dongyu789 (13 commits)")

### Embed Badge

![Health badge](/badges/hufeiyu-call-baidu-voice/health.svg)

```
[![Health](https://phpackages.com/badges/hufeiyu-call-baidu-voice/health.svg)](https://phpackages.com/packages/hufeiyu-call-baidu-voice)
```

###  Alternatives

[patrickschur/language-detection

A language detection library for PHP. Detects the language from a given text string.

8513.2M18](/packages/patrickschur-language-detection)[platformsh/config-reader

Small helper to access Platform.sh environment variables

235.1M22](/packages/platformsh-config-reader)[mgcodeur/laravel-currency-converter

Laravel Currency Converter: Effortlessly convert currencies in your Laravel applications, no API key required. It's fast, easy, and completely free.

5335.5k](/packages/mgcodeur-laravel-currency-converter)

PHPackages © 2026

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