comparison java/src/uk/ac/qmul/eecs/ccmi/speech/DummyNarrator.java @ 0:78b7fc5391a2

first import, outcome of NIME 2014 hackaton
author Fiore Martin <f.martin@qmul.ac.uk>
date Tue, 08 Jul 2014 16:28:59 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:78b7fc5391a2
1 /*
2 CCmI Editor - A Collaborative Cross-Modal Diagram Editing Tool
3
4 Copyright (C) 2011 Queen Mary University of London (http://ccmi.eecs.qmul.ac.uk/)
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 package uk.ac.qmul.eecs.ccmi.speech;
21
22 /**
23 * A dummy implementation of the Narrator interface. All its methods are empty,
24 * so every call will have no effect whatsoever.
25 */
26 class DummyNarrator implements Narrator {
27
28 @Override
29 public void init() throws NarratorException {}
30
31 @Override
32 public void setMuted(boolean muted, int voice) {}
33
34 @Override
35 public boolean isMuted(int voice){return false;}
36
37 @Override
38 public void shutUp() {}
39
40 @Override
41 public void speak(String text) {}
42
43 @Override
44 public void speak(String text, int voice){}
45
46 @Override
47 public void speakWholeText(String text){}
48
49 @Override
50 public void speakWholeText(String text, int voice){}
51
52 @Override
53 public void dispose() {}
54
55 @Override
56 public void setRate(int rate) { }
57
58 @Override
59 public int getRate() {return 0;}
60
61 }