code cleanup: move soundicon logic to a new file

Soundicons are used for external audio with SSML <audio> tag and for
replacing punctuation names with sound files in LoadConfig().

Currently there's a bug wih soundicon slots: if both LoadConfig and
<audio> are used, the punctuation reserves all slots and no sound from
<audio> is played.
This commit is contained in:
Juho Hiltunen
2021-03-21 18:53:05 +02:00
parent e2bd52c845
commit 6e197d967e
10 changed files with 239 additions and 154 deletions
+1
View File
@@ -28,6 +28,7 @@ ESPEAK_SOURCES := \
src/libespeak-ng/phonemelist.c \
src/libespeak-ng/readclause.c \
src/libespeak-ng/setlengths.c \
src/libespeak-ng/soundicon.c \
src/libespeak-ng/spect.c \
src/libespeak-ng/speech.c \
src/libespeak-ng/ssml.c \