Giter VIP home page Giter VIP logo

ouou-dictation's Introduction

ouou-dictation

A command-line program for self-help dictation supporting Chinese, Japanese and English.

It's the first product of my Rust learning. Mostly for my own use, but if you find any issues or have good ideas, just let me know.

Features

  • Use clap to parse arguments

  • Use Lingua to detect languages automatically.

  • Use TTS-RS to speak out the words in various backends.

  • Two Modes:

    • Dictate Mode for Self-dictation. Check the answer in real time
    • Read Mode just read over the word list
  • Switch Male/Female

  • Switch whether to shuffle the word list

  • Set speaking rate

Usage

Build it or download the release.

Run it in the console. take --help as argument for help, like:

PS C:\Users\OuOu\Desktop> .\ouou_dictation.exe --help
A command-line program for multi-language self-help dictation.

Usage: ouou_dictation.exe [OPTIONS] --path <PATH> [MODE] [GENDER]

Arguments:
  [MODE]    [default: dictate] [possible values: dictate, read]
  [GENDER]  [default: female] [possible values: male, female]

Options:
  -p, --path <PATH>
  -r, --rate <RATE>   Use like 0.5/2.0 [default: 0.9]
  -d, --dont-shuffle  Do not shuffle the word list
  -h, --help          Print help
  -V, --version       Print version

If you want to use it for a long time, it is more convenient to add the exe to the environment path.

Create an alias

ouou-dictation don't have a shorter name like rg(ripgrep) currently, but you can create an alias yourself:

  • In Windows Powershell: Unlike some Unix shells, you cannot assign an alias to a command with parameters in Powershell. Instead, you must create a function to propagate arguments and stdin input. To keep the function alive permanently, declare it in $profile(if not exists, run New-Item -Type file -Force $profile to create it):
function ood {
   $count = @($input).Count
   $input.Reset()

   if ($count) {
       $input | ouou_dictation.exe $args
   }
   else {
       ouou_dictation.exe $args
   }
}
  • In Linux Shell:
alias ood='ouou_dictation'

ouou-dictation's People

Contributors

ouou2021 avatar

Stargazers

 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.