Skip to content

Instantly share code, notes, and snippets.

@eSlider
Last active October 20, 2023 09:15
Show Gist options
  • Save eSlider/717bb5b5be181c9d7a669937474df08a to your computer and use it in GitHub Desktop.
Save eSlider/717bb5b5be181c9d7a669937474df08a to your computer and use it in GitHub Desktop.
Russian text to speech
#!/bin/bash
sudo add-apt-repository ppa:linvinus/rhvoice
sudo apt-get update
sudo apt-get install rhvoice rhvoice-russian rhvoice-english aplay
set -x
# Play russian speaker voices
for speeker in aleksandr irina elena anna
do echo "Голос воспроизводит спикер ${speeker}" | RHVoice-client -r 0.5 -p -0.25 -s "${speeker}+CLB" | aplay
done
# Play english speaker voices
for speeker in alan clb slt
do echo "The voice is reproduced by the speaker ${speeker}" | RHVoice-client -r 0.5 -p -0.25 -s "${speeker}+CLB" | aplay
done
@eSlider
Copy link
Author

eSlider commented Nov 3, 2022

Fix repository for Ubuntu >= 20.04

echo "deb https://ppa.launchpadcontent.net/linvinus/rhvoice/ubuntu/ focal main" > /etc/apt/sources.list.d/linvinus-ubuntu-rhvoice-kinetic.list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment