speech
Loading...
Searching...
No Matches
Speech

A simple text to speech using **SVOXPICO**.

Requirements

The current implementation requires Linux **aplay** command (in the alsa-utils package) to play the generated wave file. This can/should be easily replaced with the yarp portaudio device (audio player).

On Windows systems powershell is employed to play the wave file.

Installation

  • $ cd svox-speech
  • $ mkdir build && cd build
  • $ cmake ..
  • tick on the driver speech.
  • select a convenient location for installation via CMAKE_INSTALL_PREFIX (refer to this location as $INST_DIR).
  • $ make install
  • append to the environment variable **YARP_DATA_DIRS** the path $INST_DIR/share/speech.

Testing

$ yarpdev --device speech --lingware-context speech --default-language en-US --pitch 100 --speed 100
$ yarp rpc /icub/speech:rpc
>>help
Responses:
*** Available commands:
setLanguage
setSpeed
setPitch
getSpeed
getPitch
getSupportedLang
say
help
>> say "Hello iCub!"
>> setPitch 200
>> say "Hello iCub!"