mclxly / xfyun-php
讯飞开放平台语音识别接口之PHP实现
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/mclxly/xfyun-php
Requires
- php: >=7.2.0
- guzzlehttp/guzzle: ^6.2 || ^7.0
This package is auto-updated.
Last update: 2025-10-04 15:38:45 UTC
README
讯飞开放平台语音识别接口之PHP实现
composer require mclxly/xfyun-php
语音识别模块
语音转写
Usage
use mclxly\xfyun\XFLongFormAsrClient; $appid = 'xxx'; $secret_key = 'xxxx'; $upload_file_path = 'en_src.mp3'; $client = new XFLongFormAsrClient($appid, $secret_key, $upload_file_path); var_dump($client); $client->set_language('en'); // 'cn' | 'en $result = $client->all_api_request(); var_dump($result);