PHPackages                             rongqiangqin/baiduspeech - 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. rongqiangqin/baiduspeech

ActivePhp-packages[Utility &amp; Helpers](/categories/utility)

rongqiangqin/baiduspeech
========================

百度语音合成

v0.0.2(7y ago)028MITPHP

Since Oct 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xiaopenggithub/rongqiangqin_baiduspeech)[ Packagist](https://packagist.org/packages/rongqiangqin/baiduspeech)[ RSS](/packages/rongqiangqin-baiduspeech/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

rongqiangqin\_baiduspeech
=========================

[](#rongqiangqin_baiduspeech)

百度语音合成sdk(php)-基于官方sdk

\#使用方法

```
  use rongqiangqin\baiduspeech\AipSpeech;

  $APP_ID = 'your-id';
  $API_KEY = 'your-key';
  $SECRET_KEY = 'your-key';

  $client = new AipSpeech($APP_ID, $API_KEY, $SECRET_KEY);

  $text="你好,百度";

  $result = $client->synthesis($text, 'zh', 1, array(
      'vol' => 5,//音量，取值0-15，默认为5中音量
      'per' => 1,//发音人选择, 0为普通女声，1为普通男生，3为情感合成-度逍遥，4为情感合成-度丫丫，默认为普通女声
      'spd' => 7,//语速，取值0-15，默认为5中语速
  ));

  // 识别正确返回语音二进制 错误则返回json 参照下面错误码
  if(!is_array($result)){
      file_put_contents('audio.mp3', $result);
  }

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~0 days

Total

2

Last Release

2777d ago

### Community

Maintainers

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

---

Top Contributors

[![xiaopenggithub](https://avatars.githubusercontent.com/u/20268389?v=4)](https://github.com/xiaopenggithub "xiaopenggithub (3 commits)")

---

Tags

baiduspeech

### Embed Badge

![Health badge](/badges/rongqiangqin-baiduspeech/health.svg)

```
[![Health](https://phpackages.com/badges/rongqiangqin-baiduspeech/health.svg)](https://phpackages.com/packages/rongqiangqin-baiduspeech)
```

PHPackages © 2026

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