<h2 id="clone-piper-and-use-the-opt-directory">Clone piper and use the
/opt directory</h2>
<pre><code>mkdir -p /opt/bin/piper/
sudo chown -R user /opt/bin/piper/
sudo apt install cmake
git clone https://github.com/rhasspy/piper.git
cd piper/
make
cp install/piper* /opt/bin/piper/
cp install/lib* /opt/bin/piper/
exec /opt/bin/piper/piper</code></pre>
<h2 id="voices">Voices</h2>
<pre><code>sudo apt install git-lfs
git lfs install
git clone https://huggingface.co/rhasspy/piper-voices
cd piper-voices</code></pre>
<h2 id="test-voice">Test voice</h2>
<pre><code>echo &#39;This sentence is spoken first. This sentence is synthesized while the first sentence is spoken.&#39; |\
    exec /opt/bin/piper/piper \
    --model ~/git/piper-voices/en/en_GB/southern_english_female/low/en_GB-southern_english_female-low.onnx \
    --output voice.wav</code></pre>
