JarvisTTS   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A speak() 0 5 1
1
<?php
2
3
namespace JarvisPHP\Core;
4
5
/**
6
 * JarvisTTS
7
 * 
8
 * Class for interact with the choosen TTS
9
 * @author Stefano Bianchini
10
 * @website http://www.stefanobianchini.net
11
 */
12
class JarvisTTS {
13
    
14
    /**
15
     * Speak the sentence
16
     * @param string $sentence
17
     */
18
    public static function speak($sentence) {
19
        JarvisPHP::getLogger()->info('JarvisPHP says with '.JarvisPHP::$TTS_name.': "'.$sentence.'"');
20
        $JarvisTTS = 'JarvisPHP\Speakers\\'.JarvisPHP::$TTS_name;
21
        $JarvisTTS::speak($sentence);
22
    }
23
    
24
}
25