mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
98_Text2Speech: bugfix: in TTS_FileTemplateDir a minus is now available for foldernames
thanks to Helmut git-svn-id: https://svn.fhem.de/fhem/trunk@25785 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2c4a4e6c0d
commit
b7df063c29
@ -656,7 +656,7 @@ sub Text2Speech_PrepareSpeech($$) {
|
||||
|
||||
# bei Angabe direkter MP3-Files wird hier ein temporäres Template vergeben
|
||||
for(my $i=0; $i<(@text); $i++) {
|
||||
@FileTplPc = ($text[$i] =~ /:(\w+?\.(?:mp3|ogg|wav)):/g);
|
||||
@FileTplPc = ($text[$i] =~ /:([\w-]+?\.(?:mp3|ogg|wav)):/g);
|
||||
for(my $j=0; $j<(@FileTplPc); $j++) {
|
||||
my $tpl = "FileTpl_#".$i."_".$j; #eindeutige Templatedefinition schaffen
|
||||
Log3 $hash, 4, "$me: Angabe einer direkten MP3-Datei gefunden: $FileTplPc[$j] => $tpl";
|
||||
|
Loading…
x
Reference in New Issue
Block a user