💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## ffmpeg 音频合并命令 路径是绝对路径 ~~~ ffmpeg -i 1.wav -i 2.wav -i 3.wav -i 4.wav -filter_complex "concat=n=4:v=0:a=1 [a]" -map "[a]" 777.wav ~~~ ### 演示 ~~~ $command = ''; $count = count($url_list); foreach ($url_list as $audio){ $command .= "-i $audio "; } $save_file = CreateDirService::create('user_tts',null,0, $dir_name). '/'. $file_name; system('ffmpeg '. $command . " -filter_complex \"concat=n=$count:v=0:a=1 [a]\" -map \"[a]\" ". public_path($dir_name. '/'.$save_file)); ~~~ php 里面执行这个命令, 用 system 函数, 为了正常使用这个功能, 先安装 ffmpeg 官网 :https://ffmpeg.org/