Skip to content

About

Talking translator for the Raspberry 5. Uses SmolLM3 to translate text and Piper1 to speak the translations.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Talking Translator for Raspberry Pi 5

Translates English text from a string to another language using SmolLM3, then speaks the translations using Piper1-gpl

Installation

Install Ollama by following instructions here: https://ollama.com/download

Create local Ollama LLM instance for SmolLM3 with this command:

ollama create translator-smollm3 -f SmolLM3.modelfile

Create and activate a python virtual environment with:

python -m venv translator_venv
source translator_venv/bin/activate

Install python dependencies

pip install -r requirements.txt

Download the voices using the helper script

./download_voices.sh

Usage

usage: Translator [-h] [-l LANGUAGE] [-r] [-t] [input]

Translates a word or phrase from english to another language and then speak the translation.

positional arguments: input

options: -h, --help show this help message and exit -l LANGUAGE, --language LANGUAGE -r, --replay -t, --history

Made with: SmolLM3 & Piper1-gpl

About

Talking translator for the Raspberry 5. Uses SmolLM3 to translate text and Piper1 to speak the translations.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages