Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

an error #76

Open
ghost opened this issue Sep 25, 2022 · 0 comments
Open

an error #76

ghost opened this issue Sep 25, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 25, 2022

hello,
I wanted to use the Speech_recognition library in my Python programs, but I ran into some problems:

Traceback (most recent call last):
File "C:\Users\duo'duo'lan\AppData\Roaming\Python\Python311\site-packages\speech_recognition_init_.py", line 729, in recognize_sphinx
from pocketsphinx import pocketsphinx, Jsgf, FsgModel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'Jsgf' from 'pocketsphinx' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\PycharmProjects\new_s\货币转换器\demo02.py", line 32, in
test = r.recognize_sphinx(v,language='zh-cn')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\duo'duo'lan\AppData\Roaming\Python\Python311\site-packages\speech_recognition_init_.py", line 732, in recognize_sphinx
raise RequestError("missing PocketSphinx module: ensure that PocketSphinx is set up correctly.")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
speech_recognition.RequestError: missing PocketSphinx module: ensure that PocketSphinx is set up correctly.

Can you help me solve this problem? thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants