vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

Avoid the use of JSON for the C-Api.

Open besentv opened this issue 2 years ago • 1 comments

Hi,

I'm currently planning to use Vosk for implementing speech recognition in Wine: The Wine project is generally pretty strict about code quality and the use of external libraries, meaning we would like to avoid JSON to not depend on too many external libraries for just ASR. I could probably try to use some string comparison hacks, to get the data out of the returned JSON, but that would most likely not be in the interest of the project, since C and strings are already their own story ;-) . So, would it be possible to add another type of vosk_recognizer_result, vosk_recognizer_final_result, etc., which returns the data in predefined structs?

Thanks, Bernhard

besentv avatar May 11 '22 11:05 besentv

Sure, it would be great to have something like this.

nshmyrev avatar May 11 '22 12:05 nshmyrev