我想使用 Intel Edison 开发板将 .wav 文件转换为文本。我遵循了这个线程,并按照线程中的建议使用了pocketsphinx_continuous -infile命令。这给出了很长的 CLI 输出。不知道如何从中提取文本。任何人都可以帮忙吗?
root@edison:/# pocketsphinx_continuous -infile /usr/share/sounds/alsa/Front_Right.wav
INFO: cmd_ln.c(691): Parsing command line:
pocketsphinx_continuous \
-infile /usr/share/sounds/alsa/Front_Right.wav
Current configuration:
[NAME] [DEFLT] [VALUE]
-adcdev
-agc none none
-agcthresh 2.0 2.000000e+00
-alpha 0.97 9.700000e-01
-argfile
-ascale 20.0 2.000000e+01
-aw 1 1
-backtrace no no
-beam 1e-48 1.000000e-48
-bestpath yes yes
-bestpathlw 9.5 9.500000e+00
-bghist no no
-ceplen 13 13
-cmn current current
-cmninit 8.0 8.0
-compallsen no no
-debug 0
-dict
-dictcase no …Run Code Online (Sandbox Code Playgroud)