Giter Club home page Giter Club logo

akplugin's Introduction

UniMRCP Plug-In prototype

Note: The work in progress.

Assumption: build environment is RPM-based distro with UniMRCP packages unimrcp-client, unimrcp-client-devel, unimrcp-server, unimrcp-server-devel already installed.

$ sudo yum install unimrcp-client unimrcp-client-devel unimrcp-server unimrcp-server-devel

Datails of instalation are available at https://www.unimrcp.org/manuals/html/RPMInstallationManual.html.

Development environment is Fedora.

Build instructions (Fedora)

There must be Rust in the environment: https://www.rust-lang.org/learn/get-started.

Plugin depends on clang and openssl development kits. So please ensures they are available in building environment.

Build the plugin with:

cargo build --release

Then copy libakplugin.so from target/release to unimrcp/plugin (usually you need sudo privilege).

Edit config of the uniMRCP-server, file unimrcp/conf/unimrcpserver.xml. Add line:

<engine id="Ak-Synth" name="libakplugin" enable="true"/>

Disable other synth-plugins like this:

<engine id="Demo-Synth-1" name="demosynth" enable="false"/>.

On start the server loads the plugin, you may see in logs something like this

[INFO]   Load Plugin [Ak-Synth] [/opt/unimrcp/plugin/libakplugin.so]

Current state of work

### Bug at virtual function stream_read In the scenario "synth" server calls stream_read infinitely.

### Plugin works correctly But does not do any actual synthesize. Client gets empty file.

Plugin works with DEMO-SYNTH scenario

To be functional plugin needs to be built with .secret file in src directory. File .secret must be:

pub(crate) static YANDEX_KEY: &str = "Your Yandex Passport OAUTH Token";
pub(crate) static FOLDER_ID: &str = "Your Yandex SpeechKit folder ID";

Be careful, your secrets are baked into the code of the plugin. So DO NOT distribute it as a compiled file.

Plugin accepts plain text from demo-synth, sends the plain text to Yandex SpeechKit, all the received LPCM-stream is directed to the CLIENT. So you get your speech synthesized in unimrcp/var directory as pcm-file.

akplugin's People

Contributors

akmitrich avatar

Watchers

 avatar

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.