feat: add canBeUsed to TTSModule
This commit is contained in:
@@ -32,6 +32,10 @@ class AzureTTS implements TTSModule {
|
||||
|
||||
return { data: Buffer.concat(buffers) };
|
||||
}
|
||||
|
||||
async canBeUsed(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
export default new AzureTTS();
|
||||
|
||||
@@ -41,6 +41,10 @@ const ttsGoogle: TTSModule = {
|
||||
resolve({ error: 'timed out' });
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
async canBeUsed(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user