Giter Site home page Giter Site logo

Comments (3)

teamclouday avatar teamclouday commented on July 30, 2024

now I've changed the function name

extern "C"
{
    cst_voice *register_cmu_us_slt(); // built in function
}

and added compile flags -lflite -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex
the link problem fixed
but when I run the program, it shows "Error load voice: lang/lex eng not supported in this binary"
is it because I'm still missing some flags?

from flite.

teamclouday avatar teamclouday commented on July 30, 2024

sorry, the error was because I used a downloaded flitevox file and it was incompatible
nothing wrong with the built-in functions
closing this issue

from flite.

teamclouday avatar teamclouday commented on July 30, 2024

For any one who encountered the error "Error load voice: lang/lex eng not supported in this binary"
because of loading personal english language flitevox files
the solution is: (before the flite_voice_load function call)
in header file:

extern "C"
{
    void usenglish_init(cst_voice *v);
    cst_lexicon *cmulex_init(void);
}

in actual code:

flite_add_lang("eng", usenglish_init, cmulex_init);

from flite.

Related Issues (20)

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.