Speech & AI Features
Speech-to-Text
Section titled “Speech-to-Text”Faster Whisper
Section titled “Faster Whisper”Local speech recognition using OpenAI’s Whisper model.
# Installpip install faster-whisper
# Usagefaster-whisper audio.mp3 --model smallParakeet
Section titled “Parakeet”NVIDIA’s speech recognition model.
# Install via pippip install nemo_toolkit[asr]Text-to-Speech
Section titled “Text-to-Speech”Kokoro
Section titled “Kokoro”High-quality TTS with multiple voices.
CPU Version
Section titled “CPU Version”yay -S kokoro-ttsGPU Version (faster)
Section titled “GPU Version (faster)”yay -S kokoro-tts-cudaecho "Hello, welcome to Dusky" | kokoro --voice af_bellaIntegration with Rofi
Section titled “Integration with Rofi”Add to your Rofi scripts:
Voice Input
Section titled “Voice Input”#!/bin/bash# Record and transcriberec -r 16000 -c 1 /tmp/voice.wav silence 1 0.1 1% 1 1.0 1%faster-whisper /tmp/voice.wav --model small | wl-copyTTS Output
Section titled “TTS Output”#!/bin/bash# Speak clipboard contentwl-paste | kokoro --voice af_bella