modify cache folder name and various fixes from testing tts streaming (#50)

This commit is contained in:
Dave Horton authored and GitHub committed 2024-04-18 11:28:17 -04:00
1 parent 3f642467eb
commit 83a2d1d730
6 files changed
+70 -65

No files matched your search

+2 -2
View File
@@ -385,7 +385,7 @@ static size_t write_cb(void *ptr, size_t size, size_t nmemb, ConnInfo_t *conn) {
auto d = conn->deepgram;
CircularBuffer_t *cBuffer = (CircularBuffer_t *) d->circularBuffer;
if (conn->flushed) {
if (conn->flushed || cBuffer == nullptr) {
/* this will abort the transfer */
return 0;
}
@@ -641,7 +641,7 @@ extern "C" {
return SWITCH_STATUS_FALSE;
}
fullDirPath = std::string(baseDir) + "jambonz-tts-cache-files";
fullDirPath = std::string(baseDir) + "tts-cache-files";
// Create the directory with read, write, and execute permissions for everyone
mode_t oldMask = umask(0);