Code Monkey home page Code Monkey logo

vosk-rs's Introduction

vosk-rs's People

Contributors

acro5piano avatar bear-03 avatar rtkay123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vosk-rs's Issues

How to compile rust vosk for iOS

Hey,
I'm not sure if it is a question for you or for the vosk core team. I would like to have my own native library for android and ios that includes vosk. For Android everything works fine with the dynamic libraries.

After asking for the ios libs I got two static libraries for ios (one for real devices all architectures and one for simulators). So I have the two libvosk.a files. When I try to link them and compile to aarch64-apple-ios I get the following looooooong error message.

https://pastebin.com/qSFQb2eq

Do you have any idea how to solve this?

Unable to run the example

Hi, thank you for the great library. I hope this issue does not bother you.

I've tried to run the example as documented in the source code but compilation failed. It seems that library cannot find the vosk dynamic library.

$ RURSTFLAGS=-L./lib/vosk \
       LD_LIBRARY_PATH=./lib/vosk \
       cargo run --example microphone lib/vosk-model 10

   Compiling vosk v0.1.0 (/home/kazuya/ghq/github.com/acro5piano/vosk-rs/vosk)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/home/kaz............caf446e056b41091.13i6whe78lh07zg9.rcgu.o"

  # ...long text here...

  = note: /bin/ld: cannot find -lvosk: No such file or directory
          collect2: error: ld returned 1 exit status

I've placed vosk on lib/vosk directory so the directory structure is like this. Am I missing something?

~> tree -L 3
.
|-- Cargo.toml
|-- CHANGELOG.md
|-- examples
|   |-- microphone.rs
|   |-- read_wav.rs
|   `-- speaker_model.rs
|-- lib
|   |-- vosk
|   |   |-- libvosk.so
|   |   `-- vosk_api.h
|   `-- vosk-model
|       |-- am
|       |-- conf
|       |-- graph
|       |-- ivector
|       |-- README.txt
|       `-- rescore
|-- LICENSE -> ../LICENSE
|-- README.md -> ../README.md
`-- src
    |-- lib.rs
    |-- log.rs
    |-- models.rs
    `-- recognition
        |-- mod.rs
        `-- results.rs

I placed build.rs to tell linking directory to rust compiler - but no luck.

// build.rs

fn main() {
    println!("cargo:rustc-link-lib=./lib/vosk");
}

Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.