- Python 98.9%
- Vim Script 1.1%
| doc | ||
| plugin | ||
| rplugin/python3 | ||
| LICENSE | ||
| README.md | ||
nvim-speech
Neovim plugin to record and convert speech to text.
Currently only supports VASR, Google ASR support will be added soon.
Installation
| Plugin Manager | Install with... |
|---|---|
| Pathogen | git clone https://github.com/vipul-sharma20/nvim-speech ~/.vim/bundle/nvim-speechRemember to run :Helptags to generate help tags |
| NeoBundle | NeoBundle 'vipul-sharma20/nvim-speech' |
| Vundle | Plugin 'vipul-sharma20/nvim-speech' |
| Plug | Plug 'vipul-sharma20/nvim-speech' |
| VAM | call vam#ActivateAddons([ 'nvim-speech' ]) |
| Dein | call dein#add('vipul-sharma20/nvim-speech') |
| minpac | call minpac#add('vipul-sharma20/nvim-speech') |
| manual | copy all of the files into your ~/.vim directory |
This plugin works only on Python version 3 or above
Microphone Support
This plugin uses PyAudio to record user input through microphone. Installation command below:
pip install pyaudio
VASR Support
For VASR support, you'll also need to install Vernacular speech SDK:
pip install vernacular-ai-speech
more doc here
Google Support
🚧 Coming Soon
Configuration
-
Set ASR provider for the plugin. Can be 'vernacular' or 'google'
let g:asr_provider='vernacular' -
Set ASR language code. Check language code for the providers below.
let g:asr_language_code=en-IN
Vernacular ASR
- Store API access token in
VERNACULAR_ACCESS_TOKENenvironment variable.
export VERNACULAR_ACCESS_TOKEN="xxxxxxxxxxxxxxxxxxxxxxx"
Language code
Vernacular ASR only supports indian languages for now. Use these language codes for following languages.
| Language | Code |
|---|---|
| Hindi | hi-IN |
| English | en-IN |
| Kannada | kn-IN |
| Malayalam | ml-IN |
| Bengali | bn-IN |
| Marathi | mr-IN |
| Gujarati | gu-IN |
| Punjabi | pa-IN |
| Telugu | te-IN |
| Tamil | ta-IN |
Set these code as:
let g:asr_language_code="en-IN"
Google ASR
🚧 Coming Soon
Documentation
:h nvim-speech
Commands
| Command | List |
|---|---|
Speech |
Record speech and store transcription in g:asr_transcription |
SpeechEcho |
Record speech and write transcription on current line |
Check some key bindings in the documentation :h nvim-speech