Ignore:
Timestamp:
May 15, 2017, 2:00:45 PM (2 years ago)
Author:
joamuran
Message:

added festival capabilities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-tts/trunk/fuentes/simple-google-tts/simple_google_tts

    r4721 r4755  
    233233}
    234234
     235# pico2wave --wave="eixida.wav" --lang="es-ES" "Hola"
     236#
     237
     238fest_synth(){
     239    echo "$1" | text2wave -o "$OutFile" -eval '(voice_upc_ca_ona_hts)'
     240}
     241
    235242pico_synth(){
    236243  pico2wave --wave="$OutFile" --lang="$LangCode" "$1"
     
    278285  elif [[ "$LangCode" = "it" ]]; then
    279286    LangCode="it-IT"
     287  elif [[ "$LangCode" = "ca" ]]; then
     288    LangCode="ca"
     289   
    280290  else
    281291    echo "$MsgErrInvalidLang"
     
    286296  # fixed formatting line-breaks well enough on its own.
    287297  # no need to use split_into_paragraphs()
    288   pico_synth "$InputText"
     298 
     299  if [[ "$LangCode" != "ca" ]]; then
     300      pico_synth "$InputText"
     301  else
     302      fest_synth  "$InputText"
     303  fi
     304 
    289305  echo "$MsgInfoPlayback"
    290306  $Player "$OutFile" > /dev/null 2>&1
Note: See TracChangeset for help on using the changeset viewer.