赞
踩
使用声纹识别时候提交音频报错,使用ffmpeg系列的子组件ffprobe来获取我的音频信息。
使用ffprobe来获取音频的信息
ffprobe -v quiet -show_format -show_streams -print_format json "F:\voice_data\170930125\register_0.wav"
{
"streams": [
{
"index": 0,
"codec_name": "opus",
"codec_long_name": "Opus (Opus Interactive Audio Codec)",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 1,
"channel_layout": "m
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。