Traceback (most recent call last):
File "/Users/MaTianlai/Downloads/ASRT_v0.6.1/test.py", line 35, in <module>
r = ms.RecognizeSpeech_FromFile('/Users/MaTianlai/Downloads/ASRT_v0.6.1/resources/test.wav')
File "/Users/MaTianlai/Downloads/ASRT_v0.6.1/SpeechModel251.py", line 380, in RecognizeSpeech_FromFile
r = self.RecognizeSpeech(wavsignal, fs)
File "/Users/MaTianlai/Downloads/ASRT_v0.6.1/SpeechModel251.py", line 365, in RecognizeSpeech
list_symbol_dic = GetSymbolList(self.datapath) # 获取拼音列表
File "/Users/MaTianlai/Downloads/ASRT_v0.6.1/general_function/file_dict.py", line 17, in GetSymbolList
txt_obj=open(datapath + 'dict.txt','r',encoding='UTF-8') # 打开文件并读入
FileNotFoundError: [Errno 2] No such file or directory: './/dict.txt'
如题,运行
test.py
后,会出现错误:我在
test.py
里这样设置:不管
datapath
怎样设置,到最后dict.txt
的路径总是会多一条斜杠:.//dict.py
。 我看了#179,但是还是不知道改怎样强制更改路径。求助。另外我不知道为什么
platform
模块识别我的macOS
,识别出来的是Darwin
。