@ducci/jarvis 1.0.91 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -709,8 +709,10 @@ export async function startTelegramChannel(config) {
|
|
|
709
709
|
const plain = toPlainText(ttsSource);
|
|
710
710
|
if (plain) {
|
|
711
711
|
const ttsText = await generateTtsSummary(plain, config);
|
|
712
|
+
await api.sendMessage(chatId, `[TTS debug] plain: "${plain.slice(0, 300)}"\nsummary: "${ttsText}"`).catch(() => {});
|
|
712
713
|
if (ttsText) {
|
|
713
714
|
const audioBuffer = await textToSpeech(ttsText, config);
|
|
715
|
+
await api.sendMessage(chatId, `[TTS debug] audio bytes: ${audioBuffer.length}`).catch(() => {});
|
|
714
716
|
await api.sendAudio(chatId, new InputFile(audioBuffer, 'response.mp3'));
|
|
715
717
|
console.log(`[telegram] voice sent chat_id=${chatId} slot=${slot} tts_chars=${ttsText.length}`);
|
|
716
718
|
}
|