Giter Club home page Giter Club logo

automatic_puppet_theatre's Introduction

A system for translating a puppet show script to a real time control of a complete robotic puppet theatre show

Areas of control - mouth movement. single servo Additional motion - stage and curtain control

components of system

1- A Libreoffice spreadsheet template to write out the script and sequences of the theatre play 2- pysimplegui User interface for setting up the script 3- output of controls for ESP32 - for preloading on ESP32

use pyserial for real time control (in the first version this is not used). or use subsystem call to load the file using the arduino ide.

Use UDP multicast to start / pause / stop the script on all the ESP32s in sync.

Convert the text to International Phonetics using the english-to-ipa library then convert the phonetics symbols to motor movements.

Nuances of system.

Words - some "basic" words are programmed in as canned cycles letters - all other words are programmed in as individual letters

https://smartlaboratory.org/ravdess/

an interesting project with 13 servos that is open source http://keenbots.com/Fritz/gallery.php

https://aws.amazon.com/polly/ - text to speech. supports lexicons and SSML

expressions - each line of text can have an associated expression awkward neutral sinister sleepy sneaky sulk calm happy sad angry fearful surprised careful subtle disgusted whisper

laughing crying sneezing

SSML tags for the TTS:

break emphasis 1-3 pause breathing sound softly timbre

prosody: strength - 1-6 rate 1-5 pitch 1-5 volume 1-6

in the user interface allow up to 5 parallel threads for robots and curtain motor controls The user interface for compiling the Puppet script is in a LibreOffice Template for now

Select the voice for the puppet (from the Amazon list, currently limited to English) Alt text

For each line you can set the prosody, and other SSML nuances for each robot. this is also reflected in the way the mouth moves.

Alt text

Once the script is ready. Save it as a CSV file.

Open the TheatreProcessing.exe or py file.

Import the CSV file

Then click to process it. The processing does the following:

1- Converts the text to IPA

2- Upload to the Text to speech system and retrieves the audio file

3- Converts the IPA text to individual motor movements for the robot mouths / stages / curtains

4- uploads the Code to the ESP-32 controllers

Alt text

Once the processing is complete the theatre can be "started". Starting sends a signal by Multicast to all the ESP32s as well as beginning the Audio Playback on the computer.

===========IPA=====================

English to IPA (eng_to_ipa)

This Python program utilizes the Carnegie-Mellon University Pronouncing Dictionary to convert English text into the International Phonetic Alphabet.

automatic_puppet_theatre's People

Contributors

modernecotech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.