Installation¶
This guide will walk you through the installation of the STARK framework and its associated extras. You can use either pip or poetry for the installation. Let's dive right in!
Prerequisites¶
Ensure you have Python 3.10 or newer installed. You can verify this with:
On some systems, you may need to use the python3
command instead of python
:
Avaiable Extras¶
The STARK framework offers several extras, which are default implementations for its protocols, to facilitate integration with various tools. These extras include:
- all: Installs all default implementations. Recommended if you're not well-versed in dependency management.
- vosk: Vosk (offline speech recognition) implementation of SpeechRecognizer protocol.
- gcloud: Google Cloud Text-to-Speech implementation of SpeechSynthesizer protocol.
- silero: Silero Models (offline) implementation of SpeechSynthesizer.
- sound: Required utilities for processing sound:
sounddevice
andsoundfile
.
Installation with pip¶
To install the base version of STARK:
To install any of the extras:
pip install stark-engine[all]
pip install stark-engine[gcloud]
pip install stark-engine[vosk]
pip install stark-engine[silero]
pip install stark-engine[sound]
If you encounter the error zsh: no matches found
, simply enclose the package name in quotes:
pip install "stark-engine[all]"
pip install "stark-engine[gcloud]"
pip install "stark-engine[vosk]"
pip install "stark-engine[silero]"
pip install "stark-engine[sound]"
Installation with poetry¶
If you, like me, prefer using poetry to manage dependencies along with a virtual environment, simply replace pip install
with poetry add
.
poetry add stark-engine
poetry add stark-engine[all]
poetry add stark-engine[gcloud]
poetry add stark-engine[vosk]
poetry add stark-engine[silero]
poetry add stark-engine[sound]
If you encounter the error zsh: no matches found
, simply enclose the package name in quotes:
poetry add "stark-engine[all]"
poetry add "stark-engine[gcloud]"
poetry add "stark-engine[vosk]"
poetry add "stark-engine[silero]"
poetry add "stark-engine[sound]"
With the STARK framework installed and the desired extras in place, you're all set to develop powerful voice-driven applications. Dive into the documentation, experiment, and build great things!
Created: 2023-09-21