Page 6 of 6 FirstFirst ... 456
Results 51 to 55 of 55

Thread: Text to Speech

  1. #51
    Join Date
    Oct 2011
    Location
    Oregon
    Beans
    32
    Distro
    Ubuntu Development Release

    Re: Text to Speech

    Quote Originally Posted by Hydrosis View Post
    This is exactly what I've been looking for. I always wonder why so many Linux apps just don't work out-of-the-box and have simple GUIs, like KTTS/Kmouth and Festival.

    This should be integrated into the next Ubuntu as a default app. Its small and very, very useful.
    I agree.

  2. #52
    Join Date
    Feb 2007
    Beans
    863

    Re: Text to Speech

    Quote Originally Posted by Robotman View Post
    Howdy,
    I just installed Ubuntu 7.04 and I really like it, especially its speed compared to XP. Unfortunately, I can't seem to get any text to speech software to work yet. If I could get a speech synthesiser to read text for me like I can with windows (using "TextAloud MP3"), I could abandon that other OS altogether, as 'reading' news is what I do most with this PC.
    Is there any good text-to-speech software that will run in Ubuntu? I've read about and downloaded something called "Festival" but I don't know what to do with all those files and I've read that it doesn't have a GUI. Any tips to have me listening to my text would be very welcome.
    I can code for you many things using festival.

    I pilot a computer over irda, and festival does the rest. I use a bit of speech recognition when I am alone in office and home.

    PM me if you would like help.

  3. #53
    Join Date
    Feb 2007
    Beans
    863

    Re: Text to Speech

    Quote Originally Posted by zoubidoo View Post
    Lucid LTS + Virtualbox + WinXP + Ivona trial version works perfectly. Just make sure you give the VM plenty of disk space.

    I'd be uncomfortable paying for it as it needs virtualbox and windows. But if it could be installed thought the ubuntu software centre, I wouldn't hesitate for a moment.
    Not bad. I have found this script. It works for me for few words.

    Code:
    #!/bin/sh
    
    
    ProcFestival() {
      if [ "$1" = "--festival" ]   ; then 
        echo "$2" | festival --tts
      fi
    }
    
    ProcIncreaseMic() {
      amixer -q -c $VALMIC   set 'Mic',1 100%
      amixer -q -c $VALMIC   set 'Mic',0 100%
    }
    
    ProcMic() {
      if  [ "$1" = "--checkmic" ] ||  [ "$1" = "--mic" ]  ||  [ "$1" = "--hwmic" ] ; then
        CARDNBR=` arecord -l | grep "^card "  | sed 's/://g' | awk ' { print $2 }  '  `
        [ "$2" = "--debug" ] && echo "$CARDNBR"
        if [ "$1" = "--mic"  ] ||  [ "$1" = "--checkmic"  ] ; then 
          [ "$2" != "" ]  && CHMIC=` echo "$CARDNBR" | grep $2  ` 
          if [ "$CHMIC" = "" ] ; then 
            VALMIC=` echo "$CARDNBR" | tail -n 1 `
            ProcIncreaseMic
            echo "$VALMIC"
          else
            VALMIC="$2"
            ProcIncreaseMic
            echo "$VALMIC"
          fi
        fi 
      fi
    }
    
    if [ "$1" = "custom" ] ; then 
      mkdir -p $HOME/tmp/custom 
      wget http://pastebin.ca/raw/2199967  -O $HOME/tmp/custom/sample.dfa
      wget http://pastebin.ca/raw/2199968 -O $HOME/tmp/custom/sample.dict
      wget http://pastebin.ca/raw/2199969 -O $HOME/tmp/julian-custom.jconf
      echo "Custom fetched and done"
      exit
    fi
    
    if [ "$1" = "install" ] ; then 
      mkdir -p $HOME/tmp/ 
      cd $HOME/tmp 
      if [ ! -f  Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz ] ; then
        wget http://www.repository.voxforge1.org/downloads/Nightly_Builds/AcousticModel-2011-07-21/Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz  -O  Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz
      fi 
      tar xvpfz Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz 
      echo "It might be installed."
      exit
    fi
    
    
    if [ "$1" = "voc" ] ; then 
      cd 
      cd tmp
      cd bin
      vim sample.voca
      ./mkdfa.pl sample
      exit
    fi
    
    
    FETCHMIC=` ProcMic --mic "$2"  `
    echo "Fetchmic : $FETCHMIC"
    AUDIODEV=` echo  "/dev/dsp${FETCHMIC}" | awk ' {gsub("dsp0","dsp") ; print $0  }   '`
    export AUDIODEV ;  echo  $AUDIODEV  
    counter=1
    
    cd
    cd  tmp
    
    if  [ ! -f julian-custom.jconf ] ; then 
      echo "custom/julian.jconf not found"
      echo "Please run-it with custom or install"
      exit
    fi
    
    
    ./julian -demo -input mic -C julian-custom.jconf | while read -r  i ; do 
    
    if [ $counter -eq 130 ] || [ $counter -eq 129 ] ; then
      echo "** READY * Please Speak **"
    fi
    
    if [ $counter -ge 129 ] ; then
      echo "**$counter** $i **"
    
    
      CHPAS=` echo "$i" | grep "sentence1: <s>" `
      echo "CHPAS $CHPAS" 
      if [ "$CHPAS" != ""  ]  ; then 
        echo "FOUND CHPAS $CHPAS" 
        FOUND=""
        FOUND=`echo "$i" | awk ' { print $3  }    '`
        ProcFestival --festival "$FOUND"
    
    
        if [ "$LAST" != "ZERO" ]   &&  [ "$FOUND" = "ZERO" ]   ; then 
          ProcFestival --festival "The Command is $FOUND"
    
          # here add whatever you would like linux to do ...
          [ "$LAST" = "ONE" ]   && xterm &
          [ "$LAST" = "TWO" ]   && audacious &
          [ "$LAST" = "THREE" ]   && xclock &
          [ "$LAST" = "NINE" ]   && date | festival  --tts &
          # ...
        fi
        LAST="$FOUND"
      fi 
    fi
    
    counter=$(( $counter +1))
    done

  4. #54
    Join Date
    Oct 2007
    Location
    wrong planet
    Beans
    746
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Text to Speech

    Linux Advanced Guides and News!
    http://linuxinnovations.blogspot.com/

    Green means go, Yellow means faster, Red means don't stop.

  5. #55
    Join Date
    Jul 2012
    Beans
    1

    Re: Text to Speech

    In gespeaker, is there a script that allows you to modify the common words and contractions (such as e.g. = for example, i.e. = that is, etc = et cetera)?

    I've been looking for this in the source code, but I can't seem to find it.

Page 6 of 6 FirstFirst ... 456

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •