gstreamer plugin error没有此类元素或插件“pocketsphinx”(Mac)

2024-06-06 17:18:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图跟随this tutorial但失败了。 我不知道该将哪个字符串分配给GST\u PLUGIN_PATH。 换句话说,这是我当前的GST_PLUGIN_路径(根据论坛上的一些搜索)

usr/local/Cellar/gstreamer/1.14.4/

但我也尝试过这个字符串,因为上面提到的教程让我这样做:

/usr/local/Cellar/cmu-pocketsphinx/0.8/lib/python2.7/site-packages/

“的”口袋狮身人面像“文件在后一个文件中,而不在前一个文件中。在

以上两条线都不起作用

gst-inspect-1.0 pocketsphinx

不管我给GST_PLUGIN_PATH分配了哪个值,都会给我这个消息:

No such element or plugin 'pocketsphinx'

以前,我也复制.pc文件。在

  • $cd/usr/local/lib/pkgconfig
  • $cp gstreamer-1.0.pc
    /usr/local/Cellar/cmu pocketsphinx/0.8/lib/python2.7/site-packages/

  • $cp gstreamer-base-1.0.pc/usr/local/Cellar/cmu pocketsphinx/0.8/lib/python2.7/site-packages/

  • $cp gstreamer-plugins-base-1.0.pc
    /usr/local/Cellar/cmu pocketsphinx/0.8/lib/python2.7/site-packages/

请帮忙,谢谢。在


Tags: 文件字符串libpackagesusrlocalsiteplugin