]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_ssml] Push done when its flag multi 2679/head
authorAnthony Minessale II <anthm@signalwire.com>
Wed, 16 Aug 2023 19:52:26 +0000 (19:52 +0000)
committerAndrey Volk <andywolk@gmail.com>
Mon, 30 Dec 2024 21:41:34 +0000 (00:41 +0300)
src/mod/formats/mod_ssml/mod_ssml.c

index 90df8ba8c2a0af7d70db11c4084d99564776adad..4fe73d247c748364718baddb8ebe50f2cb2a940b 100644 (file)
@@ -949,6 +949,11 @@ static switch_status_t tts_file_open(switch_file_handle_t *handle, const char *p
                        handle->seekable = 0;
                        handle->speed = 0;
                        context->max_frame_size = handle->samplerate / 1000 * SWITCH_MAX_INTERVAL;
+
+                       if ((context->sh.flags & SWITCH_SPEECH_FLAG_MULTI)) {
+                               switch_speech_flag_t flags = SWITCH_SPEECH_FLAG_DONE;
+                               switch_core_speech_feed_tts(&context->sh, "DONE", &flags);
+                       }
                } else {
                        switch_core_speech_close(&context->sh, &context->flags);
                }