A NeoVim plugin that reads buffer text aloud using Speech Dispatcher.
- NeoVim 0.8+
spd-say(part of thespeech-dispatcherpackage)
# Debian / Ubuntu
sudo apt install speech-dispatcher
# Fedora
sudo dnf install speech-dispatcherUsing lazy.nvim:
{
"errestan/speak.nvim",
config = function()
require("speak").setup()
end,
}speak.nvim registers an operator that accepts any NeoVim motion.
| Keymap | Action |
|---|---|
gs<motion> |
Speak text covered by motion |
gss |
Speak current line |
Examples:
| Key sequence | Speaks |
|---|---|
gsiw |
current word |
gsap |
current paragraph |
gs3j |
next 3 lines |
gss |
current line |
| Command | Action |
|---|---|
:Speak <text> |
Speak an arbitrary string |
:SpeakStop |
Stop current playback |
Pass options to setup() to override the defaults:
require("speak").setup({
-- Key used as the speak operator (default: "gs").
-- Double the key to speak the current line (e.g. "gss").
keymap = "gs",
})