mirror of
https://github.com/jambonz/speech-utils.git
synced 2025-12-19 03:37:49 +00:00
14 lines
339 B
JavaScript
14 lines
339 B
JavaScript
const {noopLogger} = require('./utils');
|
|
const debug = require('debug')('jambonz:realtimedb-helpers');
|
|
|
|
async function getTtsSize(client, logger, pattern = null) {
|
|
let keys;
|
|
if (pattern) {
|
|
keys = await client.keys(pattern);
|
|
} else {
|
|
keys = await client.keys('tts:*');
|
|
}
|
|
return keys.length;
|
|
}
|
|
|
|
module.exports = getTtsSize; |