Files
Code/python/tool-speechtotext
2026-01-19 15:21:44 +00:00
..
2026-01-13 16:47:04 +00:00
2026-01-19 15:21:44 +00:00
2026-01-14 00:34:39 +00:00
2026-01-14 01:46:31 +00:00
2026-01-14 02:04:31 +00:00

Purpose

speech to text command line utility by leveraging off ollama a local speech-to-text model

Setup

# Create the environment with Python 3.10 and CUDA toolkit
mamba create -n whisper-ollama python=3.10 nvidia/label/cuda-12.2.0::cuda-toolkit cudnn -c nvidia -c conda-forge -y

# Activate the environment
mamba activate whisper-ollama

# Install Audio and Logic dependencies
# Note: portaudio is required for sounddevice to work on Linux
sudo apt-get update && sudo apt-get install libportaudio2 -y

pip install faster-whisper sounddevice numpy pyperclip requests