alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.48k stars 1.05k forks source link

How can I implement Ruby client? #1069

Open okuramasafumi opened 2 years ago

okuramasafumi commented 2 years ago

Hi, I'm wondering if I could implement a Ruby client for Vosk. How should we process the development? Should we develop it in separate repository or should we write code in this repository and send a PR?

nshmyrev commented 2 years ago

Hi. A PR would be welcome! Both bindings for vosk-api and client example for vosk-server

nshmyrev commented 2 years ago

For API you can use https://github.com/ffi/ffi I suppose. For server https://github.com/imanel/websocket-ruby

okuramasafumi commented 2 years ago

@nshmyrev Thank you, I'll take a look at Python code for a close example. If I have any question, I'll post it here.

nshmyrev commented 2 years ago

Sure, let us know please

nshmyrev commented 2 years ago

I even created a template

https://github.com/alphacep/vosk-api/tree/master/ruby

and also pushed to rubygems:

https://rubygems.org/gems/vosk

okuramasafumi commented 2 years ago

Nice, after adding real code please add me to collaborators in rubygems!

nshmyrev commented 2 years ago

I added you as an owner! Thank you

okuramasafumi commented 2 years ago

Should I build libvosk to test against it?

nshmyrev commented 2 years ago

You'd better download prebuilt library in releases:

https://github.com/alphacep/vosk-api/releases/tag/v0.3.42