controlling festival from my python code

Discussion in 'Shell Script' started by faby, Aug 28, 2010.

  1. faby

    faby New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello everyone,

    I am presently working on speech synthesis/speech to text on Ubuntu 10.04. So far I've been using festival but I discovered espeak which is also cool by reading other people's previous questions and answers. My main goal is to develop a communication system whereby festival or espeak can speak to the end user and also can be paused/temporarily stopped if given a command from the user. I know that while using the interactive section of festival, one can pause using ctrl+z but I want another means to pause festival from my python code. I'll give a brief example:

    --from my code festival is given a file to read:- less example.txt | festival --tts
    (so it starts reading the file)

    --then from my code, I want to give a command that will pause festival...

    --thereafter, from my code, I want to continue running festival from where it stopped reading.

    Please anyone who has a clue to this will make my day.

    Thanks in advance!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice