- Install CMake 3.16+
- Install YCM 0.11+
- Install YARP 3.8+
with Python bindings, the latter for
speechRecognition.py
(ASR) - Install eSpeak with MBROLA Voices of
Espeak
(TTS)
Our software integrates the previous dependencies. Note that you will be prompted for your password upon using sudo
a couple of times:
cd # go home
mkdir -p repos; cd repos # create $HOME/repos if it doesn't exist; then, enter it
git clone https://github.com/roboticslab-uc3m/speech.git # Download speech software from the repository
cd speech; mkdir build; cd build; cmake .. -DCREATE_BINDINGS=ON -DCREATE_BINDINGS_PYTHON=ON # Configure the speech software
make -j$(nproc) # Compile
sudo make install # Install :-)
You may want to (from the same build dir):
echo "export ROBOTICSLAB_SPEECH_DIR=`pwd`" >> ~/.bashrc
For additional SPEECH options use ccmake
instead of cmake
.
This is a way set default sound output card using PulseAudio (not ALSA).
-
Check list of Sources and Sinks
$ pactl list short sources 0 alsa_input.usb-PrimeSense_PrimeSense_Device-01.analog-stereo module-alsa-card.c s16le 2ch 44100Hz 1 alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo.monitor module-alsa-card.c s16le 2ch 48000Hz 2 alsa_input.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-mono module-alsa-card.c s16le 1ch 44100Hz 3 alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz $ pactl list short sinks 0 alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo module-alsa-card.c s16le 2ch 48000Hz 1 alsa_output.pci-0000_00_1f.3.hdmi-stereo module-alsa-card.c s16le 2ch 44100Hz
-
Set defaults (you can add these lines in the
~/.profile
file to save this configuration by default):
pactl set-default-source alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo.monitor
pactl set-default-sink alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo