Festival   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A make() 0 5 1
A getUri() 0 4 1
1
<?php
2
namespace TTS\Driver;
3
4
/**
5
 * Class Festival
6
 * @package TTS\Driver
7
 */
8
class Festival extends AbstractAdapter
9
{
10
    protected $name = 'Festival';
11
    protected $voice = 'male';
12
13
    protected $languageMap = [
14
        'ru_RU' => 'ru'
15
    ];
16
17
    public function make($text, $fileName)
18
    {
19
        system('echo \''. $text .'\'  | /usr/bin/text2wave -o ' . $fileName);
20
        return $fileName;
21
    }
22
23
    public function getUri()
24
    {
25
        return null;
26
    }
27
}
28