upstream version 1.2.2
[debian/freetts] / de / dfki / lt / freetts / ConcatenativeVoice.java
1 /*
2  * Portions Copyright 2004 DFKI GmbH.
3  * Portions Copyright 2001 Sun Microsystems, Inc.
4  * Portions Copyright 1999-2001 Language Technologies Institute, 
5  * Carnegie Mellon University.
6  * All Rights Reserved.  Use is subject to license terms.
7  * 
8  * See the file "license.terms" for information on usage and
9  * redistribution of this file, and for a DISCLAIMER OF ALL 
10  * WARRANTIES.
11  */
12 package de.dfki.lt.freetts;
13
14 import java.io.IOException;
15 import java.net.URL;
16
17 import com.sun.speech.freetts.UtteranceProcessor;
18
19 /**
20  * A generic interface implementing what is common to all
21  * concatentive voices (e.g., diphone, cluster unit and arctic voices). 
22  */
23 public interface ConcatenativeVoice 
24 {
25     /**
26      * Gets the url to the database that defines the unit data for this
27      * voice.
28      *
29      * @return a url to the database
30      */
31     URL getDatabase();
32     
33     /**
34      * Returns the pitch mark generator to be used by this voice.
35      * 
36      * @return the pitchmark processor
37      * 
38      * @throws IOException if an IO error occurs while getting
39      *     processor
40      */
41     UtteranceProcessor getPitchmarkGenerator() throws IOException;
42
43     /**
44      * Returns the unit concatenator to be used by this voice.
45      * 
46      * @return the unit concatenator processor
47      * 
48      * @throws IOException if an IO error occurs while getting
49      *     processor
50      */
51     UtteranceProcessor getUnitConcatenator() throws IOException;
52
53     /**
54      * Returns the unit selector to be used by this voice.
55      * 
56      * @return the unit selector processor
57      * 
58      * @throws IOException if an IO error occurs while getting
59      *     processor
60      */
61     UtteranceProcessor getUnitSelector() throws IOException;
62 }