lingva-tts/README.md

28 lines
655 B
Markdown
Raw Normal View History

2023-02-11 23:08:50 +08:00
## OS
- Linux
2024-07-25 15:54:36 +08:00
## Requirements
- node
- ffplay
2023-02-11 23:08:50 +08:00
## Installation
```
npm i -g git+https://git.yanknil.com/uohlhv/lingva-tts.git
```
## Usage
```
2024-07-25 15:54:36 +08:00
# Speak `This is an apple.`
lingva-tts --lang en --query "This is an apple." | ffplay -f s16le -ar 48k -ac 1 -autoexit -nodisp -
# Speak `This is an apple.` (Speed up the speak tempo by 2x)
lingva-tts --lang en --query "This is an apple." | ffplay -f s16le -ar 48k -ac 1 -af "atempo=2" -autoexit -nodisp -
2023-02-11 23:08:50 +08:00
2024-07-25 15:54:36 +08:00
# Speak text from cursor selection (Require xsel, and slow down the speak tempo by 0.5x)
xsel | lingva-tts --lang en --stdin | ffplay -f s16le -ar 48k -ac 1 -af "atempo=0.5" -autoexit -nodisp -
2023-02-11 23:08:50 +08:00
```