Skip to content

Commit

Permalink
v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Liver64 committed Oct 30, 2018
1 parent 619b5e7 commit 5e05b64
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 26 deletions.
12 changes: 0 additions & 12 deletions config/interface.cfg

This file was deleted.

1 change: 0 additions & 1 deletion config/tts_all.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ API-key=12345678901234567890
[SYSTEM]
path=REPLACELBPDATADIR
card=
LOGLEVEL=3

[LOCATION]
googlestreet=
Expand Down
File renamed without changes.
Binary file removed data/tts/2_Airport_gong.mp3
Binary file not shown.
2 changes: 1 addition & 1 deletion webfrontend/html/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function create_symlinks() {
LOGGING("Symlink: '".$lbphtmldir.'/interfacedownload'."' has been created", 7);
}
if ($copy === true) {
LOGGING("Copy existing mp3 files from $myFolder/$mp3folder to $symcurr_path/$mp3folder", 6);
#LOGGING("Copy existing mp3 files from $myFolder/$mp3folder to $symcurr_path/$mp3folder", 6);
xcopy($myFolder."/".$mp3folder, $symcurr_path."/".$mp3folder);
LOGGING("All files has been copied from: '".$myFolder."/".$mp3folder."' to: '".$symcurr_path."/".$mp3folder."'", 5);
}
Expand Down
4 changes: 2 additions & 2 deletions webfrontend/html/output/interface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Submodul: bidirectonal Interface
* Submodul: Interface
*
**/

Expand All @@ -12,7 +12,7 @@
/* @return: array (
/* [0] Text for T2S (string)
/* [1] greet=0 w/o greeting, greet=1 with greeting (bolean)
/**/
**/

function process_post_request() {

Expand Down
14 changes: 4 additions & 10 deletions webfrontend/html/tts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
##############################################################################################################################
#
# Version: 1.0.6
# Datum: 29.10.2018
# Datum: 30.10.2018
# veröffentlicht in: https://github.com/Liver64/LoxBerry-TTS/releases
#
##############################################################################################################################

// ToDo
//
// clean cache when User switch the T2S engine --> jquery in index.html
// syntax wizard
// interfacefolder is only available post saving --> issue: after updating Plugin the folder 'interfacefolder' is not available

ini_set('max_execution_time', 90); // Max. Skriptlaufzeit auf 90 Sekunden

Expand Down Expand Up @@ -85,7 +83,7 @@
create_symlinks();
LOGGING("Config has been successfull loaded",6);

# wählt Sprachdatei für hinterlegte Texte für add-on's
# wählt Sprachdatei für hinterlegte Texte der Add-on's
$t2s_langfile = "t2s-text_".substr($config['TTS']['messageLang'],0,2).".ini"; // language file for text-speech
LOGGING("All variables has been collected",6);
$soundcard = $config['SYSTEM']['card'];
Expand All @@ -105,7 +103,7 @@
}
# Volume prozentual für sox (1=100%)
$volume = $volume / 100;
$multilog = get_interface_config();
#$multilog = get_interface_config();
#print_r($multilog);


Expand All @@ -130,11 +128,7 @@
LOGGING("T2S Interface ** JSON is set and will be processed!", 6);
# Deklaration der variablen
$text = $_GET['text'];
if (isset($_GET['greet'])) {
$greet = $_GET['greet'];
} else {
$greet = "";
}
isset($_GET['greet']) ? $greet = $_GET['greet'] : $greet = " ";
} else {
create_tts();
}
Expand Down

0 comments on commit 5e05b64

Please sign in to comment.