We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6064300 commit 221097aCopy full SHA for 221097a
src/TextToSpeech.h
@@ -48,23 +48,23 @@ class TextToSpeech {
48
LOGI("say: %s",word);
49
AudioStream *mp3Stream = p_dictionary->get(word);
50
if (mp3Stream != nullptr) {
51
+ p_decoder->begin();
52
mp3Stream->begin();
53
copier.begin(*decodedStream, *mp3Stream);
54
copier.copyAll();
55
copier.end();
56
mp3Stream->end();
57
+ p_decoder->end();
58
} else {
59
LOGE("Word not available in dictionary: %s", word);
60
}
61
62
63
/// a simple API to say multiple of the supported words
64
void say(audio_tools::Vector<const char *> words) {
- p_decoder->begin();
65
for (auto word : words) {
66
say(word);
67
- p_decoder->end();
68
69
70
protected:
0 commit comments