Comments (3)
这应该不是混用导致的,windows文件路径的分隔符要写成\\
而不是\
,因为存在转义,为了避免这个问题可以统一用/
做文件路径
from asrt_speechrecognition.
File "D:\wenjian\IDEA\python_project\ASRT_SpeechRecognition-master\utils\thread.py", line 47, in next return self.it.next() File "D:\wenjian\IDEA\python_project\ASRT_SpeechRecognition-master\speech_model.py", line 68, in _data_generator wavdata, sample_rate, data_labels = data_loader.get_data(index) File "D:\wenjian\IDEA\python_project\ASRT_SpeechRecognition-master\data_loader.py", line 88, in get_data wav_signal, sample_rate, _, _ = read_wav_data(self.wav_dict[mark]) File "D:\wenjian\IDEA\python_project\ASRT_SpeechRecognition-master\utils\ops.py", line 36, in read_wav_data wav = wave.open(filename,"rb") # 打开一个wav格式的声音文件流 File "D:\software\anaconda3\envs\py37\lib\wave.py", line 510, in open return Wave_read(f) File "D:\software\anaconda3\envs\py37\lib\wave.py", line 160, in init f = builtins.open(f, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/data/speech_data/THCHS-30\data_thchs30/train/A8_175.wav
文件路径同时出现“/”、“\”,导致找不到文件,请问怎么解决呢 (文件路径要在哪里修改呢)
我用linux也出现了这个问题,请问最后怎么解决的呢
from asrt_speechrecognition.
我的环境是windows,将config把没有的数据集配置删除,然后注意“data_path”这里的斜线
{
"dict_filename": "dict.txt",
"dataset":{
"train":[
{
"name": "thchs30_train",
"data_list": "datalist/thchs30/train.wav.lst",
"data_path": "data/speech_data/",
"label_list": "datalist/thchs30/train.syllable.txt"
}
],
"dev":[
{
"name": "thchs30_dev",
"data_list": "datalist/thchs30/cv.wav.lst",
"data_path": "data/speech_data/",
"label_list": "datalist/thchs30/cv.syllable.txt"
}
],
"test":[
{
"name": "thchs30_test",
"data_list": "datalist/thchs30/test.wav.lst",
"data_path": "data/speech_data/",
"label_list": "datalist/thchs30/test.syllable.txt"
}
]
}
}
from asrt_speechrecognition.
Related Issues (20)
- 数据集可以只采用thchs30进行训练和预测吗?
- 修改成支持英文识别的问题 HOT 1
- h5文件转tflite出错 HOT 1
- pip package conflict caused by protobuf==3.19.6 and grpcio-tools HOT 3
- Error with CUDA_ERROR_ILLEGAL_ADDRESS HOT 7
- 训练模型时出错 HOT 2
- 怎么能识别中英文混合的语音?
- No such file or directory(训练每次出现的缺失wav文件还不一样) HOT 2
- 可以提供麦克风的示例不 HOT 1
- ValueError: Expect x to be a non-empty array or dataset. HOT 2
- ARM64 的支持 HOT 1
- 有训练好的模型权重文件下载吗
- download_default_datalist 时出现 502 Bad Gateway HOT 1
- 请问,电脑安装不了cuda和cdnn的话,可以用服务器来代替吗?然后移除那部分的代码可以吗? HOT 1
- could not broadcast input array from shape (1043793,200,1) into shape (1600,200,1) HOT 1
- 模型问题
- 命令行应该去掉前面第一个/符号
- Run ASRT on smartphones. HOT 7
- 参考引用本项目 HOT 1
- 文件找不到
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asrt_speechrecognition.