@@ -49,7 +49,7 @@ export class QvacVoiceAdapter extends EventEmitter {
|
||||
if (!this.ttsId) throw new Error('Speech output is unavailable');
|
||||
const sdk = await qvacSdk();
|
||||
const samples = await withQvacMaster(async () => {
|
||||
const result = await sdk.textToSpeech({ modelId: this.ttsId, text: String(text), inputType: 'text', stream: false });
|
||||
const result = await sdk.textToSpeech({ modelId: this.ttsId, text: String(text).replace(/[`]/g, "'"), inputType: 'text', stream: false });
|
||||
if (result?.buffer != null) return await result.buffer;
|
||||
if (result?.bufferStream) {
|
||||
const chunks = [];
|
||||
|
||||
Reference in New Issue
Block a user