Git Product home page Git Product logo

papagayo's Introduction

To work with the Papagayo source code, you need some special software installed. This software is not necessary to run the installer-based version of Papagayo, but you do need it if you want to use this source code package.

Python - the programming language that Papagayo is written in.
http://www.python.org/

wxPython - a cross-platform user interface library for Python, based on wxWidgets.
http://www.wxpython.org/

wxGlade - a user interface builder for wxWidgets. This program is not strictly necessary, but is helpful if you want to modify the user interface of Papagayo.
http://wxglade.sourceforge.net/

Papagayo is written in Python, and requires no special tools to work with the source - a basic text editor is good enough. To run Papagayo, double-click the papagayo.py file, or run the following command:

python papagayo.py

-----------------------------

The Papagayo source package includes the following files:

readme.txt - this file
gpl.txt - the user license for Papagayo

papagayo.py - the main program file
phonemes.py - a list if phoneme sets available in Papagayo
phonemes_preston_blair.py - Preston Blair phoneme set (default)
phonemes_fleming_dobbs.py - Fleming & Dobbs phoneme set
LipsyncDoc.py - the document structure, including voices, phoneme breakdown, etc.
breakdowns/*.py - code to break down words using language specific pronunciations
LipsyncFrame.py - the main Papagayo window
WaveformView.py - the waveform view in the main window
MouthView.py - the mouth view in the main window
PronunciationDialog.py - a dialog to provide manual phoneme breakdown
AboutBox.py - about box


lipsync.wxg - a wxGlade file defining the user interface layout for Papagayo


rsrc/ - various resources for Papagayo, including button pictures, mouths, and language configuraion/data
rsrc/mouths/ - a folder containing the mouth pictures
rsrc/languages/ - a folder containing the configuration and data for different languages
papagayo.ico - Windows icons
papagayo.icns - MacOS X icons

setup.py - a script to build Papagayo as a standalone Windows application
setup_mac.py - a script to build Papagayo as a standalone MacOS X application

-----------------------------

Here are a couple tips for source code that you may want to modify:

By default, Papagayo uses the Preston Blair phoneme set. There is also Fleming & Dobbs phoneme set available. The phoneme sets are stored in the phonemes_*.py files. If you want to add a different set of phonemes, you can use existsing sets as examples. Also, take a look at the instructions in the phonemes.py file.

To add breakdowns for other languages create a new language configuration in rsrc/languages/<language> inside you need to place a configuration file (see italian for an example of how to configure a breakdown)  You will also need to create a breakdown class.  These live in breakdowns.  The naming convention is <language>_breakdown.py. Just examine one of the existing ones for how to make it work.  Make sure the function to call your breakdown processing is called breakdownWord.

Papagayo now only works with Moho, but support could be added for other animation software, 2D or 3D. To add support for other export formats, look in the LipsyncDoc.py file for the function LipsyncVoice:Export - this is where Papagayo exports switch data for Moho. You will also need to modify the file LipsyncFrame.py to add a user interface for exporting the new format.

-----------------------------

Copyright (C) 2005 Mike Clifton
Contact:
http://www.lostmarble.com

Modifications (C) 2010 Benjamin Lau
Contact:
http://code.google.com/p/papagayo/

papagayo's People

papagayo's Issues

Toolbar icons

The open and save toolbar icons don't match the system.

I altered a few lines which can fix this in wx. I will paste them here:
So in the file LipsyncFrame.py, lines 115 and 116 become:
-- 115 --
self.mainFrame_toolbar.AddLabelTool(wx.ID_OPEN, "Open", 
(wx.ArtProvider.GetBitmap(wx.ART_FILE_OPEN, wx.ART_TOOLBAR, (16,16))), 
wx.NullBitmap, wx.ITEM_NORMAL, "Open", "Open a sound file or Papagayo project")
-- 116 --
self.mainFrame_toolbar.AddLabelTool(wx.ID_SAVE, "Save", 
(wx.ArtProvider.GetBitmap(wx.ART_FILE_SAVE, wx.ART_TOOLBAR, (16,16))), 
wx.NullBitmap, wx.ITEM_NORMAL, "Save", "Save this Papagayo project")


Basically swapping out:
wx.Bitmap(os.path.join(get_main_dir(),"rsrc/open.png"))
for
wx.ArtProvider.GetBitmap(wx.ART_FILE_OPEN, wx.ART_TOOLBAR, (16,16))
and similar for save.


I have also attached 3 files:
1. A cleaner window icon.
2. A new play button (modified off a tango theme icon)
3. A new stop button (modified off a tango theme icon)

Original issue reported on code.google.com by [email protected] on 4 Jun 2013 at 9:30

Attachments:

No/inaccurate audio sample

What steps will reproduce the problem?
1. Load an audio file
2. Adjust to 100 fps
3. Enter spoken text, select "Pashto", click breakdown
4. Move the phrase or words around or try extending or double-clicking them. 

Usually when you move the phrase or words around in Papagayo, you'll hear a 
sample of the audio. Neither extending these parsings nor double-clicking them 
allows you to hear a proper audio sample. Either no audio is heard or just a 
snippet is heard, when really a longer sample should be playing.

I'm using the Papagayo Ben provided on island.
Windows XP


Original issue reported on code.google.com by [email protected] on 20 Sep 2010 at 6:21

  • Blocking: #3, #3
  • Blocked on: #3

Missing feature:audio scrubbing

What steps will reproduce the problem?
1. left mouse click and move on the timeline.

What is the expected output? What do you see instead?
Should play the audio segment in the range of the mouse movement.

What version of the product are you using? On what operating system?
windows 7 home 64bit,python 2.6 32bit.

I think there is no problem for pyaudio to do that,just need time to imporve.


Original issue reported on code.google.com by [email protected] on 30 Aug 2010 at 2:20

  • Blocking: #4
  • Blocked on: #4

Phoneme buttons shold be changed when we change phoneme set [patch]

Phoneme buttons in PronunciationDialog are hardcoded.
So even if we will change the phoneme set, those changes are not
influence this dialogue.
This patch make the buttons "dynamic" - they are automatically
generated depending on the phoneme set.

What steps will reproduce the problem?
1. Change the phoneme set (phonemes.py)
2. Launch the papagayo
3. Try to change breakdown for the word by launching the PronunciationDialog - 
you will see the buttons with old phoneme set there

What is the expected output? What do you see instead?
PronunciationDialog should have buttons with the new phoneme set


What version of the product are you using? On what operating system?
latest SVN checkout

Please provide any additional information below.
Attached patch fixes the problem

Original issue reported on code.google.com by [email protected] on 24 Feb 2013 at 9:15

Attachments:

Display needs to be resized before use on Windows

What steps will reproduce the problem?
1. Startup papagayo on Windows

What is the expected output? What do you see instead?
All UI elements should be visible

What version of the product are you using? On what operating system?
SVN code on Windows

Please provide any additional information below.
I've seen this problem with wxWindows on XP before... I'll try pulling in a 
hack from an old application of mine to fix this, but I need to boot into 
windows first.

Original issue reported on code.google.com by [email protected] on 29 Aug 2010 at 9:27

International characters are not saved in .pgo file [patch]

What steps will reproduce the problem?
1. Enter Spoken text with non-latin characters
2. Save .pgo file
3. Restart papagayo
4. Open saved .pgo file -> the non latin character appear as "?" symbols

What is the expected output? What do you see instead?
Non-latin (international) characters expected to be saved and loaded correctly.


What version of the product are you using? On what operating system?
Latest SVN checkout.


Original issue reported on code.google.com by [email protected] on 25 Feb 2013 at 4:58

Attachments:

No handler found for image type on startup

What steps will reproduce the problem?
1. Download papagayo from sources on Windows
2. Run Papagayo
3. Should see the error

What is the expected output? What do you see instead?
There should be no error instead we get an error message:

What version of the product are you using? On what operating system?
No handler found for image type

Please provide any additional information below.
I suspect that there is an issue here with the .svn directories on Windows.  
Harrisyu provided a patch that temporarily disables error reporting and the 
system seems to work okay.  Need to switch to one of my windows boxes to test.

Original issue reported on code.google.com by [email protected] on 29 Aug 2010 at 9:25

No text input box in Ubuntu 12.04

What steps will reproduce the problem?
1.Opening the program
2.
3.

What is the expected output? What do you see instead?
There should be an input box for text to be added.


What version of the product are you using? On what operating system?
Ver. 1.2 for Linux running from Python source on Ubuntu 12.04 with Python 2.7

Please provide any additional information below.
When Papagayo opens, it's possible to open a .wav file and play it, but there 
is no text input box like the one found in the Windows version.  Please see the 
attached screenshot.

In the terminal the following error is reported three times on shutting down 
the program:

(python:3420): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that 
doesn't believe we're it's parent.

Original issue reported on code.google.com by 2fullnesses on 21 Feb 2013 at 2:24

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.