jeanxl / mfcc-speech-commands-recognize- Goto Github PK
View Code? Open in Web Editor NEWSpeech Commands Recognize Based MFCC Features
Speech Commands Recognize Based MFCC Features
模型跑完了。你给的测试音频都测试通过了。
我的问题是:想自己录一段音频。放在模型里预测一下。
但自己录制的音频在预测里出现如下错误:
wave_data:
[[ 0 0]
[ 0 0]
[ 0 0]
...
[-2 -2]
[-2 -2]
[-2 -2]]
Traceback (most recent call last):
File "/root/test/whl/speech-recognition/program/MFCC-Speech-Commands-Recognize-/predict_baseline_model.py", line 21, in
resampled_signal = np.append(resampled_signal, np.zeros(8000 - len(resampled_signal), dtype=np.int16))
ValueError: negative dimensions are not allowed
resampled_rate: 22050 resampled_signal [ 0 0 0 ... -2 -2 -2]
en(resampled_signal)
51450
应该是8000 - len(resampled_signal)是负数
请教,怎么录制一秒钟的测试音频。非常感谢!
请教:7017是怎么算的?
cfg.train.num_samples = 7017
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.