//讯飞语音
public function xfyun(){
$file=request()->file('icon'); //接收post,get值
if(!empty($file)){
$path='.'.DS.'uploads'.DS.'xfyun';
$is_info = $file->move($path);
$name='../'.'public/uploads/xfyun/'.$is_info->getSaveName();
}
vendor("XfYun.Demo");
// New Word Document
$xfyun = new \test();
$xfyun->xfyun($name);
}
来源:https://www.cnblogs.com/Mr-zhangwenqiang/p/11935977.html