Closed candaj closed 3 years ago
Have you seen our mqtt server?
Yes I've tested it as it is in the description (downloaded ru model etc) and the AcceptWaveform is failing as well
Yes I've tested it as it is in the description (downloaded ru model etc) and the AcceptWaveform is failing as well
How is it failing exactly?
@candaj any reason why you specify frames_per_buffer=8000
and then read/send 4k chunks? Also, wondering why are you loading Vosk on the client-side?
Yes I've tested it as it is in the description (downloaded ru model etc) and the AcceptWaveform is failing as well
How is it failing exactly?
It returning false as in my example.
@candaj any reason why you specify
frames_per_buffer=8000
and then read/send 4k chunks? Also, wondering why are you loading Vosk on the client-side?
It the same configuration as the test_microphone.py I don't know. Yeah I should have removed it from the paste, it was to verify the data is well translated anyway on the client side.
Edit: sorry miss clicked on close issue, I've reopen it
@candaj take a look at similar code in a server-side repo: https://github.com/alphacep/vosk-server/blob/master/websocket/test_microphone.py It uses the same values and adapted for streaming. Those sample you tried is intended to be used in a standalone mode, not in a client-server. Btw, have you tried to save your recording to a file? Just curious if there's a valid voice data at all and you are not streaming a silence / damaged chunks due to e.g. mic issues.
@sskorol I'll test it this afternoon. But I'm not sure it's the issue as the base test from mqtt server is failing too in my case (btw, i'm using vosk 0.3.7, paho-mqtt 1.5.1 and pyaudio 0.2.11 if it can help)
@candaj recent vosk version is 0.3.15. Try to update it as well.
Is the version 0.3.15 exists on windows ? I'm developping on windows right now and can't find the wheel ? If not, can I compile it myself and how ?
I don't believe it exists for Win yet. Personally, I don't use Windows. You can try. But it might be painful, as you need to build both Kaldi and Vosk. A simple compilation instruction is in docs. But I'd check existing Dockerfiles and try to adapt them for your platform. Usually, the difference is in flags and a couple of dependencies. W/o Docker it might be much harder to set everything up on Windows.
Hi,
Tested on V0.3.15 on unix, working well for simple wav file, not with mic yet (others issues). Will continue to work on it. Thank you guys !
Hello,
I'm hoping you can help me. I'm using a modified version of the test_microphone.py to listen sound on one side, transmitting it through mqtt to a server and decoding the frame with vosk.
The client code looks like this:
and the server part looks like this:
on both side, the bytes are the same but the method AcceptWaveform does not return true. If both code are merged (basically test_microphone.py without mqtt) it's working perfectly. Any idea ?