alphacep / vosk-server

WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Apache License 2.0
871 stars 241 forks source link

How to vue example? #221

Open litongjava opened 1 year ago

litongjava commented 1 year ago

How can I compile vue example? https://github.com/alphacep/vosk-server/tree/master/client-samples/vue

I try to compile vue example on MacOs with m2,but I am failed Can you tell more information about vue example Nodejs version? Compile step?

ch930410 commented 1 year ago

hello, you can try node: 16.17.0. My initial version was 18.16.0, but it also reported an error after running. Changing to this one will be successful.

litongjava commented 1 year ago

@ch930410 sorry,I test fail with the node version 16.17.0 on Windows,error info

>node -v
v16.17.0

ERROR  Failed to compile with 2 errors                                                                                                                                                                  16:22:06
These relative modules were not found:

* ../../assets/fonts/Cairo/Cairo-Regular.ttf in ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??ref--8-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-3-3!./src/assets/scss/main.scss
* ../../assets/fonts/Zilla_Slab/ZillaSlab-Medium.ttf in ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??ref--8-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-3-3!./src/assets/scss/main.scss
终止批处理操作吗(Y/N)? y
ch930410 commented 1 year ago

this is a resource that was not found. Please find this introduction in the code and comment on it.

litongjava commented 1 year ago

Can you tell me which file and line number?I am not very good at frontend

ch930410 commented 1 year ago

https://github.com/alphacep/vosk-server/blob/master/client-samples/vue/src/assets/scss/_base.scss#L4 https://github.com/alphacep/vosk-server/blob/master/client-samples/vue/src/assets/scss/_base.scss#L10

Introduction of annotation font files