Skip to content

Commit 6b15dfe

Browse files
committed
run initialize with the wrapper
1 parent 7bfe08b commit 6b15dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phonemizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ struct phonemizer * phonemizer_from_gguf(gguf_context * meta, const std::string
11201120

11211121
if ((phonemizer_type) ph_type == ESPEAK) {
11221122
#ifdef ESPEAK_INSTALL
1123-
espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS, 0, ESPEAK_DATA_PATH, 0);
1123+
espeak_wrapper::get_instance()->initialize(AUDIO_OUTPUT_SYNCHRONOUS, 0, ESPEAK_DATA_PATH, 0);
11241124

11251125
update_voice(espeak_voice_code);
11261126

@@ -1146,7 +1146,7 @@ struct phonemizer * phonemizer_from_gguf(gguf_context * meta, const std::string
11461146

11471147
struct phonemizer * espeak_phonemizer(bool use_espeak_phonemes, std::string espeak_voice_code) {
11481148
#ifdef ESPEAK_INSTALL
1149-
espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS, 0, ESPEAK_DATA_PATH, 0);
1149+
espeak_wrapper::get_instance()->initialize(AUDIO_OUTPUT_SYNCHRONOUS, 0, ESPEAK_DATA_PATH, 0);
11501150

11511151
update_voice(espeak_voice_code);
11521152

0 commit comments

Comments
 (0)