12.12.2012 Views

Festival Speech Synthesis System: - Speech Resource Pages

Festival Speech Synthesis System: - Speech Resource Pages

Festival Speech Synthesis System: - Speech Resource Pages

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A simpler C only interface example is given inf `festival/examples/festival_client.c'. That<br />

interface talks to a festival server. The code does not require linking with any other EST or <strong>Festival</strong> code so is much<br />

smaller and easier to include in other programs. The code is missing some functionality but not much consider how<br />

much smaller it is.<br />

[ < ] [ > ] [ > ] [Top] [Contents] [Index] [ ? ]<br />

28.6 Java and JSAPI<br />

Initial support for talking to a <strong>Festival</strong> server from java is included from version 1.3.0 and initial JSAPI support is<br />

included from 1.4.0. At present the JSAPI talks to a <strong>Festival</strong> server elsewhere rather than as part of the Java process<br />

itself.<br />

A simple (Pure) Java festival client is given<br />

`festival/src/modules/java/cstr/festival/Client.java' with a wraparound script in<br />

`festival/bin/festival_client_java'.<br />

See the file `festival/src/modules/java/cstr/festival/jsapi/ReadMe' for requirements and a<br />

small example of using the JSAPI interface.<br />

[ < ] [ > ] [ > ] [Top] [Contents] [Index] [ ? ]<br />

29. Examples<br />

This chapter contains some simple walkthrough examples of using <strong>Festival</strong> in various ways, not just as speech<br />

synthesizer<br />

29.1 POS Example Using <strong>Festival</strong> as a part of speech tagger<br />

29.2 Singing <strong>Synthesis</strong> Using <strong>Festival</strong> for singing<br />

[ < ] [ > ] [ > ] [Top] [Contents] [Index] [ ? ]<br />

29.1 POS Example<br />

This example shows how we can use part of the standard synthesis process to tokenize and tag a file of text. This<br />

section does not cover training and setting up a part of speech tag set See section 16. POS tagging, only how to go<br />

about using the standard POS tagger on text.<br />

This example also shows how to use <strong>Festival</strong> as a simple scripting language, and how to modify various methods<br />

used during text to speech.<br />

The file `examples/text2pos' contains an executable shell script which will read arbitrary ascii text from<br />

standard input and produce words and their part of speech (one per line) on standard output.<br />

A <strong>Festival</strong> script, like any other UNIX script, it must start with the the characters #! followed by the name of the<br />

`festival' executable. For scripts the option -script is also required. Thus our first line looks like<br />

#!/usr/local/bin/festival -script

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!