GithubHelp home page GithubHelp logo

go-numb / bouyomi4rs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

BouyomiClientは、棒読みちゃんのアプリ連携機能(TCP)を使用して、テキストを音声で読み上げるためのRustライブラリです。

Home Page: https://docs.rs/bouyomi4rs/0.2.0/bouyomi4rs/

License: MIT License

Rust 100.00%
bouyomi tcp

bouyomi4rs's Introduction

[Bouyomi4rs] BouyomiClient for Rust

BouyomiClientは、棒読みちゃんのアプリ連携機能(TCP)を使用して、テキストを音声で読み上げるためのRustライブラリです。

棒読みちゃんを起動してご利用ください。

Feature

  • 棒読みちゃんの発声設定をカスタマイズ可能
  • 棒読みちゃんの一時停止、再開、スキップ、クリアなどの操作をサポート
  • 再生中の状態や残りのタスク数を取得可能
  • Builderパターンを使用して、設定を柔軟に変更可能

Usage

use bouyomi4rs::{BouyomiClient, TalkConfig};

let mut config = TalkConfig::default();
config.set_voice(1).set_volume(100).set_speed(100).set_tone(100);
let client = BouyomiClient::new().set_config(config);

client.talk("こんにちは、世界");
client.wait(60);

APIリスト

  • BouyomiClient::new(): 新しいBouyomiClientインスタンスを作成します。
  • BouyomiClient::set_config(config: TalkConfig): BouyomiClientの設定を更新します。
  • BouyomiClient::talk(message: &str): 指定したメッセージを棒読みちゃんに読み上げさせます。
  • BouyomiClient::wait(seconds: u64): 指定した秒数を上限に読み上げが終わるまで待機します。
  • TalkConfig::default(): デフォルトのTalkConfigを作成します。
  • TalkConfig::set_voice(voice: i16): 発声設定を更新します。
  • TalkConfig::set_volume(volume: i16): 音量設定を更新します。
  • TalkConfig::set_speed(speed: i16): 速度設定を更新します。
  • TalkConfig::set_tone(tone: i16): トーン設定を更新します。

via golang client

go-bouyomichan@go-numb

Author

@_numbP

License

MIT

bouyomi4rs's People

Watchers

_numbP 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.