Recently updated the previously released speech recognition framework Myvoix, adding a microphone waveform analysis effect. have not seen Myvoix introduction of classmates please poke (portal) GitHub address
In the new update, waveform analysis can be tied to a microphone source, or it can be used separately with other sources. First, take a look at the code for waveform drawing of the microphone.
<! DOCTYPE html>
As you can see, you only need a canvas, then you can draw the waveform by calling the Createsoundwave method, the effect is as follows.
Of course, you need to use the Chrome browser and allow the Web to use your microphone. One line of code draws out the waveform of the microphone, and has speech recognition, is not very cool. After the post I will analyze the source code, I wish you a pleasant weekend.
forwarding Please indicate the source: http://www.cnblogs.com/arthus/p/ 3884442.html